Retrieve the leaderboard
Changed onRanks referrers by partner business earnings over the chosen period, all-time by default. Authentication is optional: authenticated callers also get their own standing, anonymous callers get the rankings alone.
Request
- Base URLhttps://api.whop.com/api/v1
- Auth
- none
- or HTTP bearer
Query parameters
Time window for the rankings. day, month, and year count earnings since the start of the current calendar day, month, or year; last_30_days counts earnings over the trailing 30 days; all_time ranks lifetime earnings.
Headers
Pins the request to a dated API version.
Response
caller has no referral earnings
The top 10 referrers by total earnings, best first.
The caller's own standing; null when the caller has no referral earnings.
The referrers ranked within five places of the caller, including the caller, best first. Empty when the caller has no referral earnings or is anonymous.
Example response
{
"leaders": [
{
"first_referral_started_at": "2026-01-01T12:00:00.000Z",
"rank": 1,
"total_earnings_usd": "100.00",
"total_volume_usd": "0.00",
"user": {
"city": "Austin",
"country": "US",
"id": "user_xxxxxxxxxxxxxx",
"name": "Marcus Webb",
"profile_picture": {
"url": "https://ui-avatars.com/api/"
},
"username": "marcuswebb"
}
}
],
"me": {
"first_referral_started_at": "2026-01-01T12:00:00.000Z",
"rank": 2,
"total_earnings_usd": "4.00",
"total_volume_usd": "40.00",
"user": {
"city": "Austin",
"country": "US",
"id": "user_xxxxxxxxxxxxxx",
"name": "Marcus Webb",
"profile_picture": {
"url": "https://ui-avatars.com/api/"
},
"username": "marcuswebb"
}
},
"nearby": [
{
"first_referral_started_at": "2026-01-01T12:00:00.000Z",
"rank": 1,
"total_earnings_usd": "100.00",
"total_volume_usd": "0.00",
"user": {
"city": "Austin",
"country": "US",
"id": "user_xxxxxxxxxxxxxx",
"name": "Marcus Webb",
"profile_picture": {
"url": "https://ui-avatars.com/api/"
},
"username": "marcuswebb"
}
}
]
}Changes
- info
added the required property
nearbyto the response with the status
- info
- info
added the optional property
error/codeto the response with the status
- info