# GET /v2/leagues/{id}/transfers

Group: Leagues

Player movements in a league, latest first, 25 per page — signings, trades, waivers, releases and expiring contracts, for the NBA, the NFL and any other league whose moves our data source tracks.

Plans: Every plan, Free included.

Note: Moves are Transfer objects, as on /v2/teams/{id}/transfers; from or to is null when that side is not a club (a waiver, a free agent). A league with no recorded moves returns an empty list. Moves dated before your plan's history window are left out, and `meta.historyFrom` then names the first day included (since 2026-11-27).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | league id issued by DataSportsAPI, a positive integer |
| `page` | query | no | page number from 0 to 50 (defaults to 0, the most recent moves) |

## Response

- `data`: `Transfer[]`
- `meta`: league, page, count, hasNextPage; historyFrom when your plan's window left older moves out
- Objects: Transfer (https://datasportsapi.com/markdown/reference.md#transfer)

## Errors

- 400 bad_request — page is outside 0–50
- 404 not_found — DataSportsAPI has never assigned this league id

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/leagues/{id}/transfers"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.transfers(id);
for await (const page of client.leagues.transfersPages(id)) { … }
```

Python:

```python
res = client.leagues.transfers(id)
for page in client.leagues.transfers_pages(id): ...
```

Go:

```go
res, err := client.Leagues.Transfers(ctx, id, &datasportsapi.LeaguesTransfersParams{})
for page, err := range client.Leagues.TransfersPages(ctx, id, &datasportsapi.LeaguesTransfersParams{}) { … }
```

CLI:

```bash
$ dsa leagues transfers <id>
$ dsa leagues transfers <id> --all -o csv
```

## Example response

```json
{ "data": [ { "player": { "id": 998636, "name": "Killian Hayes", … }, "from": { "id": 3413, "name": "Sacramento Kings", … }, "to": { "id": 3543, "name": "Barça Basket", … },
      "type": "transfer", "date": "2026-11-18", … }, … ],
  "meta": { "league": 132, "page": 0, "count": 25, "hasNextPage": true } }
```

---

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/leagues/transfers/ · Group: https://datasportsapi.com/markdown/docs/leagues.md · All docs: https://datasportsapi.com/markdown/docs.md · Data model: https://datasportsapi.com/markdown/reference.md
