API-BASKETBALL (NBA)

FREEMIUM
By Pinto Studio | Updated vor 8 Tagen | Sports
Popularity

9.2 / 10

Latency

286ms

Service Level

100%

Health Check

N/A

README

NBA Sports API Documentation

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.

Endpoints

1. Get NBA Play-by-Play Data

  • Endpoint: /nbaplay
  • Parameters:
    • id (required) - ID of the NBA game.

2. Get NBA Box Score Data

  • Endpoint: /nbabox
  • Parameters:
    • id (required) - ID of the NBA game.

3. Get NBA Game Summary Data

  • Endpoint: /nbasummary
  • Parameters:
    • id (required) - ID of the NBA game.

4. Get NBA Game PickCenter Data

  • Endpoint: /nbapick
  • Parameters:
    • id (required) - ID of the NBA game.

5. Get NBA Schedule Data

  • Endpoint: /nbaschedule
  • Parameters:
    • year (optional) - Year (YYYY).
    • month (optional) - Month (MM).
    • day (optional) - Day (DD).

6. Get NBA Scoreboard Data

  • Endpoint: /nbascoreboard
  • Parameters:
    • year (optional) - Year (YYYY).
    • month (optional) - Month (MM).
    • day (optional) - Day (DD).
    • limit (optional) - Limit of results (default: 5).

7. Get NBA Standings

  • Endpoint: /nbastandings
  • Parameters:
    • year (optional) - Year (YYYY).
    • group (optional) - Group (default: โ€˜leagueโ€™).

8. Get NBA Team List

  • Endpoint: /nbateamlist

9. Get NBA Team Information

  • Endpoint: /nbateaminfo
  • Parameters:
    • teamid (required) - ID of the NBA team.

10. Get NBA Team Roster

  • Endpoint: /nbateamplayers
  • Parameters:
    • teamid (required) - ID of the NBA team.

Usage

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

// 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);
  });
Followers: 1
API Creator:
Rapid account: Pinto Studio
Pinto Studio
belchiorarkad-FqvHs2EDOtP
Log In to Rate API
Rating: 5 - Votes: 1