# GET /v2/referees/{id}/fixtures

Group: Referees & managers

A page of the matches the referee officiated (recent) or is appointed to (upcoming) — the same list rule as team fixtures.

Note: upcoming = not started, soonest first; recent = in play, finished or called off, newest first. A known referee without an appointment answers 200 with an empty array.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `type` | query | no | recent \| upcoming (default upcoming) |
| `page` | query | no | page index, an integer 0–50 (default 0) |

## Response

- `data`: `Fixture[]`
- `meta`: type, page, count, hasNextPage, plus historyFrom when older fixtures were left out for your plan
- Objects: Fixture (https://sportsapi.app/markdown/en/reference.md#fixture)

## Errors

- 400 bad_request — type not recent|upcoming, or page not an integer 0–50

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/referees/{id}/fixtures"
```

TypeScript:

```ts
const { data, meta } = await client.referees.fixtures(id);
for await (const page of client.referees.fixturesPages(id)) { … }
```

Python:

```python
res = client.referees.fixtures(id)
for page in client.referees.fixtures_pages(id): ...
```

Go:

```go
res, err := client.Referees.Fixtures(ctx, id, &sportsapi.RefereesFixturesParams{})
for page, err := range client.Referees.FixturesPages(ctx, id, &sportsapi.RefereesFixturesParams{}) { … }
```

CLI:

```bash
$ sportsapi referees fixtures <id>
$ sportsapi referees fixtures <id> --all -o csv
```

## Example response

```json
{ "data": [ { "id": 201324, "status": { "type": "finished", … }, "referee": null, … }, … ],
  "meta": { "type": "recent", "page": 0, "count": 30, "hasNextPage": true } }
```

---

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/referees-fixtures · All docs: https://sportsapi.app/markdown/en/docs.md
