Valorant Live WebSocket API

wss://api.citoapi.com/api/v1/valorant/live/ws · real-time match, map, round, and player stats push · +$15/mo add-on on Pro, included on Scale, Business & Enterprise

Ship real-time Valorant scoreboards without polling

Pro (+$15/mo WebSocket add-on) and Scale/Business/Enterprise plans connect with zero artificial delay.

Connection & Authentication

The WebSocket upgrade endpoint accepts four authentication mechanisms, checked in order:x-api-key header, Authorization: Bearer <KEY>, WebSocket subprotocol cito.key.<KEY> alongside cito.v1, or query string ?api_key= (apiKey, x-api-key, or key). Add ?snapshot=true to receive an immediate snapshot frame right after welcome.

TypeScript
import WebSocket from "ws";

const apiKey = process.env.CITO_API_KEY!;
const url = "wss://api.citoapi.com/api/v1/valorant/live/ws?snapshot=true";

const ws = new WebSocket(url, {
  headers: { "x-api-key": apiKey },
});

ws.on("open", () => {
  // Omit to stay subscribed to "all", or narrow to specific matches:
  ws.send(JSON.stringify({ action: "subscribe", rooms: ["match:val-match-789517"] }));
});

ws.on("message", (raw) => {
  const frame = JSON.parse(raw.toString());
  if (frame.type === "welcome") {
    console.log("connected, rooms:", frame.rooms, "delay:", frame.delay_seconds);
  } else if (frame.type === "snapshot") {
    console.log("live matches:", frame.count);
  } else if (frame.type === "update") {
    console.log(frame.event, frame.match_id, frame.data.team1_score, frame.data.team2_score);
  }
});

Rooms & Client Commands

Pass ?match_id=val-match-789517 or ?rooms=all,match:val-match-789517 on the URL, or send JSON commands after receiving welcome. If you specify no rooms on connect, the socket defaults to "all". Bare numeric match IDs normalize automatically to match:val-match-{id}. Maximum 32 rooms per connection and 20 concurrent connections per IP.

JSON
// Subscribe to specific matches (or "all")
{ "action": "subscribe", "rooms": ["match:val-match-789517", "match:val-match-789520"] }

// Unsubscribe from one or more rooms
{ "action": "unsubscribe", "rooms": ["match:val-match-789517"] }

// Request an on-demand live snapshot (optionally scoped to rooms)
{ "action": "snapshot", "rooms": ["match:val-match-789517"] }

// Client-initiated heartbeat check (server replies { "type": "pong", "ts": "..." })
{ "action": "ping" }

Server Frames & Update Payloads

On upgrade, the server sends welcome (with active rooms, delay_seconds, and watcher heartbeat), followed by snapshot when ?snapshot=true. Live diffs emit type: "update" with event equal to score_update, map_completed, match_completed, or stats_update.

JSON
// 1) Initial welcome frame
{
  "type": "welcome",
  "sport": "valorant",
  "path": "/api/v1/valorant/live/ws",
  "rooms": ["all"],
  "delay_seconds": 0,
  "heartbeat": {
    "pass": "live_poll",
    "targets": 4,
    "discovered": 4,
    "live": 2,
    "updated_at": "2026-11-22T22:14:05.120Z"
  }
}

// 2) Real-time update frame
{
  "type": "update",
  "event": "score_update",
  "match_id": "val-match-789517",
  "data": {
    "event": "score_update",
    "match_id": "val-match-789517",
    "slug": "fnatic-vs-team-heretics-vct-emea",
    "status": "Live",
    "best_of": "Bo3",
    "patch": "Patch 13.10",
    "event_name": "VCT 2027: EMEA Kickoff",
    "stage": "Upper Semifinals",
    "team1": { "id": "val-team-2593", "name": "FNATIC", "tag": "FNC", "logo_url": "https://api.citoapi.com/img/..." },
    "team2": { "id": "val-team-1001", "name": "Team Heretics", "tag": "TH", "logo_url": "https://api.citoapi.com/img/..." },
    "team1_score": 1,
    "team2_score": 0,
    "winner_side": null,
    "current_map": {
      "map_number": 2,
      "map": "Haven",
      "pick": "Team Heretics",
      "team1_score": 8,
      "team2_score": 6
    },
    "maps": [
      {
        "map_number": 1,
        "game_id": "293810",
        "map": "Abyss",
        "duration": "41:18",
        "team1_score": 13,
        "team2_score": 9,
        "team1_halves": { "t": 7, "ct": 6 },
        "team2_halves": { "t": 5, "ct": 4 },
        "rounds": [
          { "round_number": 1, "winner_side": "team1", "winning_half_side": "attack", "outcome": "elimination", "score_after": { "team1": 1, "team2": 0 } }
        ],
        "economy": {
          "team1": { "team_tag": "FNC", "pistol_won": "2/2", "pistol_conv": "2/2", "pistol_bonus": "1/2", "eco": "0/2", "semi_buy": "1/2", "full_buy": "10/14" },
          "team2": { "team_tag": "TH", "pistol_won": "0/2", "pistol_conv": "0/0", "pistol_bonus": "0/0", "eco": "1/3", "semi_buy": "1/4", "full_buy": "7/13" }
        },
        "players": [
          {
            "player_id": "val-player-669",
            "slug": "alfajer",
            "handle": "Alfajer",
            "team_tag": "FNC",
            "team_side": "team1",
            "agent": "cypher",
            "rating": 1.32,
            "acs": 258,
            "kills": 21,
            "deaths": 13,
            "assists": 4,
            "kd_diff": 8,
            "kast": "82%",
            "adr": 166,
            "hs_pct": "29%",
            "fk": 4,
            "fd": 1,
            "fk_fd_diff": 3,
            "sides": {
              "attack": { "rating": 1.24, "acs": 241, "kills": 11, "deaths": 7, "assists": 2, "kd_diff": 4, "kast": "83%", "adr": 154, "hs_pct": "27%", "fk": 2, "fd": 1, "fk_fd_diff": 1 },
              "defense": { "rating": 1.41, "acs": 279, "kills": 10, "deaths": 6, "assists": 2, "kd_diff": 4, "kast": "80%", "adr": 181, "hs_pct": "31%", "fk": 2, "fd": 0, "fk_fd_diff": 2 }
            }
          }
        ]
      }
    ],
    "updated_at": "2026-11-22T22:14:06.410Z"
  }
}

Heartbeats & Reconnect Backoff

The server sends a heartbeat every 15 seconds as both a native WebSocket ping control frame and a JSON { "type": "ping", "ts": "..." } payload. On disconnect, use exponential backoff with jitter, re-subscribe to your match rooms after welcome, and pass ?snapshot=true (or fall back to GET /api/v1/valorant/matches/live) so no map or round transitions are missed while offline.

TypeScript
import WebSocket from "ws";

const ROOMS = ["match:val-match-789517"];
let attempt = 0;

function connect() {
  const ws = new WebSocket(
    "wss://api.citoapi.com/api/v1/valorant/live/ws?snapshot=true",
    { headers: { "x-api-key": process.env.CITO_API_KEY! } }
  );

  ws.on("open", () => {
    attempt = 0;
  });

  ws.on("message", (raw) => {
    const msg = JSON.parse(raw.toString());
    if (msg.type === "welcome") {
      ws.send(JSON.stringify({ action: "subscribe", rooms: ROOMS }));
    } else if (msg.type === "snapshot") {
      hydrateBoard(msg.matches);
    } else if (msg.type === "update") {
      applyLiveUpdate(msg);
    } else if (msg.type === "error" && msg.code === "MONTHLY_LIMIT_EXCEEDED") {
      console.error("Monthly API quota exhausted; stopping reconnect loop.");
      ws.close();
    }
  });

  ws.on("close", (code) => {
    if (code === 4029) return; // Quota exhausted — do not spin reconnects
    const delay = Math.min(30_000, 1000 * 2 ** attempt++) + Math.random() * 500;
    setTimeout(connect, delay);
  });
}

connect();

Quota Metering & Plan Access

RuleBehavior
Pushed frames0 per-frame charges. Receiving 1 or 100 update / snapshot frames never adds per-message quota charges.
Open connection meteringCounts 1 request on upgrade plus 1 request per 15 seconds open (identical to /valorant/live/stream SSE). Close idle sockets when no matches are live.
Quota exhaustionSends { type: "error", code: "MONTHLY_LIMIT_EXCEEDED" } and closes with WebSocket code 4029.
Plan access & delayRequires Pro (+$15/mo WebSocket add-on), Scale, Business, or Enterprise. All eligible WebSocket plans receive delay_seconds: 0 (real-time). Free and Starter receive 403 WEBSOCKETS_REQUIRED.
Error codesUpgrade: MISSING_API_KEY (401), INVALID_API_KEY (401), WEBSOCKETS_REQUIRED (403), RATE_LIMIT_EXCEEDED / WS_CONNECTION_LIMIT (429). Runtime: INVALID_JSON, INVALID_ROOM, UNKNOWN_ACTION, SNAPSHOT_UNAVAILABLE.

Transport Comparison

TransportEndpointMeteringBest for
WebSocketWSS /api/v1/valorant/live/ws1 req at connect + 1 req / 15s open (0 per pushed frame)Bidirectional room subscribe, live scoreboards, overlays, bots
SSEGET /api/v1/valorant/live/stream1 req at connect + 1 req / 15s openSimple HTTP-only push clients filtering by ?match_id=
REST PollGET /api/v1/valorant/matches/live1 req per HTTP call (5s edge cache)Cron jobs, initial hydration, Free/Starter 60s-delayed apps

Frequently Asked Questions

What is the Valorant Live WebSocket URL?

Connect to wss://api.citoapi.com/api/v1/valorant/live/ws. Append ?snapshot=true to receive an immediate snapshot of live matches right after the welcome frame, and optionally ?match_id=val-match-{id} or ?rooms=all,match:val-match-{id} to auto-subscribe on upgrade.

How do I authenticate to the WebSocket endpoint?

Server-side clients can send the x-api-key or Authorization: Bearer <KEY> header on the WebSocket upgrade request. Browser clients can pass the subprotocol array ["cito.v1", "cito.key.<KEY>"] (the server negotiates cito.v1) or use ?api_key=<KEY>.

Do pushed WebSocket frames count toward my monthly API requests?

No per-frame billing applies to update, snapshot, ping, or pong frames. Instead, an open connection meters 1 request on upgrade plus 1 request per 15 seconds while connected—the exact same cadence as /valorant/live/stream SSE—regardless of how many score, map, or player-stat updates are pushed. Close connections when no matches are live to conserve quota.

Which plans include Valorant Live WebSockets, and is there any delay?

Valorant Live WebSockets require Pro with the Live WebSockets add-on, or Scale, Business, or Enterprise (included). All eligible WebSocket plans receive real-time pushes with delay_seconds: 0. Free and Starter keys receive HTTP 403 WEBSOCKETS_REQUIRED during the upgrade handshake.

What are the room subscription and concurrent connection limits?

You can subscribe to up to 32 rooms per connection ('all' or 'match:val-match-{id}'). If you omit rooms on connect, the server subscribes you to 'all' by default. Up to 20 concurrent Valorant Live WebSocket connections are allowed per IP address (HTTP 429 WS_CONNECTION_LIMIT above 20).

Was this page helpful?