Skip to content
datasportsAPI

TeamsPosition history

Documentation

/

Type to filter the docs by title or path.

TeamsEndpoint 46 of 116

Position history

GET

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

Plan
All plans
Auth
Bearer dsa_live_…
Parameters
3 required · 0 optional
Returns
PositionHistoryPoint[]

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.

Worth knowing

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.

01Parameters

02Request

The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.

curl -H "Authorization: Bearer dsa_live_…" \
    "https://api.datasportsapi.com/v2/teams/{id}/position-history?league=…&season=…"

03Response

The top-level keys of the JSON body. Each object links to its full shape in the data reference.

data
PositionHistoryPoint[]
meta
league, season, count
Example response
{ "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 } }

04Errors

  • 400bad_request

    league or season is absent or malformed

  • 403history_not_in_plan

    the season finished before your plan’s history window begins

  • 404no_data

    the source holds no position history for this team, league and season (an id DataSportsAPI never assigned gives 404 not_found instead)

  • 404not_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 key can also meet401unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code