SofaScore API endpoint
Returns every category (country or region, such as England or International) SofaScore lists for a sport, with id, name, slug, flag, optional two-letter code, and priority, highest priority first. Use a category `id` with category-tournaments (its competitions) and with scheduled-events (its fixtures on a date). The `sport` enum accepts `american-football`, `aussie-rules`, `badminton`, `bandy`, `baseball`, `basketball`, `beach-volley`, `cricket`, `darts`, `esports`, `floorball`, `football`, `futsal`, `handball`, `ice-hockey`, `mma`, `minifootball`, `padel`, `rugby`, `snooker`, `table-tennis`, `tennis`, `volleyball`, and `waterpolo`. Slugs are not unique across categories, so identify a category by `id`.
/sofascore/categoriesQuery parameters:
sport: required enum. Allowed values: american-football, aussie-rules, badminton, bandy, baseball, basketball, beach-volley, cricket, darts, esports, floorball, football, futsal, handball, ice-hockey, mma, minifootball, padel, rugby, snooker, table-tennis, tennis, volleyball, waterpolo. The sports endpoint returns the same list.Notable response behavior:
priority (highest first), then name. priority is 0 when SofaScore does not rank the category.alpha2 is the two-letter code SofaScore uses for the category and is omitted for categories that have none (for example International). Slugs are not unique across categories, so identify a category by id.football on 2026-10-07), including virtual and amateur ones.sport returns an invalid-parameter error before any upstream request. An empty category list from upstream is treated as an upstream error, because every supported sport has categories.| Field | Filled in, of 299 checked | Values in the sample |
|---|---|---|
| id | 299 | |
| name | 299 | “World” and 297 other values |
| slug | 299 | |
| flag | 299 | “international” and 237 other values |
| priority | 299 | 0 to 20, median 0 |
| alpha2 | 275 | “EN” and 219 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| sport | string | Yes | Sport key Allowed values: american-football, aussie-rules, badminton, bandy, baseball, basketball, beach-volley, cricket, darts, esports, floorball, football, futsal, handball, ice-hockey, mma, minifootball, padel, rugby, snooker, table-tennis, tennis, volleyball, waterpolo. | football | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/categories?sport=football" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sport": "football",
"count": 298,
"source_url": "https://api.sofascore.com/api/v1/sport/football/categories/all",
"fetched_at": "2026-10-07T14:00:00Z",
"categories": [
{
"id": 393,
"name": "International Clubs",
"slug": "international-clubs",
"flag": "international",
"priority": 13
},
{
"id": 4,
"name": "International",
"slug": "international",
"flag": "international",
"priority": 12
},
{
"id": 1,
"name": "England",
"slug": "england",
"alpha2": "EN",
"flag": "england",
"priority": 10
},
{
"id": 13,
"name": "Brazil",
"slug": "brazil",
"alpha2": "BR",
"flag": "brazil",
"priority": 0
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.categoriesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.CategoriesResponse | No | ||||
| data.categories | array | No | ||||
| data.categories[].alpha2 | string | No | EN | |||
| data.categories[].flag | string | No | england | |||
| data.categories[].id | integer | No | 1 | |||
| data.categories[].name | string | No | England | |||
| data.categories[].priority | integer | No | 10 | |||
| data.categories[].slug | string | No | england | |||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.source_url | string | No | ||||
| data.sport | string | No | football | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/sofascore/categories?sport=football" \
-H "x-api-key: $CRAWLORA_API_KEY"