# Product Hunt Leaderboard Scraper | Daily, Weekly, Monthly (`muzafferkadir/product-hunt-leaderboard`) Actor

Scrape Product Hunt leaderboards and extracts product data including upvotes, comments, and categories.

- **URL**: https://apify.com/muzafferkadir/product-hunt-leaderboard.md
- **Developed by:** [Muzaffer Kadir YILMAZ](https://apify.com/muzafferkadir) (community)
- **Categories:** Lead generation, Social media, E-commerce
- **Stats:** 171 total users, 29 monthly users, 99.9% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Product Hunt Leaderboard Scraper

Scrapes Product Hunt leaderboards and extracts product data including ranks, upvotes, comments, categories, and thumbnails.

### Features

- Get top products for a specific day
- Get weekly, monthly, or yearly leaderboard results
- Choose featured products or all listed products
- Limit the number of products returned
- Collect product names, taglines, categories, engagement metrics, and links

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `daily` | Leaderboard type: `daily`, `weekly`, `monthly`, or `yearly` |
| `date` | string | today | Date for daily mode, in `YYYY-MM-DD` format |
| `week` | number | current | Week number for weekly mode |
| `month` | number | current | Month number for monthly mode |
| `year` | number | current | Year for any mode |
| `includeAll` | boolean | `false` | Return all products instead of featured only |
| `maxProducts` | number | all | Maximum number of products |
| `enrichEmails` | boolean | `false` | Resolve each launch's own website and look for public contact emails |
| `maxEnrich` | number | `25` | Cap how many products are enriched |

### Setup

Product Hunt fronts every page with a Cloudflare challenge, so the Actor fetches
pages through a managed anti-bot backend that solves the challenge and returns
rendered HTML — no setup required on your side.

### Examples

#### Daily

```json
{ "mode": "daily", "date": "2025-12-06", "maxProducts": 20 }
```

#### Weekly

```json
{ "mode": "weekly", "year": 2025, "week": 49 }
```

#### Yearly

```json
{ "mode": "yearly", "year": 2024, "includeAll": true }
```

### Output

Each dataset item contains product data such as:

- Rank, product name, tagline, and Product Hunt URL
- Upvotes, comments, and categories
- Thumbnail image
- Selected leaderboard mode and scraped period
- Scrape timestamp

### Disclaimer

This is an **unofficial** Actor. It is not affiliated with, endorsed by, or sponsored by Product Hunt. All product names, logos, and trademarks are the property of their respective owners and are used here for identification purposes only.

The Actor collects only publicly available information. It does not log in, create accounts, bypass paywalls, or access anything that is not visible to an ordinary visitor.

Output may include information relating to identifiable people. You are the data controller for anything you collect with this Actor and are responsible for having a lawful basis to process it under applicable data-protection law (such as GDPR or KVKK), and for complying with the source website's terms.

# Actor input Schema

## `mode` (type: `string`):

Type of leaderboard to scrape

## `date` (type: `string`):

Format: YYYY-MM-DD, four-digit year, zero-padded month and day — for example 2025-12-06. Daily mode only. Leave empty for today's board. Product Hunt's day rolls over at midnight Pacific time, so today's leaderboard is only published once it is a new day in California. When set, this overrides the Year field.

## `week` (type: `integer`):

ISO week number, 1 to 52 — for example 27. Weekly mode only. Leave empty for the current week in Pacific time. Pair it with the Year field to reach an earlier year's week.

## `month` (type: `integer`):

Month number, 1 to 12 — for example 3 for March. Monthly mode only. Leave empty for the current month in Pacific time. Pair it with the Year field to reach an earlier year's month.

## `year` (type: `integer`):

Four-digit year, 2013 to 2030 — for example 2025. Used by weekly, monthly and yearly modes, and ignored in daily mode when a Date is set. Leave empty for the current year in Pacific time.

## `includeAll` (type: `boolean`):

If true, scrape all products. If false, only featured products.

## `maxProducts` (type: `integer`):

Maximum number of products to scrape. Leave empty for all.

## `enrichEmails` (type: `boolean`):

Resolve each launch's own website and look for public contact emails. Adds a separate charge, billed only for launches where an email is actually found.

## `maxEnrich` (type: `integer`):

Cap how many products are enriched, to bound the extra cost and run time. Leave empty to enrich every scraped product — on a large leaderboard that can use most of the run's time budget.

## Actor input object example

```json
{
  "mode": "daily",
  "date": "2025-12-06",
  "includeAll": false,
  "enrichEmails": false,
  "maxEnrich": 25
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped products from Product Hunt leaderboard.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxEnrich": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("muzafferkadir/product-hunt-leaderboard").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxEnrich": 25 }

# Run the Actor and wait for it to finish
run = client.actor("muzafferkadir/product-hunt-leaderboard").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxEnrich": 25
}' |
apify call muzafferkadir/product-hunt-leaderboard --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muzafferkadir/product-hunt-leaderboard"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BN0Ukz5f8YV2nviFf/builds/GQWYA4ateHVNrNFYz/openapi.json
