> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sportsapipro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Game Details

> Get detailed information for a specific basketball game

<Warning>
  **V1 Legacy Endpoint** — This is a V1 API endpoint. For new integrations, we recommend using the [Basketball V2 API](/api-reference/basketball-v2/overview) which provides richer data and more endpoints.
</Warning>

## Overview

Returns detailed information for a specific game including lineups, statistics, play-by-play events, and betting information.

## Query Parameters

<ParamField query="gameId" type="integer" required>
  The unique game identifier
</ParamField>

<ParamField query="lastUpdateId" type="integer">
  For efficient polling - returns only updates since this ID
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://v1.basketball.sportsapipro.com/game?gameId=12345" \
    -H "x-api-key: YOUR_API_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://v1.basketball.sportsapipro.com/game?gameId=12345',
    { headers: { 'x-api-key': 'YOUR_API_KEY' } }
  );
  const game = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://v1.basketball.sportsapipro.com/game',
      params={'gameId': 12345},
      headers={'x-api-key': 'YOUR_API_KEY'}
  )
  ```
</CodeGroup>

## Response Structure

<ResponseField name="game" type="object">
  Detailed game object

  <Expandable title="Properties">
    <ResponseField name="id" type="integer">
      Game identifier
    </ResponseField>

    <ResponseField name="statusText" type="string">
      Current game status
    </ResponseField>

    <ResponseField name="homeCompetitor" type="object">
      Home team with score and statistics
    </ResponseField>

    <ResponseField name="awayCompetitor" type="object">
      Away team with score and statistics
    </ResponseField>

    <ResponseField name="lineups" type="object">
      Starting lineups for both teams
    </ResponseField>

    <ResponseField name="events" type="array">
      Game events (baskets, fouls, timeouts)
    </ResponseField>

    <ResponseField name="odds" type="object">
      Current betting odds
    </ResponseField>
  </Expandable>
</ResponseField>

<Tip>
  Use the `lastUpdateId` parameter when polling for live game updates to receive only changed data.
</Tip>


## OpenAPI

````yaml openapi-basketball GET /game
openapi: 3.1.0
info:
  title: SportsAPI Pro - Basketball API
  description: >-
    Professional basketball data API providing live scores, standings, player
    statistics, betting odds, and more for NBA, EuroLeague, and 50+ leagues
    worldwide.
  version: 1.0.0
  contact:
    name: SportsAPI Pro Support
    email: support@sportsapipro.com
servers:
  - url: https://v1.basketball.sportsapipro.com
    description: Production API Server
security:
  - ApiKeyAuth: []
tags:
  - name: Games
    description: Live scores, fixtures, and game data
  - name: Competitions
    description: Leagues and tournaments
  - name: Standings
    description: League standings and rankings
  - name: Athletes
    description: Player statistics and data
  - name: Betting
    description: Betting lines, props, and predictions
  - name: Search
    description: Search entities
  - name: Account
    description: Account status and usage
paths:
  /game:
    get:
      tags:
        - Games
      summary: Game Details
      description: >-
        Get detailed information for a specific game including lineups, stats,
        and events
      operationId: getGame
      parameters:
        - name: gameId
          in: query
          required: true
          description: Game ID
          schema:
            type: integer
            example: 12345
        - name: lastUpdateId
          in: query
          description: For efficient polling
          schema:
            type: integer
      responses:
        '200':
          description: Game details retrieved successfully
        '400':
          description: 'Missing required parameter: gameId'
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your SportsAPI Pro API key

````