SofaScore API endpoint
Returns one SofaScore team by numeric `id`: name, short name, country, sport, manager, venue with its city and capacity, primary colour, and national-team flag. `tournament_id` and `tournament_name` give the team's primary competition, such as its domestic league. An unknown id returns an upstream error.
/sofascore/teamQuery parameters:
id: required. Numeric SofaScore team id.Notable response behavior:
tournament_id/tournament_name reflect the team's primary competition (e.g. their domestic league).| Field | In the sample | Value in the sample |
|---|---|---|
| team.id | Has a value | |
| team.name | Has a value | “FC Barcelona” |
| team.short_name | Has a value | “Barcelona” |
| team.slug | Has a value | |
| team.country | Has a value | “Spain” |
| team.sport | Has a value | “Football” |
| team.manager | Has a value | “Hans-Dieter Flick” |
| team.venue | Has a value | “Spotify Camp Nou” |
| team.venue_city | Has a value | “Barcelona” |
| team.venue_capacity | Has a value | 62,652 |
| team.primary_color | Has a value | “#154284” |
| team.tournament_id | Has a value | |
| team.tournament_name | Has a value | “LaLiga” |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | 2817 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team?id=2817" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"source_url": "https://api.sofascore.com/api/v1/team/2817",
"fetched_at": "2026-07-08T16:45:00Z",
"team": {
"id": 2817,
"name": "FC Barcelona",
"short_name": "Barcelona",
"slug": "barcelona",
"country": "Spain",
"sport": "Football",
"manager": "Hans-Dieter Flick",
"venue": "Spotify Camp Nou",
"venue_city": "Barcelona",
"venue_capacity": 105000,
"primary_color": "#154284",
"tournament_id": 8,
"tournament_name": "LaLiga"
}
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.source_url | string | No | ||||
| data.team | sofascore.TeamDetail | No | ||||
| data.team.country | string | No | Spain | Country the team belongs to. | ||
| data.team.id | integer | No | 2817 | SofaScore team id. Use it with the team endpoints. | ||
| data.team.manager | string | No | ||||
| data.team.name | string | No | FC Barcelona | Full team name. | ||
| data.team.national | boolean | No | True for a national team. | |||
| data.team.primary_color | string | No | ||||
| data.team.short_name | string | No | Barcelona | Shortened team name. | ||
| data.team.slug | string | No | barcelona | URL slug of the team on SofaScore. | ||
| data.team.sport | string | No | Football | |||
| data.team.tournament_id | integer | No | ||||
| data.team.tournament_name | string | No | ||||
| data.team.venue | string | No | ||||
| data.team.venue_capacity | integer | No | ||||
| data.team.venue_city | 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/team?id=2817" \
-H "x-api-key: $CRAWLORA_API_KEY"