SofaScore tournament
A tournament: name, sport, category (country), logo, title holder, most titles, start and end dates, tier, followers and every season with its id.
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 |
|---|---|---|
tournament_idrequired | string | SofaScore unique-tournament id or a tournament link (sofascore.com/football/tournament/england/premier-league/17). 17 = Premier League. Example: 17 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/sofascore/v1/tournament?tournament_id=17" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sofascore/v1/tournament",
params={"tournament_id": "17"},
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/tournament");
url.searchParams.set("tournament_id", "17");
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)
{"id": 17,"name": "Premier League","slug": "premier-league","sport": "football","url": "https://www.sofascore.com/football/tournament/england/premier-league/17","category": {"id": 1,"name": "England","country_code": "EN"},"logo": "https://img.sofascore.com/api/v1/unique-tournament/17/image","title_holder": {"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": "England","url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image"},"title_holder_titles": 14,"most_titles": 20,"most_titles_teams": [{"id": 35,"name": "Manchester United","short_name": "Man Utd","code": "MUN","slug": "manchester-united","country": "England","url": "https://www.sofascore.com/football/team/manchester-united/35","logo": "https://img.sofascore.com/api/v1/team/35/image"},{"id": 44,"name": "Liverpool FC","short_name": "Liverpool","code": "LIV","slug": "liverpool","country": "England","url": "https://www.sofascore.com/football/team/liverpool/44","logo": "https://img.sofascore.com/api/v1/team/44/image"}],"start_date": "2026-08-21T00:00:00.000Z","end_date": "2027-05-30T00:00:00.000Z","tier": 1,"user_count": 1186233,"seasons": [{"id": 96668,"name": "Premier League 26/27","year": "26/27"},{"id": 76986,"name": "Premier League 25/26","year": "25/26"},"… 33 more"],"cached": false,"credits_used": 1}