SofaScore live events
Every event in progress for a sport: id, link, start time, status, both teams, current score, tournament, category (country), season, round, and the site's full record (period scores, time, cards, coverage flags) under raw.
Every response includes credits_used: the credits this call cost.
Part of the SofaScore API: 28 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
sport | football | basketball | tennis | ice-hockey | american-football | baseball | handball | volleyball | cricket | rugby | mma | motorsport | esports | table-tennis | darts | snooker | futsal | badminton | waterpolo | beach-volley | aussie-rules | bandy | floorball | minifootball | cycling | Sport (default football). Example: football |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/sofascore/v1/live?sport=football" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sofascore/v1/live",
params={"sport": "football"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/sofascore/v1/live");
url.searchParams.set("sport", "football");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"sport": "football","count": 13,"events": [{"id": 17372440,"custom_id": "TRNjsVRNj","slug": "shandong-sports-lottery-dalian-football-school-women","url": "https://www.sofascore.com/football/match/shandong-sports-lottery-dalian-football-school-women/TRNjsVRNj#id:17372440","sport": "football","start_time": "2026-11-04T06:00:00.000Z","status": "inprogress","status_description": "1st half","status_code": 6,"home_team": {"id": 1222143,"name": "Dalian Football School Women","short_name": "Dalian Football School Women","code": "DFS","slug": "dalian-football-school-women","country": "China","url": "https://www.sofascore.com/football/team/dalian-football-school-women/1222143","logo": "https://img.sofascore.com/api/v1/team/1222143/image"},"away_team": {"id": 1222145,"name": "Shandong Sports Lottery B","short_name": "Shandong Sports Lottery B","code": "SSL","slug": "shandong-sports-lottery-b","country": "China","url": "https://www.sofascore.com/football/team/shandong-sports-lottery-b/1222145","logo": "https://img.sofascore.com/api/v1/team/1222145/image"},"home_score": 0,"away_score": 0,"winner": null,"tournament": {"id": 34563,"name": "CFA Women's Football League One","slug": "cfa-womens-football-league-one"},"category": {"id": 99,"name": "China","country_code": "CN"},"season": {"id": 93956,"name": "CFA Women's Football League One 2026","year": "2026"},"round": 18},{"id": 17372441,"custom_id": "PRNjsYRNj","slug": "shanxi-xihua-women-zhanjiang-yuezhan","url": "https://www.sofascore.com/football/match/shanxi-xihua-women-zhanjiang-yuezhan/PRNjsYRNj#id:17372441","sport": "football","start_time": "2026-11-04T06:00:00.000Z","status": "inprogress","status_description": "1st half","status_code": 6,"home_team": {"id": 1222148,"name": "Shanxi Xihua Women","short_name": "Shanxi Xihua Women","code": "SXW","slug": "shanxi-xihua-women","country": "China","url": "https://www.sofascore.com/football/team/shanxi-xihua-women/1222148","logo": "https://img.sofascore.com/api/v1/team/1222148/image"},"away_team": {"id": 1222140,"name": "Zhanjiang Yuezhan","short_name": "Zhanjiang Yuezhan","code": "GLY","slug": "guangdong-lottery-yuezhan-women","country": "China","url": "https://www.sofascore.com/football/team/guangdong-lottery-yuezhan-women/1222140","logo": "https://img.sofascore.com/api/v1/team/1222140/image"},"home_score": 0,"away_score": 0,"winner": null,"tournament": {"id": 34563,"name": "CFA Women's Football League One","slug": "cfa-womens-football-league-one"},"category": {"id": 99,"name": "China","country_code": "CN"},"season": {"id": 93956,"name": "CFA Women's Football League One 2026","year": "2026"},"round": 18},"… 11 more"],"cached": false,"credits_used": 1}