Skip to content
API v2 docs

Teams

Recent tournaments

GET

/v2/teams/{id}/recent-leagues

All plans

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

id

pathrequired

DataSportsAPI team id, a positive integer

Response

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 } }