Skip to main content
GET
/
status
Account Status
curl --request GET \
  --url https://v1.basketball.sportsapipro.com/status \
  --header 'x-api-key: <api-key>'
⚠️ Deprecated — This is the V1 Legacy API. It still works but is no longer maintained. We strongly recommend migrating to the Basketball V2 API for improved coverage, richer data, and support for 20+ sports.

Overview

The Basketball API provides comprehensive data for 50+ basketball leagues worldwide. All endpoints use the same authentication and follow consistent response patterns.
Base URL: https://v1.basketball.sportsapipro.comThe sports=2 parameter is automatically added to all requests.

Authentication

All endpoints require authentication via the x-api-key header:
curl -X GET "https://v1.basketball.sportsapipro.com/games/current" \
  -H "x-api-key: YOUR_API_KEY"

Available Endpoints

EndpointMethodDescription
/games/currentGETLive basketball games
/games/fixturesGETUpcoming games
/games/resultsGETCompleted games
/gameGETSingle game details
/games/h2hGETHead-to-head history
/games/statsGETGame statistics
EndpointMethodDescription
/competitionsGETList competitions
/competitions/topGETTop leagues by popularity
/competitions/featuredGETFeatured competitions
EndpointMethodDescription
/standingsGETLeague standings
EndpointMethodDescription
/athletes/topGETTop players
/athletes/gamesGETPlayer game logs
/athletes/nextGameGETPlayer’s next game
EndpointMethodDescription
/bets/linesGETBetting lines
/bets/propositionGETPlayer props
/trendsGETBetting trends
/predictionsGETGame predictions
EndpointMethodDescription
/statusGETAccount status & usage
/searchGETSearch entities
/competitors/topGETTop teams

Common Parameters

competitions
integer
Competition ID (e.g., 132 for NBA)
gameId
integer
Specific game ID for detailed endpoints
athleteId
integer
Specific player ID for athlete endpoints
date
string
Date filter in YYYY-MM-DD format
lastUpdateId
integer
For efficient polling - returns only updates since this ID

Response Format

All responses follow this structure:
{
  "games": [...],
  "lastUpdateId": 987654,
  "ttl": 5
}
lastUpdateId
integer
Use this value in subsequent requests for efficient polling
ttl
integer
Suggested cache time-to-live in seconds

Rate Limits

Rate limits are shared across all sports APIs:
PlanRequests/Day
Free100
Pro7,500
Ultra75,000
Mega150,000

Key Competition IDs

CompetitionIDCountry
NBA132USA
WNBA2004USA
EuroLeague138Europe
NCAA Men’s2065USA
Spanish ACB149Spain
Turkish BSL150Turkey

Error Handling

All errors follow a consistent format with HTTP status codes and descriptive messages.
StatusDescription
400Bad Request - Missing required parameters
401Unauthorized - Invalid or missing API key
429Rate Limited - Too many requests
500Server Error - Try again later

Authorizations

x-api-key
string
header
required

Your SportsAPI Pro API key

Response

200

Account status retrieved successfully