CS2

Live update stream (SSE)

Server-Sent Events stream of live match updates, on every plan. Keep the connection open; each cs2.live.update event carries the changed match. Pass matchId to follow one match.

Events: ready (sent first; carries delay_seconds and billing), cs2.live.update, ping every 15 seconds, and error just before the server closes the stream.

Billing. An open stream counts toward your monthly quota like polling: one request when it connects, then one request for every 15 seconds it stays open (the same as polling /cs2/live every 15 seconds; 5,760 requests a day if held open around the clock). When the quota runs out the stream sends an error event with code RATE_LIMIT_EXCEEDED and closes; connecting with no quota left returns 429.

Delay. Free and Starter plans receive every update 60 seconds late, the same delay as the polled live endpoints. Other plans are real-time.

Room-based WebSockets (Scale and Enterprise, or the Live WebSockets add-on): wss://api.citoapi.com/api/v1/cs2/live/ws.

get/cs2/live/stream

Request

  • Base URL: https://api.citoapi.com/api/v1
  • URL: https://api.citoapi.com/api/v1/cs2/live/stream
  • Auth: API key in header x-api-key

Query parameters

matchIdstring

Match id.

Response

Live update stream (SSE)

Changes

No recorded changes to this operation across all 1 revision of this API.