# Product Hunt Daily Scraper (`emperor1978/product-hunt-scraper`) Actor

Extract daily product launches from Product Hunt via RSS. Get names, taglines, makers, dates, and URLs. Ideal for startup tracking, competitor monitoring, and trend analysis. No browser needed.

- **URL**: https://apify.com/emperor1978/product-hunt-scraper.md
- **Developed by:** [The Emperor](https://apify.com/emperor1978) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Product Hunt Daily Scraper

An [Apify](https://apify.com) actor that scrapes Product Hunt's public daily
leaderboard pages for recent product launches. No API key or authentication
required — it reads the public website.

### How it works

Product Hunt's leaderboard pages (e.g.
`producthunt.com/leaderboard/daily/2026/10/5/all`) embed a Next.js
`__NEXT_DATA__` JSON blob containing all product data. The actor:

1. Builds a list of target dates based on the `days_back` input.
2. Fetches each daily leaderboard page concurrently (capped at 3 in parallel).
3. Extracts product data from the embedded `__NEXT_DATA__` payload using a
   recursive tree walker that handles GraphQL relay edge/node shapes and flat
   arrays alike.
4. Falls back to lightweight HTML parsing if the JSON extraction fails.
5. Applies `min_votes` and `categories` filters.
6. Optionally fetches top comments from individual product pages.
7. Pushes structured records to the Apify dataset.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `days_back` | integer | 1 | Days of launches to fetch (max 30) |
| `min_votes` | integer | 0 | Minimum upvote threshold |
| `max_results` | integer | 50 | Total result cap (max 500) |
| `categories` | string\[] | \[] | Topic filters, e.g. `["AI", "Developer Tools"]` |
| `include_comments` | boolean | false | Fetch top comments per product |

### Output

Each dataset item contains:

```json
{
  "rank": 1,
  "name": "Example Product",
  "tagline": "The best thing since sliced bread",
  "description": "Longer description...",
  "product_hunt_url": "https://www.producthunt.com/posts/example-product",
  "website_url": "https://example.com",
  "slug": "example-product",
  "votes": 842,
  "comments_count": 134,
  "makers": ["Jane Doe", "John Smith"],
  "topics": ["Developer Tools", "Productivity"],
  "thumbnail_url": "https://ph-files.imgix.net/...",
  "launch_date": "2026-10-05",
  "featured_at": "2026-10-05T00:01:00Z",
  "created_at": "2026-10-04T18:30:00Z",
  "id": "123456",
  "top_comments": []
}
```

`top_comments` is only populated when `include_comments` is `true`:

```json
"top_comments": [
  {
    "id": "789",
    "body": "Congrats on the launch!",
    "votes": 12,
    "author": "hunter_username",
    "created_at": "2026-10-05T08:00:00Z"
  }
]
```

### Rate limiting

The actor uses browser-like headers and bounded concurrency (3 leaderboard
pages, 5 product pages) to stay well within reasonable crawl rates. Transient
errors and 429 responses trigger automatic back-off and retry (up to 3
attempts).

### Notes

- Product Hunt occasionally changes their front-end structure. If the
  `__NEXT_DATA__` path changes, the HTML fallback parser will still extract
  basic product slugs and names.
- The leaderboard for the current day may have fewer products than completed
  days, depending on the time of day.
- Setting `days_back` > 7 substantially increases runtime and request volume.

# Actor input Schema

## `days_back` (type: `integer`):

How many days of product launches to fetch, counting back from today. 1 = today only, 7 = last week, etc. Maximum 30.

## `min_votes` (type: `integer`):

Exclude products with fewer upvotes than this value. Set to 0 to include all products.

## `max_results` (type: `integer`):

Maximum total number of products to return across all requested days. Applied after vote and category filters.

## `categories` (type: `array`):

Optional list of topic/category names to filter by (e.g. 'AI', 'Developer Tools', 'Productivity'). Leave empty to include all categories. Matching is case-insensitive.

## `include_comments` (type: `boolean`):

If enabled, the actor will fetch the top comments from each product's page. This increases the total number of HTTP requests significantly.

## Actor input object example

```json
{
  "days_back": 1,
  "min_votes": 0,
  "max_results": 50,
  "categories": [],
  "include_comments": false
}
```

# Actor output Schema

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

Scraped results stored in the default dataset

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("emperor1978/product-hunt-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("emperor1978/product-hunt-scraper").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 '{}' |
apify call emperor1978/product-hunt-scraper --silent --output-dataset

```

## MCP server setup

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

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/d4uhQX8cMwb9yvwvE/builds/TNwh3QLJYSJymcmmt/openapi.json
