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

Group: Fixtures

An American football game cut into its possessions, first to last. For each one: which side had the ball, the clock and period at its first and last play, what started it (kickoff, punt, turnover, …) and what finished it (touchdown, field goal, punt, turnover on downs, …), the number of plays, first downs, net and penalty yards, and how far from the end zone it started, ran its last play and got at its deepest.

Plans: Requires Pro, Business or Enterprise; a Free or Starter key receives 403 endpoint_not_in_plan.

Note: Built from the same source data as /v2/fixtures/{id}/play-by-play, where each entry's drive field holds a drive's number. Field positions are counted as yards left to the end zone the offence was attacking, so a drive from its own 35-yard line has startYardsToGoal 65. A drive still in progress has endReason null. Other sports, and games the source has no drives for, return an empty array. Live, the playByPlay frame on fixture:{id} brings the full list each time.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | fixture id issued by DataSportsAPI, a positive integer |

## Response

- `data`: `PlayByPlayDrive[]`
- `meta`: count
- Objects: PlayByPlayDrive (https://datasportsapi.com/markdown/reference.md#playbyplaydrive)

## Errors

- 403 history_not_in_plan — kick-off falls before the start of your plan’s history window

Plus the errors every /v2 call shares (https://datasportsapi.com/markdown/docs/errors.md).

## Request

cURL:

```bash
curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/fixtures/{id}/drives"
```

TypeScript:

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

Python:

```python
res = client.fixtures.drives(id)
```

Go:

```go
res, err := client.Fixtures.Drives(ctx, id)
```

CLI:

```bash
$ dsa fixtures drives <id>
```

## Example response

```json
{ "data": [
  { "number": 1, "side": "away", "teamDriveNumber": 1, "period": "period1", "startSecondsLeft": 900,
    "endPeriod": "period1", "endSecondsLeft": 702, "durationSeconds": 198, "startReason": "kickoff", "endReason": "punt",
    "plays": 6, "firstDowns": 1, "netYards": 22, "penaltyYards": 5, "startYardsToGoal": 75, "lastPlayYardsToGoal": 53,
    "closestYardsToGoal": 53, "scoring": false, "extraPointsAttempted": null },
  { "number": 2, "side": "home", "teamDriveNumber": 1, "period": "period1", "startSecondsLeft": 690,
    "endPeriod": "period1", "endSecondsLeft": 371, "durationSeconds": 319, "startReason": "punt", "endReason": "touchdown",
    "plays": 9, "firstDowns": 4, "netYards": 88, "penaltyYards": 0, "startYardsToGoal": 88, "lastPlayYardsToGoal": 3,
    "closestYardsToGoal": 3, "scoring": true, "extraPointsAttempted": 1 }, … ],
  "meta": { "count": 24 } }
```

---

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