---
title: "List team_game_contexts for NBA"
method: GET
path: "/api/v1/nba/team_game_contexts"
tags: ["NBA"]
---

# List team_game_contexts for NBA

`GET /api/v1/nba/team_game_contexts`

## Request

- Base URL: `https://api.stat-api.com`
- URL: `https://api.stat-api.com/api/v1/nba/team_game_contexts`
- Auth: HTTP bearer

## Query parameters

- `game_id` integer
- `team_id` integer
- `season_id` integer
- `limit` integer
- `from_id` integer
- `format` 'json' | 'csv'

## Response `200`

team_game_contexts rows matching the declared filter set.

- NBATeamGameContextsListResponse
  - `has_more` boolean, required: True when a full page came back, so more rows can exist.
  - `limit` integer, required: Page size used for this response.
  - `next_from_id` integer, nullable, required: Pass this as `from_id` on the next request to page forward. `null` on the terminal page, and on a first page requested without `from_id` (that page uses the default sort): to walk every row, start with `from_id=0`.
  - `team_game_contexts` NBATeamGameContexts[], required
    - `conference_rank` integer, required
    - `game_id` integer, required
    - `game_type` string, required: regular, playoff, play_in, ist_group, ist_knockout, preseason, allstar
    - `games_remaining` integer, required
    - `id` integer, required: Primary Key
    - `intensity` integer, required: 1-10 motivation intensity scale
    - `is_back_to_back` boolean, required
    - `is_clinch` boolean, required
    - `is_elimination` boolean, required
    - `ist_group_rank` integer, nullable
    - `ist_group_record` string, nullable: e.g. 2-1
    - `motivation` string, required: contender, playoff_lock, seeding_battle, playoff_push, play_in, fringe, tanking, eliminated, early_season, playoff_comfortable, playoff_competitive, playoff_desperate, playoff_elimination, playoff_clinch, ist_contending, ist_eliminated, ist_knockout
    - `opponent_team_id` integer, required
    - `rest_days` integer, required
    - `season_id` integer, required
    - `season_pct` number, double, required: 0.0-1.0 how far through regular season
    - `season_phase` string, required: early, mid, late, final_push, postseason
    - `team_id` integer, required
    - `team_series_wins` integer, required
    - `win_pct` number, double, required

## Other responses

- `400`: No declared filter set was satisfied by the request — see `accepted` in the body for the valid combinations.

---

[API](https://skmtc.dev/stat-api/apis/sports-db-public-api.md) · [All operations](https://skmtc.dev/stat-api/apis/sports-db-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stat-api/apis/sports-db-public-api/revisions/23b66b957723?raw)
