Your leaderboard
API v1 (legacy).
API v1 (legacy)
This endpoint keeps working and nothing expires. New integrations should use API v2 once it opens - it is coming soon. Its counterpart there is the v2 leaderboard read.
No opt-in needed
Retrieves all active and recently ended leaderboard periods for the affiliate identified by code. Prizes and wagered amounts are returned in USD.
ApiKeyAuthx-apikey<token>Your unique API key. Pass it in the x-apikey request header.
code*stringYour affiliate code.
Successful response with leaderboard data.
application/json- response
leaderboards*array<>curl "https://api.csgowin.com/api/leaderboard/YOUR_CODE" \ -H "x-apikey: YOUR_API_KEY"{ "leaderboards": [ { "active": true, "affiliate": { "code": "YOUR_CODE" }, "dateStart": "2025-03-01T00:00:00.000Z", "dateEnd": "2025-03-08T00:00:00.000Z", "days": 7, "id": 10, "paid": false, "periodId": 42, "prizes": [ 100, 50, 25 ], "users": [ { "exchanged": 0, "xpBonus": 0, "hidden": false, "level": 12, "name": "example_player_one", "prize": 100, "rank": "gold", "avatar_selected": "https://example.invalid/avatars/1.webp", "roles": [], "uuid": "example-player-id", "wagered": 500 } ], "user": { "uuid": "example-creator-id", "name": "example_creator", "socials": [ { "type": "twitch", "url": "https://example.invalid/twitch/creator" } ] } } ]}Errors
| Status | When | Body |
|---|---|---|
| 400 | No leaderboard runs on this code. A key that does not match the code is not refused: the response is then the public view of the leaderboard, marked by an extra viewerOnCode field. | {"error":"requested leaderboard not found"} |
| 500 | Internal server error. |
Remove one of your cases POST
Removes one of your own cases, as Profile > Cases does. Another account's case answers 404. 10 a day. Rate limits: 5 actions a minute per account (429 rate_limited), this action’s count per UTC day (429 action_limit_reached, Retry-After to 00:00 UTC), and 120 actions a minute across the site (503 unavailable with Retry-After).
Your raffles GET
Retrieves the most recent raffle periods for the affiliate leaderboard identified by `code`.