Your raffles
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 raffles read.
No opt-in needed
Retrieves the most recent raffle periods for the affiliate leaderboard identified by code.
ApiKeyAuthx-apikey<token>Your unique API key. Pass it in the x-apikey request header.
code*stringYour affiliate code.
take?integerNumber of raffle periods to return (1 -- 20).
1 <= value <= 203Successful response with raffle data.
application/json- response
raffles*array<>curl "https://api.csgowin.com/api/leaderboard/YOUR_CODE/raffle?take=3" \ -H "x-apikey: YOUR_API_KEY"{ "raffles": [ { "active": false, "affiliate": { "code": "YOUR_CODE" }, "dateStart": "2025-02-01T00:00:00.000Z", "dateEnd": "2025-02-08T00:00:00.000Z", "days": 7, "id": 10, "paid": true, "periodId": 38, "prizes": [ 5000, 3000, 2000 ], "users": [ { "exchanged": 0, "xpBonus": 0, "hidden": false, "level": 8, "name": "example_player_two", "prize": 5000, "rank": "silver", "avatar_selected": "https://example.invalid/avatars/2.webp", "roles": [], "uuid": "example-player-id-2", "wagered": 120000 } ], "user": { "uuid": "example-creator-id", "name": "example_creator", "socials": [] } } ]}Errors
| Status | When | Body |
|---|---|---|
| 400 | The key does not belong to this code, or the x-apikey header is missing (the endpoint then expects a signed-in site session). | {"error":"requested leaderboard not found"}{"error":"user not logged in (get leaderboard raffles)"} |
| 500 | Internal server error. |
Your leaderboard GET
Retrieves all active and recently ended leaderboard periods for the affiliate identified by `code`. Prizes and wagered amounts are returned in USD.
Your referral stats GET
Retrieves affiliate referral data for a given code, with optional date range filtering, sorting, searching, and pagination. Opt-in per affiliate code: this endpoint is off until CSGOWIN switches it on for your code - having an API key does not switch it on. To ask for it, open Live Support on csgowin.com and give your affiliate code. Until then every call answers 401 `External API not enabled for this affiliate`.