Skip to main content
POST
/
api
/
producthunt
/
collections
/producthunt/collections
curl --request POST \
  --url https://api.anysite.io/api/producthunt/collections \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "collection": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "alias": "<string>",
    "name": "<string>",
    "url": "<string>",
    "@type": "@product_hunt_collection",
    "description": "<string>",
    "is_personal": true,
    "curator": {
      "name": "<string>",
      "@type": "@product_hunt_collection_curator",
      "id": "<string>",
      "alias": "<string>",
      "image": "<string>",
      "follower_count": 123,
      "url": "<string>"
    },
    "products": []
  }
]

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
collection
string
required

Product Hunt collection slug ('0-design-tools') or full collection URL ('https://www.producthunt.com/collections/0-design-tools').

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

"0-design-tools"

"https://www.producthunt.com/collections/0-design-tools"

count
integer
required

Max number of 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
alias
string
required
name
string
required
url
string
required
@type
string
default:@product_hunt_collection
description
string | null
is_personal
boolean | null
curator
ProductHuntCollectionCurator · object
products
ProductHuntCollectionProduct · object[]