Skip to main content
POST
/
api
/
producthunt
/
leaderboards
/producthunt/leaderboards
curl --request POST \
  --url https://api.anysite.io/api/producthunt/leaderboards \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "date": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "rank": 123,
    "id": "<string>",
    "name": "<string>",
    "launch_alias": "<string>",
    "url": "<string>",
    "@type": "@product_hunt_leaderboard_item",
    "tagline": "<string>",
    "product_id": "<string>",
    "product_alias": "<string>",
    "image": "<string>",
    "upvote_count": 123,
    "comment_count": 123,
    "daily_rank": 123,
    "weekly_rank": 123,
    "monthly_rank": 123,
    "featured_at": "<string>",
    "created_at": "<string>",
    "topics": []
  }
]

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
period
enum<string>
required

Leaderboard period.

Available options:
daily,
weekly,
monthly,
yearly
Example:

"daily"

date
string
required

Leaderboard date matching the period: daily 'YYYY/M/D', weekly 'YYYY/W' (ISO week), monthly 'YYYY/M', yearly 'YYYY'.

Minimum string length: 4
Examples:

"2024/1/15"

"2024/3"

"2024/1"

"2024"

count
integer
required

Max number of leaderboard items to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

rank
integer
required
id
string
required
name
string
required
launch_alias
string
required
url
string
required
@type
string
default:@product_hunt_leaderboard_item
tagline
string | null
product_id
string | null
product_alias
string | null
image
string | null
upvote_count
integer | null
comment_count
integer | null
daily_rank
integer | null
weekly_rank
integer | null
monthly_rank
integer | null
created_at
string | null
topics
ProductHuntLeaderboardTopic · object[]