Team or player rankings (leaderboard)
Ranked leaderboard. `?type=team` (default) or `?type=player`. v1 ranks on a derivable metric (recent win-rate / form); the model's own provenance-independent rating is a fast-follow (`docs/planning/model-feature-spec.md`) — always our own proprietary rating, never a third party's.
Ranked leaderboard. ?type=team (default) or ?type=player. v1 ranks on a derivable metric (recent win-rate / form); the model's own provenance-independent rating is a fast-follow (docs/planning/model-feature-spec.md) — always our own proprietary rating, never a third party's.
Primary auth (live). Authorization: Bearer <api-key> — the header takes precedence over the query fallback. The raw key is hashed (SHA-256, hex) and looked up in api.keys.key_hash; the raw value is never stored.
In: header
Path Parameters
Game slug. cs2 is the only populated title today; an un-onboarded game 404s cleanly.
Query Parameters
"team"Value in
- "team"
- "player"
Filter by region.
Filter by player role (type=player).
Sort key, e.g. rating (TARGET — not yet implemented; default order is the rank metric).
Page size. Clamped to a per-resource maximum; cursor carries the page position.
1 <= value100Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/cs2/rankings"{ "data": [ { "rank": 1, "entity_type": "team", "entity_id": "8161163a-f227-466f-bc01-090a01e80165", "name": "Natus Vincere", "region": "EU", "role": "string", "metric": "string", "value": 0, "window": "3mo", "external_rank": 3 } ], "meta": { "count": 0, "next_cursor": "string" }}{ "error": { "code": "not_found", "message": "not found", "request_id": "018f9c7e-8b2a-7e3d-9f10-2a4b6c8d0e1f" }}{ "error": { "code": "not_found", "message": "not found", "request_id": "018f9c7e-8b2a-7e3d-9f10-2a4b6c8d0e1f" }}{ "error": { "code": "not_found", "message": "not found", "request_id": "018f9c7e-8b2a-7e3d-9f10-2a4b6c8d0e1f" }}