# GET /v2/agencies/{id}/contracts

Group: Managers & referees

The agency's clients, one row per player, each with the type of deal he is on (dated, loan or freeAgent; null where the source cannot say) and when it runs out. The earliest expiry is listed first and deals without a date go to the bottom. Available since 2026-11-24.

Plans: Every plan, Free included.

Note: A free agent has team null. When the few contracts that end first are enough, AgencyDetail.expiringContracts already has them. Each row includes the player's position (since 2026-11-25), null when the source has none.

## Parameters

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

## Response

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

## Errors

- 404 not_found — DataSportsAPI has never assigned this 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/agencies/{id}/contracts"
```

TypeScript:

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

Python:

```python
res = client.agencies.contracts(id)
```

Go:

```go
res, err := client.Agencies.Contracts(ctx, id)
```

CLI:

```bash
$ dsa agencies contracts <id>
```

## Example response

```json
{ "data": [ { "player": { "id": 1039656, "name": "Alan Kardec", … }, "team": { "id": 1980, "name": "Juventude", … },
    "kind": "dated", "contractUntil": "2026-12-31" }, … ],
  "meta": { "count": 132 } }
```

---

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