# PR⭕DUCT HUNT Scraper HD ⭐💯 (`jupri/producthunt`) Actor

💫 All-in-one Producthunt.com Scraper

- **URL**: https://apify.com/jupri/producthunt.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** News, Developer tools
- **Stats:** 77 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.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

## 💫 Welcome To ProductHunt Scraper

<img align="right" height="32" src="https://apify.com/actor-badge?actor=EwsksvGn8wRxT2Nry">

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### ☘️ About ProductHunt.com

<img  height="128" src="https://upload.wikimedia.org/wikipedia/commons/8/89/Product_Hunt_Logo.svg">

**Product Hunt**  is an American website to share and discover new  [products](https://en.wikipedia.org/wiki/Product_\(business\) "Product (business)"). It was founded by Ryan Hoover in November 2013.

Users submit products, which are listed in a linear format by day. The site includes a comments system and a voting system similar to  [Hacker News](https://en.wikipedia.org/wiki/Hacker_News "Hacker News")  or  [Reddit](https://en.wikipedia.org/wiki/Reddit "Reddit"). The products with the most votes rise to the top of each day's list.

Products are organized into four categories; technology products ([web apps](https://en.wikipedia.org/wiki/Web_apps "Web apps"),  [mobile apps](https://en.wikipedia.org/wiki/Mobile_app "Mobile app"),  [hardware](https://en.wikipedia.org/wiki/Electronic_hardware "Electronic hardware")  products, etc.),  [games](https://en.wikipedia.org/wiki/Games "Games")  (PC, web, mobile apps),  [books](https://en.wikipedia.org/wiki/Books "Books")  and  [podcasts](https://en.wikipedia.org/wiki/Podcasts "Podcasts"). A submission simply requires a product title, URL, and tagline. As of 2016, according to Hoover, the website has led to the discovery of over 100 million products across 50,000 companies.[\[1\]](https://en.wikipedia.org/wiki/Product_Hunt#cite_note-:1-1)

The site also includes a daily email list that sends out yesterday's top tech "hunts" (products) as well as a featured collection. A version of the digest is also available for games and books.

Product Hunt is also available as an  [iOS](https://en.wikipedia.org/wiki/IOS "IOS")  app,  [macOS](https://en.wikipedia.org/wiki/MacOS "MacOS")  app, an  [Android](https://en.wikipedia.org/wiki/Android_\(operating_system\) "Android (operating system)")  app, and  [Google Chrome](https://en.wikipedia.org/wiki/Google_Chrome "Google Chrome")  extension. The company's headquarters is in  [San Francisco](https://en.wikipedia.org/wiki/San_Francisco "San Francisco").[\[2\]](https://en.wikipedia.org/wiki/Product_Hunt#cite_note-:0-2)

The site received funding from  [Y Combinator](https://en.wikipedia.org/wiki/Y_Combinator_\(company\) "Y Combinator (company)").

### ☘️ About This Actor

#### All in One ProductHunt.com Scraper

#### Disclaimer :

- 🔒 *Free trial limited to **5** query per request*
- 🔒 *Free trial limited to **100** results*

### ☘️ Tutorial

#### 🍃 Parameters

| Name | Type | Description |
|-|-|-|
| `query` | **array** | List of `KEYWORD`, `URL` or `QUERY` |
| `limit` | **number** | Maximum number of results *(per-QUERY)* |
| `filters` | **object** | Filters and Settings |

#### 🍃 Basic Usage

**Searching for products**

```yaml
{ "query": ["apify"], "limit": 10 }
```

**Searching for users**

```yaml
{ "query": ["users:John"], "limit": 10 }
```

**Fetch a product info**

```yaml
{ "query": ["https://www.producthunt.com/products/apify"] }
```

OR

```yaml
{ "query": ["product:apify"] }
```

**Scrape product reviews**

```yaml
{ "query": ["https://www.producthunt.com/products/apify/reviews"], "limit": 100 }
```

OR

```yaml
{ "query": ["product:apify/reviews"], "limit": 100 }
```

**Scrape a user info**

```yaml
{ "query": ["https://www.producthunt.com/@elonmusk"] }
```

OR

```yaml
{ "query": ["@elonmusk", "@billgates", "@otheruser"] }
```

**Scrape user comments**

```yaml
{ "query": ["@elonmusk/comments"], "limit": 100 }
```

#### 🍃 Advanced Usage

##### PRODUCTHUNT Query Language (`PHQL`)

```html
[ <COMMAND:> | # | @ ] [ <NAME> | <ID> | <KEYWORD> | <URL> ] [ /<SECTION> ]  
```

| Format | Example | Description |
|--|--|--|
| **<*KEYWORDS*>** | `web scraper` | **_Search Products_** |
| `launches:<KEYWORDS>` | `launches:Chat GPT` | Search for launches |
| `users:<KEYWORDS>` | `users:keanu reeves` | Search for users |
| `stories:<KEYWORDS>` | `stories:CEO` | Search for stories |
| **product:<*PRODUCT_ID*>** | `product:apify` | **_Product Data_** |
| `/info` | `product:apify/info` | Product info *(default)* |
| `/launches` | `product:apify/launches` | Product launches |
| `/shoutouts` | `product:apify/shoutouts` | Product shoutouts |
| `/reviews` | `product:apify/reviews` | Product reviews |
| `/awards`  | `product:apify/awards` | Product awards 🆕 |
| `/alternatives` | `product:apify/alternatives` | Product alternatives 🆕 |
| **story:<*STORY_ID*>** | `story:the-personal-software`<br>OR `story:13894` | **_Story Data_** |
| `/info` | `story:13894/info` | Story info *(default)* |
| `/comments` | `story:13894/comments` | Story comments |
| **post:<*POST_ID*>** | `post:speech-in-flow` | **_Post Data_** |
| `/info` | `post:speech-in-flow/info` | Post info *(default)* |
| `/comments` | `post:speech-in-flow/comments` | Post comments |
| **@<*USER*>** | `@elonmask` | **_User Data_** |
| `/info` | `@elonmask/info` | User info *(default)* |
| `/upvotes` | `@elonmask/upvotes` | User upvotes |
| `/stacks` | `@elonmask/stacks` | User stacks |
| `/collections` | `@elonmask/collections` | User collections |
| `/reviews` | `@elonmask/reviews` | User reviews |
| `/comments` | `@elonmask/comments` | User comments |
| `/followers` | `@elonmask/followers` | User followers |
| `/following` | `@elonmask/following` | User following |
| **https:<*URL*>** | `https://www.producthunt.com` | **_Start URL_** |   |
| | `/search` | |
| | `/search/launches` | |
| | `/search/users` | |
| | `/products/<name>` | |
| | `/products/<name>/reviews` | |
| | `/@<user>` | |
|💫 *to be continued ...* | | |

### ✏️ Support

⚡️ Feel free to [reach out](https://console.apify.com/actors/EwsksvGn8wRxT2Nry/issues) to the developer for any [issues](https://console.apify.com/actors/EwsksvGn8wRxT2Nry/issues) or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `array`):

💡 Search Terms

## `example` (type: `string`):

💡 QUERY Examples

## `search_type` (type: `string`):

No description

## `limit` (type: `integer`):

💡 Number of results (per-query)

## `category` (type: `string`):

Catefory filter

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## Actor input object example

```json
{
  "query": [
    "Apify"
  ],
  "limit": 5
}
```

# 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 = {
    "query": [
        "Apify"
    ],
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/producthunt").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 = {
    "query": ["Apify"],
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/producthunt").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 '{
  "query": [
    "Apify"
  ],
  "limit": 5
}' |
apify call jupri/producthunt --silent --output-dataset

```

## MCP server setup

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

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/EwsksvGn8wRxT2Nry/builds/Q9BglGU3Iy1J5Jauz/openapi.json
