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

Group: Leagues

The rounds of a season and the current one.

Note: A number can repeat across phases (qualification round 1 and league round 1): pass the round’s slug and prefix to /fixtures to pick the right one. Competitions the source does not organize in rounds (NBA / NHL regular season, single tennis or MMA events) can carry fixture.round while this list is empty.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | our numeric id (positive integer) |
| `season` | query | yes | a season id from /v2/leagues/{id}/seasons |

## Response

- `data`: `Rounds`
- `meta`: season
- Objects: Rounds (https://sportsapi.app/markdown/en/reference.md#rounds)

## Errors

- 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}/rounds?season=…"
```

TypeScript:

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

Python:

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

Go:

```go
res, err := client.Leagues.Rounds(ctx, id, &sportsapi.LeaguesRoundsParams{Season: season})
```

CLI:

```bash
$ sportsapi leagues rounds <id> --season <season>
```

## Example response

```json
{ "data": { "current": { "number": 3, "name": null, "slug": null, "prefix": null },
    "rounds": [ { "number": 1, "name": "Qualification Round 1", "slug": "qualification-round-1", "prefix": null },
                { "number": 636, "name": "Playoff round", "slug": "playoff-round", "prefix": "Qualification" },
                { "number": 1, "name": null, "slug": null, "prefix": null }, … ] },
  "meta": { "season": 200390 } }
```

---

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