Recent top performances
GET
/
Markdown copyOpen in the playground →
The standout player lines from the league’s most recent day of matches, ranked on a single statistic; every entry includes the match it came from and the full box-score line.
For the best single-match figures of the whole season, see /v2/leagues/{id}/top-performances; this endpoint covers the latest day only. If the league has not played lately, the list is empty.
Parameters
idpathrequired
league id issued by DataSportsAPI, a positive integer
orderquery
points (the default), rebounds, assists, steals, blocks or rating
Response
- data
RecentPerformance[]- meta
- league, order, count
- errors
- 400
bad_request— order is not one of the listed values404not_found— DataSportsAPI has never assigned this league id
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/leagues/{id}/top-performances/recent"Example
{ "data": [ { "player": { "id": 817232, "name": "Damian Lillard", … }, "team": { "name": "Portland Trail Blazers", … }, "fixture": { "id": 16824911, … },
"statistics": { "points": 33, "rebounds": 6, "assists": 0, "threePointsMade": 5, … } }, … ],
"meta": { "league": 132, "order": "points", "count": 10 } }