RapidAPI logo

Sign Up

Log In

Free NBA

FREE
By theapiguy
Updated 2 months ago
Sports
9.1/10
Popularity Score
405ms
Latency
67%
Success Rate

Free NBA API Documentation

Unofficial NBA API for Historical NBA Data

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
Games
GETGet a Specific Game
GETGet All Games
Teams
GETGet All Teams
GETGet a Specific Team
Players
GETGet Specific Player
GETGet All Players
Stats
GETGet All Stats
GETGet a Specific Game

This endpoint retrieves a specific game

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idSTRING
REQUIREDID of the game
Request Snippet
unirest.get("https://free-nba.p.rapidapi.com/games/{id}")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://free-nba.p.rapidapi.com/games/{id}")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication