curl --request GET \
--url http://localhost:8787/v1/leaderboard \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"name": "<string>",
"display_name": "<string>",
"followers": 123,
"watchtime": 123,
"averageviewers": 123,
"peakviewers": 123,
"followergain": 123
}
],
"hasMore": true,
"nextCursor": 123
}curl --request GET \
--url http://localhost:8787/v1/leaderboard \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"name": "<string>",
"display_name": "<string>",
"followers": 123,
"watchtime": 123,
"averageviewers": 123,
"peakviewers": 123,
"followergain": 123
}
],
"hasMore": true,
"nextCursor": 123
}Optional bearer token enforced when the Worker is configured with an API token.
Metric used for sorting results.
watchtime, averageviewers, followers, followergain, peakviewers 1 <= x <= 200x >= 0Successful response