SofaScore API endpoint
Lists every ranking available from the sofascore rankings endpoint: the numeric `type` id, a descriptive name, the sport, the gender and the kind of entity that is ranked (`team`, `player` or `unique_tournament`). Covers 32 rankings across football (league coefficients, FIFA national teams, club coefficients), rugby, tennis (ATP and WTA official and live rankings, UTR), padel and MMA (UFC and Fight Nation Championship divisions). The catalogue is a fixed list and costs no upstream request.
/sofascore/ranking-typesLists every ranking the sofascore/rankings endpoint can return, so a caller can pick a valid type id without guessing.
Requires the x-api-key header. Takes no query parameters.
Notable response behavior:
entity_type says what each ranking row holds: team (a national or club team), player (an individual competitor, including MMA fighters and padel players) or unique_tournament (a league, used by the league-coefficient ranking).gender is M or F and is omitted for the league-coefficient ranking.Ranking ids (all values accepted by the type parameter of sofascore/rankings):
type | Ranking |
|---|---|
1 | UEFA association (league) coefficients |
2 | FIFA men's national team ranking |
3 | World Rugby men's national team ranking |
4 | Rugby national team ranking (secondary series, last updated 2016) |
5 | ATP men's singles ranking |
6 | WTA women's singles ranking |
7 | ATP men's singles live ranking |
8 | WTA women's singles live ranking |
9 | UEFA club coefficients |
11 | UFC men's flyweight rankings |
12 | UFC men's bantamweight rankings |
13 | UFC men's featherweight rankings |
14 | UFC men's lightweight rankings |
15 | UFC men's welterweight rankings |
16 | UFC men's middleweight rankings |
17 | UFC men's light heavyweight rankings |
18 | UFC men's heavyweight rankings |
19 | UFC women's strawweight rankings |
20 | UFC women's flyweight rankings |
21 | UFC women's bantamweight rankings |
22 | UFC women's featherweight rankings (one entry, last updated 2024) |
34 | UTR men's singles ranking |
35 | UTR women's singles ranking |
36 | Padel men's ranking |
37 | Padel women's ranking |
40 | Fight Nation Championship men's division 1 rankings |
41 | Fight Nation Championship men's division 2 rankings |
42 | Fight Nation Championship men's division 3 rankings |
43 | Fight Nation Championship men's division 4 rankings |
44 | Fight Nation Championship men's division 5 rankings |
45 | Fight Nation Championship men's division 6 rankings |
46 | Fight Nation Championship men's division 7 rankings |
Example response (shortened):
{
"code": 200,
"msg": "OK",
"data": {
"count": 32,
"types": [
{
"type": 5,
"name": "ATP men's singles ranking",
"sport": "tennis",
"gender": "M",
"entity_type": "player",
"description": "Official ranking, top 500."
}
]
}
}
| Field | Filled in, of 32 checked | Values in the sample |
|---|---|---|
| type | 32 | 1 to 46, median 17 |
| name | 32 | “UEFA association (league) coefficients” and 31 other values |
| sport | 32 | mma (19), tennis (6), football (3) and 2 more |
| entity_type | 32 | player (27), team (4), unique_tournament (1) |
| description | 29 | “Ranks national leagues by their coefficient points; each ro…” and 8 other values |
| gender | 31 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/ranking-types" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"count": 32,
"types": [
{
"type": 5,
"name": "ATP men's singles ranking",
"sport": "tennis",
"gender": "M",
"entity_type": "player",
"description": "Official ranking, top 500."
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.rankingTypesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.RankingTypesResponse | No | ||||
| data.count | integer | No | 32 | |||
| data.types | array | No | ||||
| data.types[].description | string | No | ||||
| data.types[].entity_type | string | No | player | |||
| data.types[].gender | string | No | M | |||
| data.types[].name | string | No | ATP men's singles ranking | |||
| data.types[].sport | string | No | tennis | |||
| data.types[].type | integer | No | 5 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 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/ranking-types" \
-H "x-api-key: $CRAWLORA_API_KEY"