Top supporters
The top 10 supporters by summed tip amount - the same data as the public leaderboard page. Any valid key.
GET
/leaderboardAuthorization
AuthorizationBearer token (tp_live_...) · headerrequiredA TipPage API key, created in Dashboard → Settings → Developer.
Query parameters
daysstringTime window. Omit (or pass `all`) for all-time.
Allowed:
1730allResponses
200Ranked supporters, highest total first.
daysinteger | nullThe applied window (null = all-time).
leadersobject[]Show propertiesHide properties
Array of
objectnamestringtotalnumber400Invalid days value.
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
401Missing or invalid API key (`missing_api_key` / `invalid_api_key`).
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
403The key lacks the required scope (`missing_scope`).
errorstringrequiredHuman-readable message.
codestringMachine-readable code (e.g. `missing_scope`, `not_in_queue`).
required_scopestring429Rate limit exceeded - check the `RateLimit-*` headers.
errorstringRequest
curl -X GET "https://api.tippage.com/v1/leaderboard" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.tippage.com/v1/leaderboard", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"https://api.tippage.com/v1/leaderboard",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"days": 0,
"leaders": [
{
"name": "string",
"total": 0
}
]
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string",
"required_scope": "string"
}{
"error": "string"
}