# GET /v2/races

Group: Race sports

Returns every race that has a session beginning on a given UTC day, with all of each race’s sessions included.

Plans: Every plan, Free included.

Note: A day lists no more than 40 races. A race weekend shows up on each day on which one of its sessions begins. Our data source sometimes records a weekend twice, under two identically named series (NASCAR Cup Series); we drop the copy whose series has no seasons from the day’s list, although its id still resolves on /v2/races/{id}.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `sport` | query | yes | motorsport \| cycling |
| `date` | query | yes | UTC date in YYYY-MM-DD format |

## Response

- `data`: `Race[]`
- `meta`: date, sport, count, complete (false if some races were temporarily unavailable — try again shortly)
- Objects: Race (https://datasportsapi.com/markdown/reference.md#race)

## Errors

- 400 bad_request — the date is missing or not a valid day, or the sport is not one of the race sports
- 403 history_not_in_plan — your plan’s history does not reach back to that date
- 503 upstream_unavailable — every race of the day failed to load

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/races?sport=…&date=…"
```

TypeScript:

```ts
const { data, meta } = await client.races.list({ date, sport });
```

Python:

```python
res = client.races.list(date=date, sport=sport)
```

Go:

```go
res, err := client.Races.List(ctx, &datasportsapi.RacesListParams{Date: date, Sport: sport})
```

CLI:

```bash
$ dsa races list --date <date> --sport <sport>
```

## Example response

```json
$ curl -H "Authorization: Bearer sk_live_…" "https://api.datasportsapi.com/v2/races?sport=motorsport&date=2026-10-11"

{ "data": [ { "id": 812345, "name": "Singapore GP", "sport": "motorsport", "series": { "id": 812300, "name": "Formula 1", … },
    "status": "finished", "startDate": "2026-10-09", "endDate": "2026-10-11", "sessions": [ … ], … }, … ],
  "meta": { "date": "2026-10-11", "sport": "motorsport", "count": 3, "complete": true } }
```

---

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