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

# Player's Next Game

> Get the upcoming game for a specific player

<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 the next scheduled game for a specific player, useful for fantasy sports and betting research.

## Query Parameters

<ParamField query="athleteId" type="integer" required>
  Player ID
</ParamField>

## Code Examples

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

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

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

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

## Response Structure

<ResponseField name="athlete" type="object">
  Player information
</ResponseField>

<ResponseField name="nextGame" type="object">
  Upcoming game details

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

    <ResponseField name="startTime" type="string">
      Game start time
    </ResponseField>

    <ResponseField name="homeCompetitor" type="object">
      Home team
    </ResponseField>

    <ResponseField name="awayCompetitor" type="object">
      Away team
    </ResponseField>

    <ResponseField name="competition" type="object">
      League information
    </ResponseField>
  </Expandable>
</ResponseField>


## OpenAPI

````yaml openapi-basketball GET /athletes/nextGame
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://api.sportsapipro.com/v1/basketball
    description: Path-based front door (recommended)
  - url: https://v1.basketball.sportsapipro.com
    description: Classic per-sport vanity host
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:
  /athletes/nextGame:
    get:
      tags:
        - Athletes
      summary: Player's Next Game
      description: Get the upcoming game for a specific player
      operationId: getAthleteNextGame
      parameters:
        - name: athleteId
          in: query
          required: true
          description: Player ID
          schema:
            type: integer
            example: 12345
      responses:
        '200':
          description: Player's next game retrieved successfully
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your SportsAPI Pro API key

````