Skip to main content
GET
/
game
Game Details
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/game \
  --header 'x-api-key: <api-key>'

Overview

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

Query Parameters

gameId
integer
required
The unique game identifier
lastUpdateId
integer
For efficient polling - returns only updates since this ID

Code Examples

curl -X GET "https://v1.basketball.sportsapipro.com/game?gameId=12345" \
  -H "x-api-key: YOUR_API_KEY"

Response Structure

game
object
Detailed game object
Use the lastUpdateId parameter when polling for live game updates to receive only changed data.

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Query Parameters

gameId
integer
required

Game ID

Example:

12345

lastUpdateId
integer

For efficient polling

Response

Game details retrieved successfully