Skip to content
API v2 docs

Teams

Depth chart

GET

/v2/teams/{id}/depth-chart

All plans

Markdown copyOpen in the playground →

Shows how a team lines up as the source records it. Ice hockey: the forward lines (left wing, centre and right wing of lines 1–4), the defence pairs (left and right of pairs 1–4), the goaltenders in order (1 is the starter, 2 the backup) and both power-play units (five places each). Baseball (since 2026-11-23): the starting pitchers in rotation order, the relievers, the closer, and who covers each place in the field from catcher to designated hitter, first choice first. Available since 2026-11-23.

Ice hockey (NHL) and baseball teams have one so far; any other team returns an empty array. A player is listed once for every slot he holds, so a first-line centre often turns up again on a power-play unit. The chart is read together with the squad, so it is as current as /squad (a day at most).

Parameters

id

pathrequired

DataSportsAPI team id, a positive integer

Response

meta
count

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}/depth-chart"
Example
{ "data": [ { "position": "leftWing", "depth": 1, "player": { "id": 904211, "name": "Matthew Tkachuk", "slug": "matthew-tkachuk", "shortName": "M. Tkachuk", "image": "…" } },
    { "position": "center", "depth": 1, "player": { "id": 904207, "name": "Aleksander Barkov", … } }, …,
    { "position": "goalie", "depth": 1, "player": { "id": 904230, "name": "Sergei Bobrovsky", … } },
    { "position": "powerPlay1", "depth": 2, "player": { … } }, … ],
  "meta": { "count": 31 } }