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

Group: Referees & managers

Every player an agency represents with his contract: kind (dated, loan, freeAgent; null when the source does not know) and the day it ends, soonest first, the undated last. A free agent’s team is null. Since 2026-11-24.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |

## Response

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

## Errors

- 404 not_found — an id we never issued

Plus the common errors (https://sportsapi.app/markdown/en/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/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
$ sportsapi 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.sportsapi.app. Send your API key as `Authorization: Bearer <key>` on every /v2 request; keys are created in the dashboard (https://sportsapi.app/dashboard).
HTML: https://sportsapi.app/docs/people/agencies-contracts · All docs: https://sportsapi.app/markdown/en/docs.md
