Overview

NBA Data via RapidAPI provides comprehensive NBA statistics including live scores, game schedules, standings, and player stats. You access it through RapidAPI's platform using an API key in your request headers. It's a great starting point if you want to build a basketball stats app or follow live games.

Beginner Tip

Sign up at RapidAPI and subscribe to the api-nba plan to get your API key — the free tier includes a limited number of requests per month. Always include both the RapidAPI host header and your key header with every request.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

match scores and results
team standings
player statistics
schedule and fixtures

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "match_id": 4521,
  "home_team": "Team A",
  "away_team": "Team B",
  "score": {
    "home": 2,
    "away": 1
  },
  "status": "Full Time",
  "date": "2025-01-15",
  "league": "Premier League"
}

Field Reference

game.id Unique identifier for the game
game.date.start Game start time in ISO 8601 format
game.status.long Human-readable game status, e.g. Finished or In Play
teams.home.name Name of the home team
scores.home.points Total points scored by the home team
scores.visitors.points Total points scored by the visiting team

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api-nba-v1.p.rapidapi.com/games?season=2023";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

403 Forbidden Missing or incorrect RapidAPI key/host headers
Ensure both X-RapidAPI-Key and X-RapidAPI-Host headers are present and correct
429 Too Many Requests Exceeded your plan's request quota
Wait for your quota to reset or upgrade your RapidAPI subscription plan
Empty results array Invalid season format or no games for the specified date
Use a 4-digit year like 2023 for season, and verify the date format is YYYY-MM-DD

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Sports & Fitness
Difficulty Intermediate
Listing details not endpoint-verified

Similar APIs

View All →