SofaScore API endpoint
Returns one page (30 matches) of the matches a referee officiated, most recent first, across every competition. Follow `has_next_page` for older pages; a page past the end returns 404. Only past matches exist (no upcoming list), and the list includes canceled and postponed fixtures (their `status.type` says so), which the career match total of sofascore-referee does not count.
/sofascore/referee-eventsQuery 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.page: optional integer. Zero-based page number. Defaults to 0.Notable response behavior:
sofascore-team-events. Follow has_next_page for older pages; a page past the end returns 404. Only past matches exist (there is no upcoming list).status.type canceled, postponed) next to the finished ones; the career games total of sofascore-referee counts only finished matches (321 finished plus 3 other statuses for one referee checked).404 means the referee has no matches on that page.| Field | Filled in, of 30 checked | Values in the sample |
|---|---|---|
| id | 30 | |
| slug | 30 | |
| start_timestamp | 30 | 2025-08-26 to 2026-09-20 |
| start_time | 30 | 2025-08-26 to 2026-09-20 |
| status | 30 | |
| winner_code | 30 | |
| tournament | 30 | |
| home_team | 30 | |
| away_team | 30 | |
| home_score | 30 | |
| away_score | 30 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore referee id | 74264 | |
| page | integer | No | 0 | Zero-based page number. Defaults to 0 Minimum: 0. | 0 |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/referee-events?id=74264&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"referee_id": 74264,
"page": 10,
"has_next_page": false,
"count": 1,
"source_url": "https://api.sofascore.com/api/v1/referee/74264/events/last/10",
"fetched_at": "2026-10-07T00:00:00Z",
"events": [
{
"id": 16363867,
"slug": "sunderland-manchester-city",
"start_timestamp": 1789909200,
"start_time": "2026-09-20T13:00:00Z",
"status": {
"code": 100,
"description": "Ended",
"type": "finished"
},
"winner_code": 1,
"tournament": {
"id": 1,
"name": "Premier League",
"slug": "premier-league",
"category": "England",
"unique_tournament_id": 17,
"unique_tournament_name": "Premier League"
},
"home_team": {
"id": 17,
"name": "Manchester City",
"short_name": "Man City",
"slug": "manchester-city"
},
"away_team": {
"id": 41,
"name": "Sunderland",
"short_name": "Sunderland",
"slug": "sunderland"
},
"home_score": {
"current": 5,
"period1": 3,
"period2": 2
},
"away_score": {
"current": 3,
"period1": 2,
"period2": 1
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.refereeEventsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.RefereeEventsResponse | No | ||||
| data.count | integer | No | ||||
| data.events | array | No | EventSummary record, 38 fields: away_score, away_team, home_score, home_team, id, slug, start_time, start_timestamp, status, tournament, winner_code. Described under SofaScore live events API. | |||
| data.fetched_at | string | No | ||||
| data.has_next_page | boolean | No | ||||
| data.page | integer | No | ||||
| data.referee_id | integer | No | 74264 | |||
| 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-events?id=74264&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"