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
{ "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.
pip install requests websockets
export CITO_API_KEY="cito_..."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.
| Match | Series | Event | Stage | Format |
|---|---|---|---|---|
| Lyost vs VRC Friends | 0–0 | Spike Series 2026: Convergence EMEA - France | Group Stage: Round 4 | Bo3 |
| WIP Esports vs La Masia | 0–0 | VCT 2027: EMEA Kickoff - Europe Qualifier | Qualifier #2: Consolation | Bo3 |
| NFM vs RB Corp | 0–0 | Spike Series 2026: Convergence EMEA - France | Group Stage: Round 5 | Bo3 |
| TODOBEW vs Pandore | 0–0 | Spike Series 2026: Convergence EMEA - France | Group Stage: Round 5 | Bo3 |
| Lyost vs Team Protocol | 0–0 | Spike Series 2026: Convergence EMEA - France | Group Stage: Round 5 | Bo3 |
| Remember The Name vs ORA Esport | 0–0 | Spike Series 2026: Convergence EMEA - France | Group Stage: Round 5 | Bo3 |
| NoCorp vs xXxMasterProMegaTeamxXx | 0–0 | Spike Series 2026: Convergence EMEA - France | Group Stage: Round 5 | Bo3 |
| counterfeit vs FlyQuest | 1–0 | VCT 2027: America Kickoff - North America Qualifier Playoffs | Swiss Stage: Round 3 (1-1) | Bo3 |
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.
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.
Build further with Python & live data
- Valorant Live WebSocket APILive WebSocket rooms and SSE streams for pro Valorant series, map and round score updates.
- Valorant Player Stats APIPer-map ACS, ADR, KAST%, HS%, rating, first kills/deaths and agent picks for pro matches.
- Valorant Discord Bot APISlash commands and live VCT score alerts in discord.js v14 and Python without polling loops.
- Valorant Rounds & Economy APIRound-by-round outcomes, attack/defense half splits, pistol conversions, eco/buy stats and clutches.
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.