Skip to main content
POST
/
api
/
producthunt
/
categories
/producthunt/categories
curl --request POST \
  --url https://api.anysite.io/api/producthunt/categories \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "category": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "url": "<string>",
    "@type": "@service__parsers__producthunt__categories__categories__product_hunt_category",
    "description": "<string>",
    "parent": {
      "name": "<string>",
      "@type": "@product_hunt_category_sub_category",
      "id": "<string>",
      "alias": "<string>",
      "url": "<string>"
    },
    "sub_categories": [],
    "questions": [],
    "top_products": [],
    "review_count": 123,
    "total_product_count": 123,
    "last_updated_at": "<string>"
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.anysite.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
category
string
required

Product Hunt category slug ('productivity') or full category URL ('https://www.producthunt.com/categories/productivity').

Minimum string length: 1
Pattern: ^(?:https?://[^\s]+|//[^\s]+|(?:www\.)?producthunt\.com[^\s]*|[A-Za-z0-9][A-Za-z0-9._-]*)$
Examples:

"productivity"

"https://www.producthunt.com/categories/productivity"

count
integer
required

Max number of top products to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
name
string
required
alias
string
required
url
string
required
@type
string
default:@service__parsers__producthunt__categories__categories__product_hunt_category
description
string | null
parent
ProductHuntCategorySubCategory · object
sub_categories
ProductHuntCategorySubCategory · object[]
questions
ProductHuntCategoryQuestion · object[]
top_products
ProductHuntCategoryProduct · object[]
review_count
integer | null
total_product_count
integer | null
last_updated_at
string | null