SofaScore API endpoint
Returns a sport's trending top players: standout performers from recent matches with the player, team, the match and that match's numbers as a snake_case metric map (`rating`, `minutes_played`, `goals` and more; the metric set depends on the sport and position). The `sport` enum accepts `football` and `basketball`, the sports for which SofaScore publishes this list. Returns 404 when SofaScore has no trending players for the sport right now.
/sofascore/trending-playersQuery parameters:
sport: required enum. Allowed values: football, basketball.Notable response behavior:
player, team, the event (match) summary and statistics, that match's numbers as a snake_case metric map. The metric set depends on the sport and position, a metric SofaScore did not record is omitted rather than returned as 0, and nested values are flattened (rating_versions_original).football and basketball publish this list: tennis, ice-hockey, baseball, american-football, esports, volleyball, handball and cricket answered 404 when checked (2026-10-07), so other sports return 400.404 when SofaScore has no trending players for the sport right now.| Field | Filled in, of 20 checked |
|---|---|
| player | 20 |
| team | 20 |
| event | 20 |
| statistics | 20 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| sport | string | Yes | Sport key Allowed values: football, basketball. | football | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/sofascore/trending-players?sport=football" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sport": "football",
"source_url": "https://api.sofascore.com/api/v1/sport/football/trending-top-players",
"fetched_at": "2026-07-08T00:00:00Z",
"count": 2,
"players": [
{
"player": {
"id": 996820,
"name": "Kristjan Asllani",
"short_name": "K. Asllani",
"slug": "kristjan-asllani",
"position": "M",
"jersey_number": "23"
},
"team": {
"id": 4690,
"name": "Albania",
"short_name": "Albania",
"slug": "albania",
"national": true
},
"event": {
"id": 15534144,
"slug": "san-marino-albania",
"start_timestamp": 1791312300,
"start_time": "2026-10-06T18:45:00Z",
"status": {
"code": 100,
"description": "Ended",
"type": "finished"
},
"winner_code": 1,
"tournament": {
"id": 64384,
"name": "UEFA Nations League, League C, Gr. 1",
"slug": "uefa-nations-league-league-c-gr-1",
"category": "Europe",
"unique_tournament_id": 10783,
"unique_tournament_name": "UEFA Nations League"
},
"home_team": {
"id": 4690,
"name": "Albania",
"short_name": "Albania",
"slug": "albania",
"national": true
},
"away_team": {
"id": 4833,
"name": "San Marino",
"short_name": "San Marino",
"slug": "san-marino",
"national": true
},
"home_score": {
"current": 2,
"period1": 1,
"period2": 1
},
"away_score": {
"current": 1,
"period2": 1
}
},
"statistics": {
"accurate_pass": 67,
"duel_won": 5,
"expected_goals": 1.056,
"goals": 2,
"minutes_played": 90,
"rating": 10,
"total_pass": 73,
"touches": 105
}
}
]
}
}Request schema
No body schema
Response schema
#/definitions/sofascore.trendingPlayersResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | sofascore.TrendingPlayersResponse | No | ||||
| data.count | integer | No | ||||
| data.fetched_at | string | No | ||||
| data.players | array | No | ||||
| data.players[].event | sofascore.EventSummary | No | EventSummary record, 38 fields: away_score, away_team, home_score, home_team, id, slug, start_time, start_timestamp, status, tournament, winner_code. Described under SofaScore live events API. | |||
| data.players[].player | sofascore.PlayerBrief | No | PlayerBrief record, 6 fields: id, jersey_number, name, position, short_name, slug. Described under SofaScore event at-bat pitches API. | |||
| data.players[].statistics | object | No | ||||
| data.players[].team | sofascore.TeamRef | No | TeamRef record, 6 fields: country, id, name, national, short_name, slug. Described under SofaScore venue API. | |||
| data.source_url | string | No | ||||
| data.sport | string | No | football | |||
| 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/trending-players?sport=football" \
-H "x-api-key: $CRAWLORA_API_KEY"