Teams
Depth chart
GET/v2/teams/{id}/depth-chartAll plans
The team’s depth chart as the source keeps it. Ice hockey: forward lines (left wing, centre, right wing, lines 1–4), defence pairs (left and right defence, pairs 1–4), the goalies (1 = the starter, 2 = the backup) and the two power-play units (slots 1–5). Baseball: the starting rotation, the bullpen, the closer and each fielding position plus the designated hitter (depth 1 = the starter).
Filled for NHL and MLB teams; an empty array where the source keeps no depth chart (the NFL, football and others). A player appears once per slot he fills — a first-line centre is usually on a power-play unit too. Comes from the same source answer as /squad, so it is as fresh as the squad (up to a day).
Parameters
id
our numeric id (positive integer)
Response
- data
DepthChartEntry[]- meta
- count
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/teams/{id}/depth-chart"
Example
{ "data": [ { "position": "rightWing", "depth": 1, "player": { "id": 812345, "name": "Nikita Kucherov", "slug": "nikita-kucherov", "shortName": "N. Kucherov", "image": "…" } }, { "position": "center", "depth": 1, "player": { "id": 812346, "name": "Brayden Point", … } }, …, { "position": "goalie", "depth": 1, "player": { "id": 812350, "name": "Andrei Vasilevskiy", … } }, { "position": "powerPlay1", "depth": 1, "player": { … } }, … ], "meta": { "count": 30 } }