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

Group: Teams

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.

Plans: Every plan, Free included.

Note: 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

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | DataSportsAPI team id, a positive integer |

## Response

- `data`: `DepthChartEntry[]`
- `meta`: count
- Objects: DepthChartEntry (https://datasportsapi.com/markdown/reference.md#depthchartentry)

## Errors

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/teams/{id}/depth-chart"
```

TypeScript:

```ts
const { data, meta } = await client.teams.depthChart(id);
```

Python:

```python
res = client.teams.depth_chart(id)
```

Go:

```go
res, err := client.Teams.DepthChart(ctx, id)
```

CLI:

```bash
$ dsa teams depth-chart <id>
```

## Example response

```json
{ "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 } }
```

---

Base URL: https://api.datasportsapi.com. Authenticate each /v2 call with the header `Authorization: Bearer <key>` (secret keys begin with `sk_live_`).
HTML: https://datasportsapi.com/docs/teams/depth-chart/ · Group: https://datasportsapi.com/markdown/docs/teams.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
