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

Scrape top launches, daily leaderboards, product details, makers, upvotes, and external websites from Product Hunt.

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

## Pricing

from $3.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.

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 Scraper (Apify Actor)

A fast, lightweight, and cost-efficient Apify Actor for scraping **Product Hunt**. It extracts daily launches, past leaderboards, trending products, maker profiles, screenshot galleries, and external website links with zero browser overhead.

***

### 🚀 Features

- **Today's Featured Launches**: Scrapes currently trending and featured tech products directly from the Product Hunt homepage.
- **Daily Leaderboard**: Scrapes top ranked products for any given date (`YYYY-MM-DD`).
- **Custom Post URLs**: Scrape specific Product Hunt post pages or collections.
- **Deep Extraction**:
  - Product Name, Tagline, Full Description
  - Daily & Weekly Rankings
  - Vote / Score count & Comment count
  - Product Hunt URL & Direct external website URL
  - Pricing category (Free, Paid, Free Options)
  - Topics & Tag categories
  - Makers & Hunters (Name, username, headline, avatar)
  - Media screenshots and demo videos
- **High Performance & Low Compute Cost**: Built with Crawlee & Cheerio to parse server-side streaming payloads without memory-heavy headless browsers.

***

### ⚙️ Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `"today"` | Scrape mode: `"today"`, `"leaderboard"`, or `"urls"`. |
| `date` | String | `""` | Date for leaderboard in `YYYY-MM-DD` format (e.g. `2026-09-18`). Defaults to yesterday if blank. |
| `startUrls` | Array | `[]` | List of custom Product Hunt URLs (used when `mode` is `"urls"`). |
| `scrapeDetails` | Boolean | `true` | When true, fetches individual post pages for deep fields (website, makers, high-res screenshots). |
| `maxItems` | Integer | `30` | Maximum number of products to extract and save. |
| `proxyConfiguration` | Object | `undefined` | Apify Proxy configuration (residential or datacenter proxies). |

***

### 📦 Sample Output

```json
{
  "id": "1252832",
  "name": "Bolt Forge",
  "slug": "bolt-forge-2",
  "tagline": "Bolt's new agent with open-source models and 50X usage",
  "description": "Bolt Forge is a new agent inside Bolt.new that runs on open-source models. Every Pro plan gets up to 50X more usage with no daily caps.",
  "url": "https://www.producthunt.com/posts/bolt-forge-2",
  "websiteUrl": "https://bolt.new",
  "pricingType": "Free Options",
  "dailyRank": 1,
  "weeklyRank": null,
  "votesCount": 420,
  "commentsCount": 45,
  "featuredAt": "2026-09-19T00:01:00-07:00",
  "createdAt": "2026-09-19T00:01:00-07:00",
  "thumbnailUrl": "https://ph-files.imgix.net/140d2f3b-6da7-4454-8631-f619f00bc6d6.vnd.microsoft.icon?auto=format&fit=crop",
  "topics": [
    "Developer Tools",
    "Artificial Intelligence",
    "Vibe coding"
  ],
  "makers": [
    {
      "id": "123",
      "name": "Alex Creator",
      "username": "alexcreator",
      "headline": "Building developer tools",
      "avatarUrl": "https://ph-files.imgix.net/avatar.jpeg?auto=format&fit=crop"
    }
  ],
  "hunter": {
    "name": "Sarah Hunter",
    "username": "sarah"
  },
  "media": [
    {
      "id": "3538114",
      "type": "video",
      "imageUrl": "https://ph-files.imgix.net/db512423-8abc-4b5e-95a4-e4e9d763bced.jpeg?auto=format&fit=crop",
      "videoUrl": "https://www.youtube.com/watch?v=Jpod8k46LLc",
      "platform": "youtube"
    }
  ],
  "scrapedAt": "2026-09-19T08:00:00.000Z"
}
```

***

### 🛠️ Local Development & Testing

```bash
## 1. Install dependencies
npm install

## 2. Run locally
apify run
## or
npm start
```

### 🚀 Deploy to Apify

```bash
apify push
```

# Actor input Schema

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

Select whether to scrape today's featured launches, past leaderboard, or custom URLs.

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

Date in YYYY-MM-DD format (used when Mode is 'Daily Leaderboard'). Leave blank for yesterday.

## `startUrls` (type: `array`):

Direct Product Hunt URLs to scrape (used when Mode is 'Custom URLs'). E.g., https://www.producthunt.com/posts/bolt-forge-2

## `scrapeDetails` (type: `boolean`):

If enabled, visits each product page to extract full descriptions, high-res screenshots, maker profiles, and direct external website links.

## `maxItems` (type: `integer`):

Maximum number of products to save to the dataset.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. By default, uses Apify Proxy (Residential or Auto) to prevent Cloudflare 403 blocks on datacenter IPs.

## Actor input object example

```json
{
  "mode": "today",
  "startUrls": [
    {
      "url": "https://www.producthunt.com/posts/bolt-forge-2"
    }
  ],
  "scrapeDetails": true,
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.producthunt.com/posts/bolt-forge-2"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datablow/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 = { "startUrls": [{ "url": "https://www.producthunt.com/posts/bolt-forge-2" }] }

# Run the Actor and wait for it to finish
run = client.actor("datablow/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 '{
  "startUrls": [
    {
      "url": "https://www.producthunt.com/posts/bolt-forge-2"
    }
  ]
}' |
apify call datablow/product-hunt-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datablow/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/yknlaXB3hDjYBLtQ8/builds/Ubz2yGqavc2uMF7GV/openapi.json
