SofaScore API endpoint
Returns a team's statistics for one competition season (goals, shots, passing, duels, discipline, and the matching conceded-side metrics) as a snake_case metric map. The `type` enum accepts `overall`, `home`, `away`, `regular_season`, and `playoffs` and defaults to `overall`; only the types listed for that season by team-statistics-seasons exist (football teams have `overall` only; basketball, ice hockey and baseball teams have `regular_season` and `playoffs`). Returns 404 when SofaScore has no statistics of that type for the combination.
/sofascore/team-season-statisticsQuery parameters:
id: required. Numeric SofaScore team id, e.g. 17.tournament_id: required. Numeric SofaScore unique-tournament (competition) id from the team-statistics-seasons endpoint, e.g. 17.season: required. Numeric SofaScore season id from the team-statistics-seasons endpoint, e.g. 96668.type: optional enum. Allowed values: overall, home, away, regular_season, playoffs. Defaults to overall.Notable response behavior:
types the team-statistics-seasons endpoint lists for that season exist. Football teams expose overall only (home and away return 404); basketball and ice hockey teams use regular_season and playoffs (overall returned 404 for the basketball subjects checked).statistics keys depend on the sport; a metric SofaScore did not record is omitted rather than returned as 0. Common football keys: goals_scored, goals_conceded, shots, shots_on_target, average_ball_possession, clean_sheets, avg_rating, plus *_against conceded-side metrics.type returns 400. Returns 404 when SofaScore has no statistics of that type for the team, competition and season.| Field | In the sample | Value in the sample |
|---|---|---|
| team_id | Has a value | |
| tournament_id | Has a value | |
| season | Has a value | 76,986 |
| type | Has a value | “overall” |
| statistics | Has a value |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | 17 | |
| tournament_id | string | Yes | Numeric SofaScore unique-tournament (competition) id from team-statistics-seasons | 17 | |
| season | string | Yes | Numeric SofaScore season id from team-statistics-seasons | 96668 | |
| type | string | No | Statistics view Allowed values: overall, home, away, regular_season, playoffs. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-season-statistics?id=17&tournament_id=17&season=96668&type=overall" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 17,
"tournament_id": 17,
"season": 96668,
"type": "overall",
"source_url": "https://api.sofascore.com/api/v1/team/17/unique-tournament/17/season/96668/statistics/overall",
"fetched_at": "2026-07-08T00:00:00Z",
"statistics": {
"goals_scored": 13,
"goals_conceded": 5,
"shots": 68,
"shots_on_target": 27,
"average_ball_possession": 63.2,
"clean_sheets": 2,
"avg_rating": 7.896
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamSeasonStatisticsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamSeasonStatisticsResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.season | integer | No | 96668 | |||
| data.source_url | string | No | ||||
| data.statistics | object | No | ||||
| data.team_id | integer | No | 17 | |||
| data.tournament_id | integer | No | 17 | |||
| data.type | string | No | overall | |||
| 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/team-season-statistics?id=17&tournament_id=17&season=96668&type=overall" \
-H "x-api-key: $CRAWLORA_API_KEY"