SofaScore API endpoint
Returns one player's touch locations in a football match as `points`, each an `x` and `y` on SofaScore's 0-100 pitch scale. Get `player_id` from event-lineups. Returns 404 when SofaScore has no heatmap for that player in that match, which includes players who did not play, unstarted matches and sports other than football.
/sofascore/event-player-heatmapQuery parameters:
id: required. Numeric SofaScore event (match) id, e.g. 16363867.player_id: required. Numeric SofaScore player id that played in the match, e.g. 839956. Get ids from the event-lineups endpoint.Notable response behavior:
points are touches as an x and y on SofaScore's 0-100 pitch scale (whole numbers).404 when SofaScore has no heatmap for that player in that match: a player who did not play, an unstarted match, or a sport other than football.| Field | Filled in, of 35 checked |
|---|---|
| x | 35 |
| y | 35 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore event (match) id | 16363867 | |
| player_id | string | Yes | Numeric SofaScore player id that played in the match | 839956 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/event-player-heatmap?id=16363867&player_id=839956" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"event_id": 16363867,
"player_id": 839956,
"source_url": "https://api.sofascore.com/api/v1/event/16363867/player/839956/heatmap",
"fetched_at": "2026-07-08T00:00:00Z",
"count": 8,
"points": [
{
"x": 47,
"y": 55
},
{
"x": 56,
"y": 77
},
{
"x": 52,
"y": 33
},
{
"x": 48,
"y": 47
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.eventPlayerHeatmapResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.EventPlayerHeatmapResponse | No | ||||
| data.count | integer | No | ||||
| data.event_id | integer | No | 16363867 | |||
| data.fetched_at | string | No | ||||
| data.player_id | integer | No | 839956 | |||
| data.points | array | No | ||||
| data.points[].x | number | No | 47.6 | |||
| data.points[].y | number | No | 55.9 | |||
| 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/event-player-heatmap?id=16363867&player_id=839956" \
-H "x-api-key: $CRAWLORA_API_KEY"