SofaScore API endpoint
Returns a referee's profile: name, country, sport, career matches officiated and career yellow, red and yellow-red card totals, plus date of birth and first league debut when SofaScore records them. Get the referee id from the `referee.id` of the sofascore-event endpoint or from a sofascore-search result of type referee. Returns 404 for an unknown id.
/sofascore/refereeQuery parameters:
id: required. Numeric SofaScore referee id, e.g. 74264. Get it from the referee.id of sofascore-event or from a sofascore-search result of type referee.Notable response behavior:
games, yellow_cards, red_cards and yellow_red_cards are career totals across every competition; each is omitted when SofaScore gives none (a real 0 is kept). date_of_birth and first_league_debut appear only when SofaScore records them.404 for an unknown id. Per-competition numbers are in sofascore-referee-statistics; the matches are in sofascore-referee-events.| Field | In the sample | Value in the sample |
|---|---|---|
| referee.id | Has a value | |
| referee.name | Has a value | “Robert Jones” |
| referee.slug | Has a value | |
| referee.country | Has a value | “England” |
| referee.sport | Has a value | “football” |
| referee.games | Has a value | 321 |
| referee.yellow_cards | Has a value | 1,156 |
| referee.red_cards | Has a value | 20 |
| referee.yellow_red_cards | Has a value | 13 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore referee id | 74264 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/referee?id=74264" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.sofascore.com/api/v1/referee/69853",
"fetched_at": "2026-10-07T00:00:00Z",
"referee": {
"id": 69853,
"name": "Anthony Taylor",
"slug": "taylor-anthony",
"country": "England",
"sport": "football",
"games": 658,
"yellow_cards": 2490,
"red_cards": 68,
"yellow_red_cards": 49,
"date_of_birth": "1978-10-20",
"first_league_debut": "2010-02-03"
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.refereeResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.RefereeResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.referee | sofascore.RefereeDetail | No | ||||
| data.referee.country | string | No | England | |||
| data.referee.date_of_birth | string | No | 1979-06-20 | |||
| data.referee.first_league_debut | string | No | 2010-02-03 | FirstLeagueDebut is the date of the referee's first top-flight match when SofaScore records it. | ||
| data.referee.games | integer | No | 321 | Games, YellowCards, RedCards and YellowRedCards are career totals across every competition; each is omitted when SofaScore gives none. | ||
| data.referee.id | integer | No | 74264 | |||
| data.referee.name | string | No | Robert Jones | |||
| data.referee.red_cards | integer | No | 20 | |||
| data.referee.slug | string | No | robert-jones | |||
| data.referee.sport | string | No | football | |||
| data.referee.yellow_cards | integer | No | 1156 | |||
| data.referee.yellow_red_cards | integer | No | 13 | |||
| data.source_url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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/referee?id=74264" \
-H "x-api-key: $CRAWLORA_API_KEY"