Recent tournaments
GET
/
Markdown copyOpen in the playground →
Tennis: the tournaments a player has entered lately, the latest first, each with the furthest round he reached and whether he took the title.
Anyone who is not a tennis player gives an empty array. To list his matches in singles or in doubles only, call /v2/teams/{id}/fixtures with type=recent and discipline.
Parameters
idpathrequired
DataSportsAPI team id, a positive integer
Response
- data
RecentLeague[]- meta
- count
- errors
- 404
not_found— DataSportsAPI has never assigned this 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/teams/{id}/recent-leagues"Example
{ "data": [ { "league": { "id": 200810, "name": "Australian Open, Men", … }, "round": "Semifinals", "won": false }, … ],
"meta": { "count": 9 } }