V1GameTeamsIdH2h
Head-to-head record between two teams
Completed-match record between the path team and `opponent`. Enveloped `{"data": HeadToHead}`.
Completed-match record between the path team and opponent. Enveloped {"data": HeadToHead}.
AuthorizationBearer <token>
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*string
Game slug. cs2 is the only populated title today; an un-onboarded game 404s cleanly.
id*string
Resource identifier. UUID today; slug-or-UUID (TARGET) — a human slug (e.g. navi, s1mple) resolves to the same row, scoped to {game}.
Query Parameters
opponent*string
The opposing team id.
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/cs2/teams/018f9c7e-8b2a-7e3d-9f10-2a4b6c8d0e1f/h2h?opponent=497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "data": { "team_id": "810007d0-bec5-486c-b5d1-28fcd8a079ba", "opponent_id": "89d73148-64ae-43c3-8e47-09bbb5fc9b85", "team_wins": 0, "opponent_wins": 0, "total": 0 }}{ "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" }}