TutorialValorant Live WebSocket API

Build a live VCT scoreboard in Python.

Fetch live Valorant matches from GET /valorant/matches/live, hydrate map scores and player ACS/ADR via GET /valorant/matches/{matchId}/games, and subscribe to real-time updates over SSE (/valorant/live/stream) or WebSockets (wss://api.citoapi.com/api/v1/valorant/live/ws). Complete runnable Python below.

  • Python 3.10+
  • REST + SSE + WebSocket
  • 500 free calls / month
GET /valorant/matches/live200 OK
$ curl "https://api.citoapi.com/api/v1/valorant/matches/live" \ -H "x-api-key: $CITO_API_KEY"
{  "success": true,  "data": {    "entity_type": "valorant_live_matches",    "matches": [      {        "id": "val-match-777134",        "status": "Live",        "best_of": "Bo3",        "event_name": "Spike Series 2026: Convergence EMEA - France",        "stage_name": "Group Stage: Round 4",        "teams": {          "team1_name": "Lyost",          "team1_tag": "LYO",          "team2_name": "VRC Friends",          "team2_tag": "VRC"        },        "score": { "team1": 0, "team2": 0 }      }      ...    ]  }}

Step 1: Set up your environment and test authentication

Create a free API key at citoapi.com (keys start with cito_ and work immediately), store it in CITO_API_KEY, and call GET /valorant to verify indexed match, team, and player counts.

Shell
pip install requests websockets
export CITO_API_KEY="cito_..."
Python: verify key and coverage counts
import os
import requests

API = "https://api.citoapi.com/api/v1/valorant"
HEADERS = {"x-api-key": os.environ["CITO_API_KEY"]}

overview = requests.get(API, headers=HEADERS, timeout=10)
overview.raise_for_status()
counts = overview.json()["data"]["counts"]
print("Indexed:", counts["matches"], "matches | Live now:", counts["live_matches"])

Step 2: Fetch live matches and hydrate per-map box scores

Call GET /valorant/matches/live for matches in progress (or fall back to /matches/results?limit=1 when testing between series), then pull /matches/{matchId}/games for map scores, halves, and top ACS performers.

Live matches when this page was built, from GET /valorant/matches/live. Fetched from the production Valorant API on 22 Nov 2026, 23:47 UTC.
MatchSeriesEventStageFormat
Lyost vs VRC Friends0–0Spike Series 2026: Convergence EMEA - FranceGroup Stage: Round 4Bo3
WIP Esports vs La Masia0–0VCT 2027: EMEA Kickoff - Europe QualifierQualifier #2: ConsolationBo3
NFM vs RB Corp0–0Spike Series 2026: Convergence EMEA - FranceGroup Stage: Round 5Bo3
TODOBEW vs Pandore0–0Spike Series 2026: Convergence EMEA - FranceGroup Stage: Round 5Bo3
Lyost vs Team Protocol0–0Spike Series 2026: Convergence EMEA - FranceGroup Stage: Round 5Bo3
Remember The Name vs ORA Esport0–0Spike Series 2026: Convergence EMEA - FranceGroup Stage: Round 5Bo3
NoCorp vs xXxMasterProMegaTeamxXx0–0Spike Series 2026: Convergence EMEA - FranceGroup Stage: Round 5Bo3
counterfeit vs FlyQuest1–0VCT 2027: America Kickoff - North America Qualifier PlayoffsSwiss Stage: Round 3 (1-1)Bo3
Python: live scoreboard with top ACS players per map
import os
import requests

API = "https://api.citoapi.com/api/v1/valorant"
HEADERS = {"x-api-key": os.environ["CITO_API_KEY"]}

def get_active_or_recent():
    live = requests.get(f"{API}/matches/live", params={"limit": 5}, headers=HEADERS, timeout=10).json()["data"]
    if live.get("matches"):
        return "LIVE", live["matches"]
    recent = requests.get(f"{API}/matches/results", params={"limit": 3}, headers=HEADERS, timeout=10).json()["data"]
    return "RECENT", recent.get("matches", [])

label, matches = get_active_or_recent()
for m in matches:
    t = m["teams"]
    s = m["score"]
    print(f"[{label}] {t['team1_name']} {s['team1']}-{s['team2']} {t['team2_name']} | {m.get('event_name')}")
    games = requests.get(f"{API}/matches/{m['id']}/games", headers=HEADERS, timeout=10).json()["data"].get("games", [])
    for idx, g in enumerate(games, 1):
        print(f"  Map {idx} ({g.get('map')}): {g.get('team1_score')}-{g.get('team2_score')}")
        top = sorted(g.get("players", []), key=lambda p: p.get("acs") or 0, reverse=True)[:3]
        for p in top:
            print(f"    {p['handle']} ({p.get('agent')}): {p.get('acs')} ACS, {p.get('kills')}/{p.get('deaths')}/{p.get('assists')}")

Step 3: Stream live updates via SSE or WebSockets without polling

Polling REST every second wastes monthly quota. On Scale ($100/mo, or Pro with the +$15/mo Live WebSockets add-on), connect to wss://api.citoapi.com/api/v1/valorant/live/ws?snapshot=true (or GET /valorant/live/stream over HTTPS SSE) and update your scoreboard state on each pushed frame.

Python: async WebSocket client with auto-reconnect
import asyncio
import json
import os
import websockets

WS_URL = "wss://api.citoapi.com/api/v1/valorant/live/ws?snapshot=true"
API_KEY = os.environ["CITO_API_KEY"]

async def watch_vct_scoreboard():
    backoff = 1
    while True:
        try:
            async with websockets.connect(WS_URL, additional_headers={"x-api-key": API_KEY}) as ws:
                backoff = 1
                await ws.send(json.dumps({"action": "subscribe", "rooms": ["all"]}))
                async for raw in ws:
                    frame = json.loads(raw)
                    ftype = frame.get("type")
                    if ftype == "snapshot":
                        print("Initial live matches:", frame.get("count", 0))
                    elif ftype == "update":
                        ev = frame.get("data", {})
                        print(frame.get("event"), frame.get("match_id"), ev.get("team1_score"), "-", ev.get("team2_score"))
        except Exception as exc:
            print(f"Reconnecting in {backoff}s after: {exc}")
            await asyncio.sleep(backoff)
            backoff = min(backoff * 2, 30)

if __name__ == "__main__":
    asyncio.run(watch_vct_scoreboard())

Frequently asked questions

Need help scoping a plan or endpoint? Email support@citoapi.com.

Can I run this Python scoreboard tutorial on a Free API key?

Steps 1 and 2 (REST live, results, and per-map box scores) run on Free ($0/mo, 500 calls) and Starter ($15/mo) with a 60-second live delay. Both push streams—WebSockets (/valorant/live/ws) and SSE (/valorant/live/stream)—require Pro ($59/mo) with the +$15/mo Live WebSockets add-on, Scale ($100/mo), or Business ($299/mo).

What happens when no Valorant match is live at the moment my script starts?

GET /valorant/matches/live returns data_available: false with an empty list or no_live_matches status, so the helper falls back to /valorant/matches/results?limit=3 cleanly.

How do I filter live updates to one specific VCT match?

Send {"action": "subscribe", "room": "match:val-match-789173"} over the WebSocket or pass ?match_id=val-match-789173 to GET /valorant/live/stream.

Compare plans & limits

Ship Valorant apps with live WebSockets

Start free with 500 requests/month, then upgrade to Pro ($59/mo) or Scale ($100/mo) for real-time live data and WebSockets.