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

Group: Leagues

The fixtures of one round of a season.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `season` | query | yes | a season id from /v2/leagues/{id}/seasons |
| `round` | query | yes | a round number from /rounds (1–9999) |
| `slug` | query | no | the round’s slug from /rounds, when it has one |
| `prefix` | query | no | the round’s prefix from /rounds (only used together with slug) |

## Response

- `data`: `Fixture[]`
- `meta`: season, round, slug, prefix, count
- Objects: Fixture (https://sportsapi.app/markdown/en/reference.md#fixture)

## Errors

- 400 bad_request — missing season or round, malformed slug or prefix
- 404 not_found — season is not one of this league’s seasons (the message names the parameter; list them with /v2/leagues/{id}/seasons)

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/leagues/{id}/fixtures?season=…&round=…"
```

TypeScript:

```ts
const { data, meta } = await client.leagues.fixtures(id, { season, round });
```

Python:

```python
res = client.leagues.fixtures(id, season=season, round=round)
```

Go:

```go
res, err := client.Leagues.Fixtures(ctx, id, &sportsapi.LeaguesFixturesParams{Season: season, Round: round})
```

CLI:

```bash
$ sportsapi leagues fixtures <id> --season <season> --round <round>
```

## Example response

```json
{ "data": [ { "id": 201324, "round": { "number": 7, "name": null, "slug": null, "prefix": null }, … }, … ],
  "meta": { "season": 200386, "round": 7, "slug": null, "prefix": null, "count": 10 } }
```

---

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