Drives
GET
/
Markdown copyOpen in the playground →
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.
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
idpathrequired
fixture id issued by DataSportsAPI, a positive integer
Response
- data
PlayByPlayDrive[]- meta
- count
- errors
- 403
history_not_in_plan— kick-off falls before the start of your plan’s history window
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/fixtures/{id}/drives"Example
{ "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 } }