SofaScore API endpoint
Returns the trophies a team has won: the total and, per competition, the number won and the winning seasons (newest first, with the season id where SofaScore tracks it). Some competitions, such as US leagues, report a count with an empty or shorter `seasons` list. Returns 404 when SofaScore records no achievements for the team.
/sofascore/team-achievementsQuery parameters:
id: required. Numeric SofaScore team id, e.g. 17. Get it from sofascore-search or sofascore-team-events.Notable response behavior:
seasons lists the winning seasons newest first; season_id is present only for seasons SofaScore tracks. US leagues report trophies_won with an empty or shorter seasons list, so do not assume the two lengths match.total_trophies is the sum of trophies_won over the competitions.404 when SofaScore records no achievements for the team.| Field | Filled in, of 9 checked | Values in the sample |
|---|---|---|
| competition | 9 | |
| trophies_won | 9 | 1 to 10, median 7 |
| seasons | 9 | median 7 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id | string | Yes | Numeric SofaScore team id | 17 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/team-achievements?id=17" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"team_id": 17,
"source_url": "https://api.sofascore.com/api/v1/team/17/achievements",
"fetched_at": "2026-10-07T00:00:00Z",
"total_trophies": 45,
"count": 1,
"achievements": [
{
"competition": {
"id": 17,
"name": "Premier League",
"slug": "premier-league",
"category": "England",
"sport": "football",
"gender": "M"
},
"trophies_won": 10,
"seasons": [
{
"year": "23/24"
},
{
"year": "22/23"
},
{
"year": "11/12",
"season_id": 3391
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.teamAchievementsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TeamAchievementsResponse | No | ||||
| data.achievements | array | No | ||||
| data.achievements[].competition | sofascore.UniqueTournamentBrief | No | UniqueTournamentBrief record, 6 fields: category, gender, id, name, slug, sport. Described under SofaScore team competitions API. | |||
| data.achievements[].seasons | array | No | Seasons lists the winning seasons, newest first. It can be empty or shorter than TrophiesWon (US leagues report a count without years). | |||
| data.achievements[].seasons[].season_id | integer | No | 3391 | |||
| data.achievements[].seasons[].year | string | No | 23/24 | |||
| data.achievements[].trophies_won | integer | No | 10 | |||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.source_url | string | No | ||||
| data.team_id | integer | No | 17 | |||
| data.total_trophies | integer | No | 45 | |||
| 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-achievements?id=17" \
-H "x-api-key: $CRAWLORA_API_KEY"