Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Teams

Position history

GET

/v2/teams/{id}/position-history

All plans

View as MarkdownTry in Playground →

Tracks a team’s league position week by week through one season, starting at week 1: the position at the end of each week and the fixtures played in it.

Works only for league competitions that have a table, not for cups. In a week without a match, the previous week’s position carries over.

Parameters

id

pathrequired

DataSportsAPI team id, a positive integer

league

queryrequired

league id, for instance one returned by /v2/teams/{id}/leagues

season

queryrequired

season id, as listed by /v2/leagues/{id}/seasons

Response

meta
league, season, count
errors
400 bad_request — league or season is absent or malformed403 history_not_in_plan — the season finished before your plan’s history window begins404 no_data — the source holds no position history for this team, league and season (an id DataSportsAPI never assigned gives 404 not_found instead)404 not_found — the season id does not belong to this league; the error message names the offending parameter, and /v2/leagues/{id}/seasons lists the valid ones

Any /v2 call can also come back with one of the common errors.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/teams/{id}/position-history?league=…&season=…"
Example
{ "data": [ { "week": 1, "from": "2026-08-21", "to": "2026-08-27", "position": 2, "fixtureIds": [201101] },
    { "week": 2, "from": "2026-08-28", "to": "2026-09-03", "position": 1, "fixtureIds": [201188] }, … ],
  "meta": { "league": 195828, "season": 200386, "count": 9 } }