LoL API in Python
Load today's pro schedule with requests. Free 500 calls a month.
import os
import requests
API = "https://api.citoapi.com/api/v1/lol"
headers = {"x-api-key": os.environ["CITO_API_KEY"]}
res = requests.get(f"{API}/schedule/today", headers=headers, timeout=20)
res.raise_for_status()
matches = res.json()["data"]
for match in matches[:5]:
a = match["team1"]["name"]
b = match["team2"]["name"]
print(match["leagueName"], a, "vs", b, match["startTime"]){
"matchId": "lol-match-117030752644841571",
"leagueName": "LCK",
"leagueSlug": "lck",
"strategy": "Bo5",
"startTime": "2026-08-26T08:00:00.000Z",
"state": "unstarted",
"team1": { "slug": "kt", "name": "kt Rolster", "code": "KT" },
"team2": { "slug": "bro", "name": "HANJIN BRION", "code": "BRO" }
}What data is returned
x-api-keySend your Cito key on every request, not Authorization Bearer
GET /schedule/todayPro matches scheduled for the current UTC day
data[].team1 / team2Names, slugs, and codes for each side
leagueName / startTime / stateLeague label, start, unstarted or inProgress or completed
Free tier500 requests/month. Upgrade when you automate
When to use this
- Scripts that print today's LCK, LEC, or LPL card
- Notebooks that should not scrape lolesports.com HTML
- A Discord or site bot you later wrap around the same call
Full reference docs citoapi.com/docs/api/league-of-legends