# GET /v2/series

Group: Race sports

Lists the series under a race-sport category, such as NASCAR Cup Series, Truck Series and Xfinity under Nascar, Formula 1 under Formula 1, and Cycling Men and Cycling Women under cycling’s International.

Plans: Every plan, Free included.

Note: You get an empty list for a category that holds no series, such as motorsport’s International or any category belonging to a fixture sport. A series id from here works with /v2/series/{id}/seasons, /races and /standings.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `category` | query | yes | motorsport or cycling category id — list them with /v2/categories?sport=motorsport or ?sport=cycling |

## Response

- `data`: `SeriesRef[]`
- `meta`: category, count
- Objects: SeriesRef (https://datasportsapi.com/markdown/reference.md#seriesref)

## Errors

- 400 bad_request — category is absent or invalid
- 404 not_found — DataSportsAPI never issued this category id

Plus the common errors (https://datasportsapi.com/markdown/docs.md#errors).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/series?category=…"
```

TypeScript:

```ts
const { data, meta } = await client.series.list({ category });
```

Python:

```python
res = client.series.list(category=category)
```

Go:

```go
res, err := client.Series.List(ctx, &datasportsapi.SeriesListParams{Category: category})
```

CLI:

```bash
$ dsa series list <category>
```

## Example response

```json
{ "data": [ { "id": 696772, "name": "NASCAR Cup Series", "slug": "nascar-cup-series", "sport": "motorsport" },
    { "id": 812301, "name": "NASCAR Craftsman Truck Series", "slug": "nascar-camping-world", "sport": "motorsport" }, … ],
  "meta": { "category": 696300, "count": 3 } }
```

---

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/races/series-list/ · All docs: https://datasportsapi.com/markdown/docs.md · Data reference: https://datasportsapi.com/markdown/reference.md
