Product Hunt Category
producthunt.category
Get a category with its parent and subcategories and the products ranked in it.
At a glance
- Endpoint ID
producthunt.category- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "producthunt.category", "input": { "max_products": 5, "url": "ai-meeting-notetakers" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "producthunt.category", "input": { "max_products": 5, "url": "ai-meeting-notetakers" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "producthunt.category", "input": { "max_products": 5, "url": "ai-meeting-notetakers" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
url |
string | yes | The category's name as it appears in its URL, such as ai-meeting-notetakers, or its full URL. | ai-meeting-notetakers |
max_products |
integer | no | How many products to return, up to 500. Leave it out for all of them. | 5 |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "name": "AI notetakers", "description": "AI notetakers capture meetings, calls, and voice memos, then transcribe, summarize, and extract tasks for teams, sellers, and learners acro…", "id": "1288", "path": "/categories/ai-meeting-notetakers", "reviews_count": 2702, "slug": "ai-meeting-notetakers", "url": "https://www.producthunt.com/categories/ai-meeting-notetakers", "parent_category": { "name": "Productivity", "id": "34", "path": "/categories/productivity", "slug": "productivity" }, "products": [ { "name": "Granola", "id": "584337", "logo_url": "https://ph-files.imgix.net/c471aadb-c3d9-4676-8fe8-0089ad45779a.png?auto=format&fit=crop&h=240&w=240", "reviews_count": 51, "reviews_rating": 4.8, "slug": "granola", "tagline": "The AI notepad for people in back-to-back meetings", "url": "https://www.producthunt.com/products/granola" }, { "name": "Notion", "id": "106091", "logo_url": "https://ph-files.imgix.net/ff3e2acf-884a-4f4c-a383-6edfe3de0d88.png?auto=format&fit=crop&h=240&w=240", "reviews_count": 1385, "reviews_rating": 4.83, "slug": "notion", "tagline": "The all-in-one workspace", "url": "https://www.producthunt.com/products/notion" } ], "subcategories": []}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
products[].name |
string | The product's name. | Granola |
products[].id |
string | Product Hunt's ID for the item. | 584337 |
products[].logo_url |
string | Link to the product's logo. | https://ph-files.imgix.net/c471aadb-c3d9-4676-8fe8-0089ad45779a… |
products[].reviews_count |
integer | How many reviews the product has. | 51 |
products[].reviews_rating |
number | The product's average review rating, out of 5. | 4.8 |
products[].slug |
string | The name in the product's Product Hunt address. | granola |
products[].tagline |
string | The product's one-line pitch. | The AI notepad for people in back-to-back meetings |
products[].url |
string | The page on Product Hunt. | https://www.producthunt.com/products/granola |
name |
string | The product's name. | AI notetakers |
description |
string | The description Product Hunt shows. | AI notetakers capture meetings, calls, and voice memos, then tr… |
id |
string | Product Hunt's ID for the item. | 1288 |
parent_category |
object | The category's parent. | 4 fields |
parent_category.id |
string | Product Hunt's ID for the item. | 34 |
parent_category.name |
string | The product's name. | Productivity |
parent_category.path |
string | The page's address on Product Hunt. | /categories/productivity |
parent_category.slug |
string | The name in the product's Product Hunt address. | productivity |
path |
string | The page's address on Product Hunt. | /categories/ai-meeting-notetakers |
products |
array | The products listed. | 3 records |
reviews_count |
integer | How many reviews the product has. | 2702 |
slug |
string | The name in the product's Product Hunt address. | ai-meeting-notetakers |
subcategories |
array | empty in this sample | |
url |
string | The page on Product Hunt. | https://www.producthunt.com/categories/ai-meeting-notetakers |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Product Hunt endpoints
Something missing or unclear? Ask the team that builds the Product Hunt endpoints.