SofaScore API endpoint
Returns one match's goal, card, substitution, and period timeline from SofaScore. An empty `incidents` list is a valid response before kickoff.
/sofascore/event-incidentsQuery parameters:
id: required. Numeric SofaScore event (match) id.Notable response behavior:
incidents array is a valid response before kickoff (not an error).type is one of period, goal, card, substitution, injuryTime, or another SofaScore incident type; fields not relevant to a given type are omitted.card_color (yellow or red); substitutions carry player_in/player_out.| Field | Filled in, of 22 checked | Values in the sample |
|---|---|---|
| type | 22 | substitution (9), goal (6), card (3) and 2 more |
| time | 22 | 14 to 90, median 72 |
| added_time | 4 | 1 to 999, median 4 |
| home_score | 8 | 1 to 4, median 2 |
| away_score | 5 | 1 to 2, median 2 |
| text | 2 | “FT” and 1 other value |
| is_home | 10 | true in 10 of 10 |
| player | 9 | “Mohamed Salah” and 7 other values |
| player_in | 9 | “Eli Junior Kroupi” and 8 other values |
| player_out | 9 | “Tyler Adams” and 8 other values |
| card_color | 3 | “yellow” |
| reason | 3 | “Foul” and 1 other value |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore event (match) id | 14025013 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/event-incidents?id=14025013" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 14025013,
"count": 3,
"source_url": "https://api.sofascore.com/api/v1/event/14025013/incidents",
"fetched_at": "2026-07-08T16:45:00Z",
"incidents": [
{
"type": "goal",
"time": 23,
"is_home": true,
"home_score": 1,
"away_score": 0,
"player": "A. Player"
},
{
"type": "card",
"time": 60,
"is_home": false,
"card_color": "yellow",
"player": "B. Player"
},
{
"type": "substitution",
"time": 70,
"is_home": true,
"player_in": "C. Sub",
"player_out": "A. Player"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.eventIncidentsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.EventIncidentsResponse | No | ||||
| data.count | integer | No | Number of incidents returned. | |||
| data.event_id | integer | No | SofaScore event (match) id that was requested. | |||
| data.fetched_at | string | No | Time the data was fetched, in UTC (RFC 3339). | |||
| data.incidents | array | No | Match timeline of goals, cards, substitutions and period markers. | |||
| data.incidents[].added_time | integer | No | Minutes of added time at the point of the incident. | |||
| data.incidents[].away_score | integer | No | Away team's score after the incident. | |||
| data.incidents[].card_color | string | No | yellow | Color of the card, such as `yellow` or `red`. Set for card incidents. | ||
| data.incidents[].home_score | integer | No | Home team's score after the incident. | |||
| data.incidents[].is_home | boolean | No | Whether the incident belongs to the home team. | |||
| data.incidents[].player | string | No | Name of the player involved in the incident. | |||
| data.incidents[].player_in | string | No | Name of the player coming on in a substitution. | |||
| data.incidents[].player_out | string | No | Name of the player going off in a substitution. | |||
| data.incidents[].reason | string | No | Reason SofaScore gives for the incident. | |||
| data.incidents[].text | string | No | FT | Short label for the incident, such as `FT` for full time. | ||
| data.incidents[].time | integer | No | Match minute at which the incident happened. | |||
| data.incidents[].type | string | No | goal | Incident type, such as `period`, `goal`, `card` or `substitution`. | ||
| data.source_url | string | No | URL the data was read from. | |||
| 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/event-incidents?id=14025013" \
-H "x-api-key: $CRAWLORA_API_KEY"