> 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.

# Get a game with its live state

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

Reference: https://statpad.dev/docs/api-reference/games/get-game

## 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)

### 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

The game, its live state, teams and venue, and the stream position they reflect.

- `game` (Game, required)
- `live_state` (LiveState, required, nullable) — Null until the game has live data.
- `home_team` (Team, required)
- `away_team` (Team, required)
- `venue` (Venue, required, nullable)
- `period_scores` (list of PeriodScore, required)
- `seq` (long, required) — The position in the game's stream this response reflects. Resume a subscription from it.

## 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

### Game

- `id` (string, required)
- `league` (string, required) — A league's public alias, such as `nfl` or `ncaaf`.
- `season_id` (string, required)
- `week_id` (string, required, nullable)
- `title` (string, required, nullable) — A named game's title, such as a bowl.
- `game_type` (enum, required)
  - Allowed values: `regular`, `playoff`, `preseason`, `exhibition`, `allstar`
- `status` (enum, required) — `scheduled`, then `created` (data available), `inprogress` (with `halftime` and `delayed` along the way), `complete` (final, stats may still be corrected) and `closed` (validated). Also `time_tbd`, `suspended`, `postponed` and `cancelled`. Depending on the league, a postponed game either goes back to `scheduled` at its new time under the same id, or stays `postponed` while its makeup is a new game.
  - Allowed values: `scheduled`, `time_tbd`, `created`, `inprogress`, `halftime`, `delayed`, `suspended`, `complete`, `closed`, `postponed`, `cancelled`
- `coverage` (enum, required) — How much the feed covers. `full` has play-by-play; `score_only` has the score alone.
  - Allowed values: `full`, `basic`, `score_only`
- `scheduled_at` (datetime, required) — When the game starts. For a `time_tbd` game it is the start of the game's US Eastern day, not a start time, and a game whose date isn't fixed yet, such as an NFL flex game, can still move to another day.
- `venue_id` (string, required, nullable)
- `neutral_site` (boolean, required)
- `home_team_id` (string, required)
- `away_team_id` (string, required)
- `home_score` (integer, required, nullable)
- `away_score` (integer, required, nullable)
- `attendance` (integer, required, nullable)
- `started_at` (datetime, required, nullable) — When the first play happened, from the play-by-play's own wall clock, counting only plays that carry one. Null until such a play arrives.
- `ended_at` (datetime, required, nullable) — When the last play happened, from the play-by-play's own wall clock, counting only plays that carry one, once the game is over. Null until then, or when no play carries one.
- `rescheduled_from_id` (string, required, nullable) — For a makeup game, the postponed game it replaces, when known.
- `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)

### LiveState

The live situation of a game, keyed by `game_id`. Sport-specific context is in the block named after the league's sport; the others are null.

- `game_id` (string, required)
- `period` (integer, required, nullable)
- `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)
- `clock_running` (boolean, required, nullable) — Whether the game clock is running, or null when the feed doesn't say. Soccer sets it: true while a half or a period of extra time is being played. Football and basketball feeds have no running flag, so it is null there; use clock_seconds, which updates as plays post.
- `possession_team_id` (string, required, nullable)
- `home_score` (integer, required)
- `away_score` (integer, required)
- `last_play_id` (string, required, nullable) — The game's newest play by sequence, of any type, so a timeout or the end of a period counts. Null before the first play.
- `football` (FootballSituation, required, nullable)
- `soccer` (SoccerSituation, required, nullable) — The live soccer context. Periods 1 and 2 are the halves, 3 and 4 the halves of extra time and 5 the penalty shoot-out. `minute` and `added_minute` are the clock as shown, so 90'+6' is minute 90 and added minute 6.
- `basketball` (BasketballSituation, required, nullable) — The live basketball context. NBA periods 1-4 are quarters and NCAA periods 1-2 halves; every later period is a 5-minute overtime. Each count is null when the provider doesn't report it.
- `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)

### Team

- `id` (string, required)
- `league` (string, required) — A league's public alias, such as `nfl` or `ncaaf`.
- `market` (string, required)
- `name` (string, required)
- `alias` (string, required) — Abbreviation. Two teams in a league can share one, so identify teams by id.
- `venue_id` (string, required, nullable)
- `active` (boolean, required)
- `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)

### Venue

- `id` (string, required)
- `name` (string, required)
- `city` (string, required, nullable)
- `state` (string, required, nullable)
- `country` (string, required, nullable)
- `timezone` (string, required, nullable) — IANA time zone name.
- `capacity` (integer, required, nullable)
- `surface` (string, required, nullable)
- `roof_type` (enum, required, nullable)
  - Allowed values: `outdoor`, `dome`, `retractable`
- `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.

### PeriodScore

- `team_id` (string, required)
- `period` (integer, required)
- `period_type` (enum, required)
  - Allowed values: `regular`, `overtime`, `shootout`
- `points` (integer, required)

### FootballSituation

- `down` (integer, required, nullable)
- `yards_to_go` (integer, required, nullable)
- `yardline` (integer, required, nullable) — Line of scrimmage, 0-100 from the possessing team's own goal line.
- `home_timeouts` (integer, required, nullable) — Timeouts the home team has left in the half, or null when the feed doesn't report them, as after the final.
- `away_timeouts` (integer, required, nullable) — Timeouts the away team has left in the half, or null when the feed doesn't report them, as after the final.

### SoccerSituation

The live soccer context. Periods 1 and 2 are the halves, 3 and 4 the halves of extra time and 5 the penalty shoot-out. `minute` and `added_minute` are the clock as shown, so 90'+6' is minute 90 and added minute 6.

- `minute` (integer, required, nullable)
- `added_minute` (integer, required, nullable)
- `added_time_announced` (integer, required, nullable) — Minutes of stoppage time the fourth official announced for the current period.
- `home_formation` (string, required, nullable)
- `away_formation` (string, required, nullable)
- `home_red_cards` (integer, required)
- `away_red_cards` (integer, required)
- `home_shootout` (integer, required, nullable) — Penalties scored in a shoot-out.
- `away_shootout` (integer, required, nullable) — Penalties scored in a shoot-out.

### BasketballSituation

The live basketball context. NBA periods 1-4 are quarters and NCAA periods 1-2 halves; every later period is a 5-minute overtime. Each count is null when the provider doesn't report it.

- `home_timeouts` (integer, required, nullable) — Timeouts the home team has left.
- `away_timeouts` (integer, required, nullable) — Timeouts the away team has left.
- `home_fouls` (integer, required, nullable) — The home team's fouls in the current period.
- `away_fouls` (integer, required, nullable) — The away team's fouls in the current period.

## Examples

**Response**

```json
{
  "game": {
    "id": "01a1b987-64e7-74e3-8db1-b939d352190d",
    "league": "ncaaf",
    "season_id": "01a1b987-64e8-7612-9fdf-7bb93b23171e",
    "week_id": "01a1b987-64e8-7837-beb6-a5d9ddf093e8",
    "title": null,
    "game_type": "regular",
    "status": "inprogress",
    "coverage": "full",
    "scheduled_at": "2026-11-07T23:00:00Z",
    "venue_id": "01a1b987-64e8-760f-bf21-c366949b2be9",
    "neutral_site": false,
    "home_team_id": "01a1b987-64e7-74e4-8cf6-9f7b3bdea67d",
    "away_team_id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
    "home_score": 24,
    "away_score": 43,
    "attendance": null,
    "started_at": null,
    "ended_at": null,
    "rescheduled_from_id": null,
    "version": 1,
    "updated_at": "2026-11-08T05:00:20.583197Z"
  },
  "live_state": {
    "game_id": "01a1b987-64e7-74e3-8db1-b939d352190d",
    "period": 4,
    "period_half": null,
    "clock_seconds": 778,
    "clock_running": null,
    "possession_team_id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
    "home_score": 24,
    "away_score": 43,
    "last_play_id": null,
    "football": {
      "down": 3,
      "yards_to_go": 1,
      "yardline": 99,
      "home_timeouts": 2,
      "away_timeouts": 0
    },
    "soccer": null,
    "basketball": null,
    "version": 1,
    "updated_at": "2026-11-08T05:00:20.583197Z"
  },
  "home_team": {
    "id": "01a1b987-64e7-74e4-8cf6-9f7b3bdea67d",
    "league": "ncaaf",
    "market": "Colorado State",
    "name": "Rams",
    "alias": "CSU",
    "venue_id": null,
    "active": true,
    "version": 1,
    "updated_at": "2026-11-08T05:00:20.583197Z"
  },
  "away_team": {
    "id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
    "league": "ncaaf",
    "market": "Boise State",
    "name": "Broncos",
    "alias": "BOIS",
    "venue_id": null,
    "active": true,
    "version": 1,
    "updated_at": "2026-11-08T05:00:20.583197Z"
  },
  "venue": {
    "id": "01a1b987-64e8-760f-bf21-c366949b2be9",
    "name": "Canvas Stadium",
    "city": "Fort Collins",
    "state": "CO",
    "country": null,
    "timezone": null,
    "capacity": null,
    "surface": null,
    "roof_type": null,
    "version": 1
  },
  "period_scores": [
    {
      "team_id": "01a1b987-64e7-74e4-8cf6-9f7b3bdea67d",
      "period": 1,
      "period_type": "regular",
      "points": 7
    },
    {
      "team_id": "01a1b987-64e7-74e4-8cf6-9f7b3bdea67d",
      "period": 2,
      "period_type": "regular",
      "points": 3
    },
    {
      "team_id": "01a1b987-64e7-74e4-8cf6-9f7b3bdea67d",
      "period": 3,
      "period_type": "regular",
      "points": 14
    },
    {
      "team_id": "01a1b987-64e7-74e4-8cf6-9f7b3bdea67d",
      "period": 4,
      "period_type": "regular",
      "points": 0
    },
    {
      "team_id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
      "period": 1,
      "period_type": "regular",
      "points": 22
    },
    {
      "team_id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
      "period": 2,
      "period_type": "regular",
      "points": 7
    },
    {
      "team_id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
      "period": 3,
      "period_type": "regular",
      "points": 14
    },
    {
      "team_id": "01a1b987-64e7-7d57-bdf8-52aecf5e4216",
      "period": 4,
      "period_type": "regular",
      "points": 0
    }
  ],
  "seq": 283
}
```

**SDK Code**

```python Boise State at Colorado State in the fourth quarter
import requests

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

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

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

print(response.json())
```

```javascript Boise State at Colorado State in the fourth quarter
const url = 'https://api.statpad.dev/v1/nfl/games/game_id';
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 Boise State at Colorado State in the fourth quarter
package main

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

func main() {

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

	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 Boise State at Colorado State in the fourth quarter
require 'uri'
require 'net/http'

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

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 Boise State at Colorado State in the fourth quarter
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")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Boise State at Colorado State in the fourth quarter
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Boise State at Colorado State in the fourth quarter
using RestSharp;

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

```swift Boise State at Colorado State in the fourth quarter
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.statpad.dev/v1/nfl/games/game_id")! 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()
```