This API provides access to NBA sports data, including play-by-play details, box scores, game summaries, picks, schedules, scoreboards, standings, team information, and more.
/nbaplay
id
(required) - ID of the NBA game./nbabox
id
(required) - ID of the NBA game./nbasummary
id
(required) - ID of the NBA game./nbapick
id
(required) - ID of the NBA game./nbaschedule
year
(optional) - Year (YYYY).month
(optional) - Month (MM).day
(optional) - Day (DD)./nbascoreboard
year
(optional) - Year (YYYY).month
(optional) - Month (MM).day
(optional) - Day (DD).limit
(optional) - Limit of results (default: 5)./nbastandings
year
(optional) - Year (YYYY).group
(optional) - Group (default: โleagueโ)./nbateamlist
/nbateaminfo
teamid
(required) - ID of the NBA team./nbateamplayers
teamid
(required) - ID of the NBA team.Make HTTP requests to the specified endpoints with the required parameters to retrieve NBA sports data. Refer to each endpointโs documentation for details on input and output.
// Example using Axios in Node.js
const axios = require('axios');
const gameId = 12345; // Please use the right id
axios.get(`http://your-rapidapi-base-url/nbaplay?id=${gameId}`)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});