valorant-esports-api (Python)
Official Python client for the Valorant esports API at valorant-api.org and citoapi.com/valorant/. Zero runtime dependencies (Python 3.8+ standard library only).
Use one client as both a live Valorant API and a historical Valorant API across 71,596 matches, 6,081 teams, 43,029 players, and 3,099 events (VCT 2021-2026, Challengers, and Ascension):
- Live match scores, schedules, results, and match detail (
veto,streams,games) - Per-map game telemetry: round timelines, economy conversions, ACS, K/D/A, ADR, KAST, HS%, and FK/FD
- Teams, active rosters, coaching staff, and regional rankings
- Player profiles (
career_summaryandagentsstats) and match logs - Events/tournaments and roster transfers
- VCT WebSocket URL and
"rooms"subscription payload builders (wss://api.citoapi.com/api/v1/valorant/live/ws) - Public sample CSV downloads (
matches.csvandplayers.csv, no API key required)
Get a free API key (500 requests/month, no card): Sign up for Valorant API
Install
pip install valorant-esports-api
Quickstart
import json
from valorant_esports_api import ValorantApi
api = ValorantApi() # reads CITO_API_KEY from environment
# 1. Live Valorant matches
live = api.live()
for m in live["matches"]:
t = m["teams"]
s = m["score"]
print(f"{t['team1_name']} {s['team1']}-{s['team2']} {t['team2_name']} ({m['event_name']})")
# 2. Historical Valorant matches with filters
history = api.matches(
status="Completed",
date_from="2026-01-01",
date_to="2026-03-01",
limit=25,
)
first_match = history["matches"][0]
games = api.match_games(first_match["id"])
# 3. Player career summary and per-agent stats
player = api.player("tenz")
print(player["career_summary"])
print(player["agents"][:3])
# 4. Regional team rankings and transfers
emea_rankings = api.rankings(region="europe", limit=10)
recent_transfers = api.transfers(limit=20)
Public Sample CSVs (No API Key Required)
matches_csv = api.sample_matches_csv()
players_csv = api.sample_players_csv()
print(matches_csv.splitlines()[:5])
Direct URLs:
https://api.citoapi.com/api/v1/exports/sample/valorant/matches.csvhttps://api.citoapi.com/api/v1/exports/sample/valorant/players.csv
Live VCT WebSocket Helper
The VCT WebSocket endpoint is wss://api.citoapi.com/api/v1/valorant/live/ws (available on Pro + $15/mo Live WebSockets add-on, Scale, and Business CSV). Authenticate via the X-API-Key header for servers/bots, or ?api_key=<key> for browser sources.
import json
ws_url = api.ws_url() # or api.ws_url("your_key") for ?api_key=... query auth
subscribe_msg = api.ws_subscribe_payload(["all"]) # {"action": "subscribe", "rooms": ["all"]}
match_msg = api.ws_subscribe_payload(["match:val-match-12345"])
print(ws_url)
print(json.dumps(subscribe_msg))
print(json.dumps(match_msg))
Note: Subscribe messages use the "rooms" key ({"action": "subscribe", "rooms": ["all"]}). Metering is 0 requests per pushed event, 1 request on upgrade + 1 request per 15s open.
Methods
All methods return the unwrapped data object by default; pass raw=True to api.get(path, params, raw=True) for the full {success, data, meta} envelope.
| Area | Methods |
|---|---|
| Overview | overview() |
| Matches | live(...), upcoming(...), results(...), matches(status=..., event_id=..., team_id=..., date_from=..., date_to=..., limit=..., offset=...), match(match_id), match_games(match_id) |
| Teams | teams(...), team(team_id), team_matches(team_id, ...) |
| Players | players(...), player(player_id), player_matches(player_id, ...) |
| Events | events(...), event(event_id), event_matches(event_id, ...) |
| Rankings & Transfers | rankings(region=..., date=..., limit=...), transfers(...) |
| Sample CSVs | sample_matches_csv(), sample_players_csv() |
| WebSocket | ws_url(api_key=None), ws_subscribe_payload(rooms=None) |
| Escape hatch | get(path, params=None, raw=False) |
Errors raise ValorantApiError with .status, .code, and .body.
Pricing & Tiers
- Free (
$0/mo,500reqs/mo) & Starter ($15/mo,10,000reqs/mo): REST with60slive delay, full historical access. - Pro (
$59/mo,250,000reqs/mo):0slive REST + optional+$15/moLive WebSockets add-on (unlocks/live/wsand/live/stream). - Scale (
$100/mo,1,000,000reqs/mo):0slive REST + WebSocket & SSE included. - Business CSV (
$299/mo,3,000,000reqs/mo):0slive REST + WebSocket & SSE included + full historical CSV exports.
Links
- Live Valorant API Docs: https://citoapi.com/docs/api/valorant/live/
- Live WebSocket Docs: https://citoapi.com/docs/api/valorant/live/websocket/
- Historical Valorant API Docs: https://citoapi.com/docs/api/valorant/historical/
- Historical CSV Dataset: https://valorant-api.org/historical-csv-dataset/
- Pricing: https://citoapi.com/pricing/
- GitHub Monorepo: https://github.com/Cito-GG/valorant-esports-api
MIT licensed.
Metadata
Release files for valorant-esports-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| valorant_esports_api-1.0.0.tar.gz | 12.2 kB | Without provenance | Details for valorant_esports_api-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| valorant_esports_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for valorant_esports_api-1.0.0-py3-none-any.whl |
Total release size: 20.7 kB
Release files / valorant_esports_api-1.0.0.tar.gz
| Download URL | valorant_esports_api-1.0.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22780b16488a4722eb06682a71e146d21d323c8a92ce98dd9275cdff2cd845aa
|
|
BLAKE2b-256 checksum How to use checksums |
caae58d1970266a10349390c4d70b3eb7b0b4b5549bf062fb70b31d90e075bb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / valorant_esports_api-1.0.0-py3-none-any.whl
| Download URL | valorant_esports_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fec3ec94bac7b3409217f07dbc3d7cc519129a2f97f4eca86e3239c3afd994d
|
|
BLAKE2b-256 checksum How to use checksums |
e279899b08d837c2590c53d4eabf5c76cdab1601db477253cd85173e7aeb6fae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for valorant-esports-api 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.