SofaScore API endpoint
Returns a player's national team record: for each national team the appearances, goals and debut date. An empty `teams` list is a valid response for a player who never played internationally.
/sofascore/player-national-team-statisticsReturns a player's national team record from SofaScore: appearances, goals and debut date per national team.
Query parameters:
id: required. Numeric SofaScore player id, e.g. 839956. Get it from sofascore-search or sofascore-team-players.Notable response behavior:
teams list is a valid response for a player who never played internationally. A goal count SofaScore leaves out is 0.| Field | Filled in, of 1 checked | Values in the sample |
|---|---|---|
| team | 1 | |
| appearances | 1 | 59 |
| goals | 1 | 65 |
| debut_timestamp | 1 | 2019-09-05 |
| debut_date | 1 | 2019-09-05 |
| 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-national-team-statistics?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/national-team-statistics",
"fetched_at": "2026-10-07T00:00:00Z",
"count": 1,
"teams": [
{
"team": {
"id": 4475,
"name": "Norway",
"short_name": "Norway",
"slug": "norway",
"national": true
},
"appearances": 59,
"goals": 65,
"debut_timestamp": 1567641600,
"debut_date": "2019-09-05"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.playerNationalTeamStatisticsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.PlayerNationalTeamStatisticsResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.player_id | integer | No | 839956 | |||
| data.source_url | string | No | ||||
| data.teams | array | No | ||||
| data.teams[].appearances | integer | No | 59 | |||
| data.teams[].debut_date | string | No | 2019-09-06 | |||
| data.teams[].debut_timestamp | integer | No | ||||
| data.teams[].goals | integer | No | 65 | |||
| data.teams[].team | sofascore.TeamRef | No | TeamRef record, 6 fields: country, id, name, national, short_name, slug. Described under SofaScore venue 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-national-team-statistics?id=839956" \
-H "x-api-key: $CRAWLORA_API_KEY"