SofaScore API endpoint
Returns one match's starting XI and substitutes per side, with formation. Returns 404 when SofaScore has no lineups for the match. A missing-lineup result may be reused for up to two minutes before checking again.
/sofascore/event-lineupsQuery parameters:
id: required. Numeric SofaScore event (match) id.Notable response behavior:
404 when SofaScore has no lineups for the match (not yet announced or not tracked).200 with confirmed=false and explicit empty player arrays on both sides also returns 404. Predicted lineups with players remain valid; malformed or confirmed-empty payloads return 503.confirmed indicates whether the lineup is the official confirmed lineup rather than a predicted one.home/away each carry a formation (e.g. 4-3-3) and a players list; substitute marks bench players.| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| player | 20 | |
| jersey_number | 20 | 1 to 73, median 11 |
| position | 20 | M (9), D (6), F (3) and 1 more |
| substitute | 9 | true in 9 of 9 |
| 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-lineups?id=14025013" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 14025013,
"confirmed": true,
"source_url": "https://api.sofascore.com/api/v1/event/14025013/lineups",
"fetched_at": "2026-07-08T16:45:00Z",
"home": {
"formation": "4-3-3",
"players": [
{
"player": {
"id": 66101,
"name": "Alisson",
"short_name": "Alisson",
"position": "G",
"country": "Brazil"
},
"jersey_number": "1",
"position": "G",
"substitute": false
}
]
},
"away": {
"formation": "4-4-2",
"players": []
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.eventLineupsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.EventLineupsResponse | No | ||||
| data.away | object | No | Away side's lineup. | |||
| data.away.formation | string | No | 4-3-3 | Formation, for example 4-3-3. | ||
| data.away.players | array | No | Starting players and substitutes. | |||
| data.away.players[].jersey_number | string | No | Shirt number worn in this match. | |||
| data.away.players[].player | object | No | The player. | |||
| data.away.players[].player.country | string | No | Spain | Player's country. | ||
| data.away.players[].player.id | integer | No | 855833 | SofaScore player id. Use it with the player endpoints. | ||
| data.away.players[].player.name | string | No | Ferran Torres | Player's full name. | ||
| data.away.players[].player.position | string | No | F | Position code, for example G, D, M or F. | ||
| data.away.players[].player.short_name | string | No | F. Torres | Shortened name, for example "F. Torres". | ||
| data.away.players[].player.slug | string | No | ferran-torres | URL slug of the player on SofaScore. | ||
| data.away.players[].position | string | No | Position in this match, for example G, D, M or F. | |||
| data.away.players[].substitute | boolean | No | True for a player on the bench. | |||
| data.confirmed | boolean | No | True for the official confirmed lineups, false while they are still predicted. | |||
| data.event_id | integer | No | SofaScore event id the lineups belong to. | |||
| data.fetched_at | string | No | Time the data was fetched, in UTC (RFC 3339). | |||
| data.home | object | No | Home side's lineup. | |||
| data.home.formation | string | No | 4-3-3 | Formation, for example 4-3-3. | ||
| data.home.players | array | No | Starting players and substitutes. | |||
| data.home.players[].jersey_number | string | No | Shirt number worn in this match. | |||
| data.home.players[].player | object | No | The player. | |||
| data.home.players[].player.country | string | No | Spain | Player's country. | ||
| data.home.players[].player.id | integer | No | 855833 | SofaScore player id. Use it with the player endpoints. | ||
| data.home.players[].player.name | string | No | Ferran Torres | Player's full name. | ||
| data.home.players[].player.position | string | No | F | Position code, for example G, D, M or F. | ||
| data.home.players[].player.short_name | string | No | F. Torres | Shortened name, for example "F. Torres". | ||
| data.home.players[].player.slug | string | No | ferran-torres | URL slug of the player on SofaScore. | ||
| data.home.players[].position | string | No | Position in this match, for example G, D, M or F. | |||
| data.home.players[].substitute | boolean | No | True for a player on the bench. | |||
| data.source_url | string | No | SofaScore 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-lineups?id=14025013" \
-H "x-api-key: $CRAWLORA_API_KEY"