> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://statpad.dev/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://statpad.dev/docs/_mcp/server.

# List a game's plays

GET https://api.statpad.dev/v1/{league}/games/{game_id}/plays

Plays in game order, (`sequence`, `id`). Deleted plays are left out.

Reference: https://statpad.dev/docs/api-reference/play-by-play/list-plays

## Authentication

- `Authorization` header (bearer token, required) — An API key, sent as `Authorization: Bearer <key>`.

## Request

### Path parameters

- `league` (string, required) — The league's alias.
- `game_id` (string, required)

### Query parameters

- `cursor` (string, optional) — `next_cursor` from the previous page. Omit it for the first page.
- `limit` (integer, optional, default: 500) — Page size.

### Headers

- `If-None-Match` (string, optional) — An `ETag` from an earlier response. When it still matches, the response is 304 with no body.

## Response

### 200

A page of plays.

- `data` (list of Play, required)
- `next_cursor` (string, required, nullable) — Pass as `cursor` for the next page; null on the last page.
- `seq` (long, required) — The position in the game's stream this page reflects. When paging, resume the stream from the first page's seq.

## Errors

### 400 Bad Request Error

A parameter is missing or invalid (`bad_request`).

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

### 401 Unauthorized Error

The API key is missing, unknown or revoked (`unauthorized`).

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

### 403 Forbidden Error

The plan doesn't include this league or feature (`forbidden`).

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

### 404 Not Found Error

No such league or entity (`not_found`).

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

### 429 Too Many Requests Error

The account's request rate (`rate_limited`) or period allowance (`quota_exhausted`, with `resets_at`) is used up. No data is served.

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

### 500 Internal Server Error

Something failed on our side (`internal`). Retry with backoff.

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

### 503 Service Unavailable Error

Account access or its limits could not be checked because a dependency is unavailable (`unavailable`). No data is served.

- `type` (string, required) — Identifies the problem type.
- `title` (string, required)
- `status` (integer, required)
- `code` (enum, required) — `bad_request` a malformed request or message. `unauthorized` a missing or invalid API key. `forbidden` the plan doesn't include the league or feature. `not_found`. `rate_limited`. `resync_required` the requested position is older than the retained history, so subscribe again without `resume` for a fresh snapshot (for a game stream, a REST game read with its `seq` also works). `invalid_resume` a resume seq beyond the stream's head. `slow_consumer` the client fell too far behind and was dropped from a stream, so resume from `resume_from`. `too_many_subscriptions`. `unknown_stream`. `internal`. `unavailable`. `quota_exhausted` the account has used its request allowance for the current period.
  - Allowed values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `rate_limited`, `resync_required`, `invalid_resume`, `slow_consumer`, `too_many_subscriptions`, `unknown_stream`, `internal`, `unavailable`, `quota_exhausted`
- `detail` (string, optional)
- `request_id` (string, optional)
- `min_seq` (long, optional) — With `resync_required`, the oldest seq the stream still holds.
- `resets_at` (datetime, optional) — With `quota_exhausted`, when the next period's allowance starts.

## Types

### Play

One event in a game. `sequence` is the provider's total order within the game; two plays can share it, so order by (`sequence`, `id`). Corrections bump `version`.

- `id` (string, required)
- `game_id` (string, required)
- `group_id` (string, required, nullable)
- `sequence` (long, required)
- `period` (integer, required)
- `period_half` (enum, required, nullable) — Top or bottom of an inning. Other sports have no halves, so the field is null.
  - Allowed values: `top`, `bottom`
- `clock_seconds` (integer, required, nullable)
- `wall_clock` (datetime, required, nullable)
- `type` (string, required) — The play's type in its sport's vocabulary. Football uses the FootballPlayType values, soccer the SoccerPlayType values and basketball the BasketballPlayType values.
- `description` (string, required, nullable)
- `team_id` (string, required, nullable) — The team with the ball or at bat; in soccer and basketball, the team credited with the event, which for a shot is the shooting team.
- `is_scoring` (boolean, required)
- `points` (integer, required, nullable)
- `home_score` (integer, required, nullable) — Score after the play.
- `away_score` (integer, required, nullable) — Score after the play.
- `is_official` (boolean, required)
- `participants` (list of Participant, required)
- `football` (FootballPlay, required, nullable)
- `soccer` (SoccerPlay, required, nullable) — A soccer event. Positions run 0-100 from the acting team's view: x from its own goal line to the one it attacks, y across the pitch. A shoot-out kick has `is_shootout` set, is in period 5 and never counts toward the score.
- `basketball` (BasketballPlay, required, nullable) — A basketball event. A shot is worth `points_attempted` (1 for a free throw, 2 or 3 for a field goal, 0 for anything else) and `is_made` says whether it went in. Court positions are in feet: x across the court from 0 to 50, y along it from the basket attacked, negative behind the basket.
- `version` (integer, required) — Bumps on every change to the entity, deletions included. A client holding a version can ignore any state with a lower one.
- `updated_at` (datetime, required)

### Participant

- `player_id` (string, required)
- `team_id` (string, required)
- `role` (string, required)

### FootballPlay

- `play_type` (enum, required)
  - Allowed values: `pass`, `rush`, `punt`, `kickoff`, `field_goal`, `extra_point`, `two_point`, `penalty`, `kneel`, `spike`, `timeout`, `other`
- `down` (integer, required, nullable)
- `yards_to_go` (integer, required, nullable)
- `start_yardline` (integer, required, nullable)
- `end_yardline` (integer, required, nullable)
- `yards_gained` (integer, required, nullable)
- `is_first_down` (boolean, required)
- `is_touchdown` (boolean, required)
- `is_turnover` (boolean, required)
- `is_penalty` (boolean, required)
- `play_action` (boolean, required, nullable)
- `screen_pass` (boolean, required, nullable)
- `run_pass_option` (boolean, required, nullable)
- `air_yards` (integer, required, nullable)
- `penalty_yards` (integer, required, nullable) — Net yards penalties moved the ball, for (+) or against (-) the offense, so that start_yardline + yards_gained + penalty_yards = end_yardline. Null without a penalty.

### SoccerPlay

A soccer event. Positions run 0-100 from the acting team's view: x from its own goal line to the one it attacks, y across the pitch. A shoot-out kick has `is_shootout` set, is in period 5 and never counts toward the score.

- `play_type` (enum, required)
  - Allowed values: `goal`, `own_goal`, `penalty_goal`, `penalty_missed`, `penalty_saved`, `shot_on_target`, `shot_off_target`, `shot_blocked`, `shot_woodwork`, `foul`, `handball`, `offside`, `corner`, `yellow_card`, `red_card`, `substitution`, `var_decision`, `goal_disallowed`, `delay_start`, `delay_end`, `period_start`, `period_end`, `other`
- `minute` (integer, required, nullable) — The match minute shown for the event.
- `added_minute` (integer, required, nullable) — The stoppage minute after it.
- `is_shootout` (boolean, required)
- `body_part` (enum, required, nullable)
  - Allowed values: `left_foot`, `right_foot`, `head`, `other`
- `field_x` (float, required, nullable) — Where the event happened.
- `field_y` (float, required, nullable)
- `end_x` (float, required, nullable) — Where a shot ended.
- `end_y` (float, required, nullable)

### BasketballPlay

A basketball event. A shot is worth `points_attempted` (1 for a free throw, 2 or 3 for a field goal, 0 for anything else) and `is_made` says whether it went in. Court positions are in feet: x across the court from 0 to 50, y along it from the basket attacked, negative behind the basket.

- `play_type` (enum, required)
  - Allowed values: `field_goal`, `free_throw`, `offensive_rebound`, `defensive_rebound`, `rebound`, `turnover`, `steal`, `block`, `foul`, `technical_foul`, `flagrant_foul`, `violation`, `timeout`, `substitution`, `jump_ball`, `review`, `ejection`, `period_start`, `period_end`, `game_end`, `other`
- `shot_type` (enum, required, nullable)
  - Allowed values: `jump_shot`, `layup`, `dunk`, `hook_shot`, `tip_shot`
- `points_attempted` (integer, required)
- `is_made` (boolean, required)
- `free_throw` (integer, required, nullable) — A free throw's place in its trip to the line, 2 in 2 of 2.
- `free_throws` (integer, required, nullable) — Free throws in the trip.
- `court_x` (integer, required, nullable)
- `court_y` (integer, required, nullable)

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "01a1b987-647f-7087-9603-30c4fc34926e",
      "game_id": "01a1b987-644f-7459-b8e0-810b314f71da",
      "group_id": "01a1b987-6473-7931-9855-a6ebb6a17a4e",
      "sequence": 4100000,
      "period": 1,
      "period_half": null,
      "clock_seconds": 900,
      "wall_clock": "2026-11-06T01:16:48Z",
      "type": "kickoff",
      "description": "J.Moody kicks 65 yards from BLT 35 to JAX 0. J.Cameron pushed ob at JAX 23 for 23 yards (J.Higgins).",
      "team_id": "01a1b987-6450-7c2a-898a-4dfae5a45300",
      "is_scoring": false,
      "points": 0,
      "home_score": 0,
      "away_score": 0,
      "is_official": true,
      "participants": [],
      "football": {
        "play_type": "kickoff",
        "down": null,
        "yards_to_go": null,
        "start_yardline": 35,
        "end_yardline": 77,
        "yards_gained": 23,
        "is_first_down": false,
        "is_touchdown": false,
        "is_turnover": false,
        "is_penalty": false,
        "play_action": null,
        "screen_pass": null,
        "run_pass_option": null,
        "air_yards": null,
        "penalty_yards": null
      },
      "soccer": null,
      "basketball": null,
      "version": 1,
      "updated_at": "2026-11-08T05:00:20.428452Z"
    },
    {
      "id": "01a1b987-6484-72c4-9243-a555703f0f8a",
      "game_id": "01a1b987-644f-7459-b8e0-810b314f71da",
      "group_id": "01a1b987-6473-7931-9855-a6ebb6a17a4e",
      "sequence": 6900000,
      "period": 1,
      "period_half": null,
      "clock_seconds": 894,
      "wall_clock": "2026-11-06T01:17:29Z",
      "type": "pass",
      "description": "(Shotgun) T.Lawrence pass short right to T.Koziol to JAX 27 for 4 yards (T.Simpson).",
      "team_id": "01a1b987-6452-7f29-ac56-aab66006a3f5",
      "is_scoring": false,
      "points": 0,
      "home_score": 0,
      "away_score": 0,
      "is_official": true,
      "participants": [],
      "football": {
        "play_type": "pass",
        "down": 1,
        "yards_to_go": 10,
        "start_yardline": 23,
        "end_yardline": 27,
        "yards_gained": 4,
        "is_first_down": false,
        "is_touchdown": false,
        "is_turnover": false,
        "is_penalty": false,
        "play_action": null,
        "screen_pass": null,
        "run_pass_option": null,
        "air_yards": null,
        "penalty_yards": null
      },
      "soccer": null,
      "basketball": null,
      "version": 1,
      "updated_at": "2026-11-08T05:00:20.428452Z"
    },
    {
      "id": "01a1b987-6484-7a71-b180-e341c39f9b84",
      "game_id": "01a1b987-644f-7459-b8e0-810b314f71da",
      "group_id": "01a1b987-6473-7931-9855-a6ebb6a17a4e",
      "sequence": 9400000,
      "period": 1,
      "period_half": null,
      "clock_seconds": 857,
      "wall_clock": "2026-11-06T01:18:06Z",
      "type": "pass",
      "description": "T.Lawrence pass deep right to N.Boerkircher to BLT 21 for 52 yards (M.Humphrey).",
      "team_id": "01a1b987-6452-7f29-ac56-aab66006a3f5",
      "is_scoring": false,
      "points": 0,
      "home_score": 0,
      "away_score": 0,
      "is_official": true,
      "participants": [],
      "football": {
        "play_type": "pass",
        "down": 2,
        "yards_to_go": 6,
        "start_yardline": 27,
        "end_yardline": 79,
        "yards_gained": 52,
        "is_first_down": true,
        "is_touchdown": false,
        "is_turnover": false,
        "is_penalty": false,
        "play_action": null,
        "screen_pass": null,
        "run_pass_option": null,
        "air_yards": null,
        "penalty_yards": null
      },
      "soccer": null,
      "basketball": null,
      "version": 1,
      "updated_at": "2026-11-08T05:00:20.428452Z"
    }
  ],
  "next_cursor": "eyJzIjo5NDAwMDAwLCJpIjoiMDFhMWI5ODctNjQ4NC03YTcxLWIxODAtZTM0MWMzOWY5Yjg0In0",
  "seq": 331
}
```

**SDK Code**

```python The first plays of Jacksonville at Baltimore
import requests

url = "https://api.statpad.dev/v1/nfl/games/game_id/plays"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript The first plays of Jacksonville at Baltimore
const url = 'https://api.statpad.dev/v1/nfl/games/game_id/plays';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go The first plays of Jacksonville at Baltimore
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.statpad.dev/v1/nfl/games/game_id/plays"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby The first plays of Jacksonville at Baltimore
require 'uri'
require 'net/http'

url = URI("https://api.statpad.dev/v1/nfl/games/game_id/plays")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java The first plays of Jacksonville at Baltimore
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.statpad.dev/v1/nfl/games/game_id/plays")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php The first plays of Jacksonville at Baltimore
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.statpad.dev/v1/nfl/games/game_id/plays', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp The first plays of Jacksonville at Baltimore
using RestSharp;

var client = new RestClient("https://api.statpad.dev/v1/nfl/games/game_id/plays");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift The first plays of Jacksonville at Baltimore
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.statpad.dev/v1/nfl/games/game_id/plays")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```