SofaScore categories (countries) by date
The categories (countries and international groupings) of a sport. With date, only those with events that day, each with its event count and the tournament ids playing; use a category id with /sofascore/v1/matches to list its events.
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 |
date | string | YYYY-MM-DD. Without it, every category of the sport. Example: 2026-11-04 |
utc_offset | integer | Seconds east of UTC that define the day (default 0). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/sofascore/v1/categories?sport=football&date=2026-11-04" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sofascore/v1/categories",
params={"sport": "football", "date": "2026-11-04"},
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/categories");
url.searchParams.set("sport", "football");
url.searchParams.set("date", "2026-11-04");
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","date": "2026-11-04","count": 128,"total_events": 1228,"categories": [{"id": 1,"name": "England","slug": "england","country_code": "EN","priority": 10,"total_events": 4,"unique_tournament_ids": [18,24]},{"id": 8,"name": "Denmark","slug": "denmark","country_code": "DK","priority": 0,"total_events": 2,"unique_tournament_ids": [23788]},"… 126 more"],"cached": false,"credits_used": 1}