API-BASKETBALL (NBA)

FREEMIUM
(Ким) Pinto Studio | Оновлено 23 days ago | Sports
Популярність

9.2 / 10

Затримки

275ms

Рівень обслуговування

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);
  });
Відстежувачі: 1
Створювач API:
Rapid account: Pinto Studio
Pinto Studio
belchiorarkad-FqvHs2EDOtP
Увійти в «Ставки по API»
Рейтинг: 5 - Голосів: 1