SofaScore API endpoint
Returns a player's form timeline over roughly the last year: `summary` entries, each with a `type`, a date and (where it applies) a competition. `event` is a rated match (the rating is in `value` as published and as a number in `rating`, the competition in `tournament_id`); `injury` is an injury period whose `value` is an opaque number; `missing` is a match the player missed; `transfer` is a transfer date. `tournaments` describes the competitions referenced. An empty `summary` is a valid response for a player with no rated appearance in the period.
/sofascore/player-last-year-summaryReturns a player's form timeline over roughly the last year from SofaScore: rated matches, injuries, missed matches and transfers.
Query parameters:
id: required. Numeric SofaScore player id, e.g. 839956. Get it from sofascore-search or sofascore-team-players.Notable response behavior:
summary entries carry a type, a timestamp and date. Observed type values: event (a rated match: the rating as published in value, a string, and as a number in rating, plus the tournament_id), injury (an injury period; value is an opaque number and no rating is given), missing (a match the player missed, nothing else) and transfer (a transfer date, nothing else). Only event entries have a rating and a tournament_id.tournaments describes the competitions referenced by the event entries, sorted by id.summary is a valid response for a player with no rated appearance in the period (tournaments is then empty as well).| Field | Filled in, of 61 checked | Values in the sample |
|---|---|---|
| type | 61 | event in all 61 |
| timestamp | 61 | 2025-11-02 to 2026-10-11 |
| date | 61 | 2025-11-02 to 2026-10-11 |
| value | 61 | 6 to 9.5, median 7 |
| rating | 61 | 6 to 9.5, median 7 |
| tournament_id | 61 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore player id | 839956 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/player-last-year-summary?id=839956" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"player_id": 839956,
"source_url": "https://api.sofascore.com/api/v1/player/839956/last-year-summary",
"fetched_at": "2026-10-07T00:00:00Z",
"count": 1,
"summary": [
{
"type": "event",
"timestamp": 1762101000,
"date": "2025-11-02T16:30:00Z",
"value": "9.3",
"rating": 9.3,
"tournament_id": 17
}
],
"tournaments": [
{
"id": 17,
"name": "Premier League",
"slug": "premier-league",
"category": "England",
"sport": "football",
"gender": "M"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.playerLastYearSummaryResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.PlayerLastYearSummaryResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.player_id | integer | No | 839956 | |||
| data.source_url | string | No | ||||
| data.summary | array | No | ||||
| data.summary[].date | string | No | 2025-11-02T16:30:00Z | |||
| data.summary[].rating | number | No | 9.3 | |||
| data.summary[].timestamp | integer | No | ||||
| data.summary[].tournament_id | integer | No | 17 | |||
| data.summary[].type | string | No | event | |||
| data.summary[].value | string | No | 9.3 | Value is the upstream value as published: the rating for an event, an opaque number for an injury, absent for the other types. | ||
| data.tournaments | array | No | UniqueTournamentBrief record, 6 fields: category, gender, id, name, slug, sport. Described under SofaScore team competitions API. | |||
| 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/player-last-year-summary?id=839956" \
-H "x-api-key: $CRAWLORA_API_KEY"