NBA API - Basketball Statistics avatar
NBA API - Basketball Statistics

Pricing

from $0.01 / 1,000 results

Go to Apify Store
NBA API - Basketball Statistics

NBA API - Basketball Statistics

Fetch comprehensive NBA basketball data including teams, players, standings, schedules, game statistics, fantasy projections, & betting odds. 30 NBA Teams, Rosters, Team Statistics, League Standings, Player Statistics, Game Statistics, Schedule, League Leaders, Fantasy Projections, Betting Odds

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

John Rippy

John Rippy

Maintained by Community

Actor stats

0

Bookmarked

8

Total users

2

Monthly active users

14 days ago

Last modified

Share

NBA API

API Integration

This actor connects to an external API service. You'll need valid API credentials from the service provider.


API Integration

This actor connects to an external API service. You'll need valid API credentials from the service provider.


Fetch NBA basketball data including teams, players, standings, schedules, and game statistics from BALLDONTLIE API.

Features

  • 30 NBA Teams - Get all team information including conference and division
  • Team Rosters - Current player rosters with positions, heights, and weights
  • Team Statistics - Season stats including wins, losses, and shooting percentages
  • League Standings - Eastern and Western Conference standings with records
  • Player Statistics - Season averages for any player (points, rebounds, assists)
  • Game Statistics - Box scores, top performers, and game details
  • Schedule - Upcoming and past games with dates, times, and venues
  • League Leaders - Top players in various statistical categories
  • Fantasy Projections - DraftKings and FanDuel player projections
  • Betting Odds - Game lines and player props from multiple sportsbooks

Quick Start

{
"input": "your input here"
}

Demo Mode

Set demoMode: true to test with sample data (no charges). When you're ready for real results, set demoMode: false or omit it.

{
"demoMode": true,
...
}

Input Parameters

ParameterTypeRequiredDescription
See input schema

Output Format

All tasks return a consistent JSON structure:

{
"task": "teams",
"success": true,
"timestamp": "2024-12-28T12:00:00.000Z",
"data": [...]
}

Pricing

This actor uses pay-per-event billing: This actor uses pay-per-event pricing:

TaskPrice
Teams List$0.01
Team Roster$0.01
Team Stats$0.01
Standings$0.01
Player Stats$0.02
Game Stats$0.02
Schedule$0.01
League Leaders$0.01
Fantasy Projections$0.03
Betting Odds$0.05

Use Cases

  • Data collection
  • Research
  • Automation

Common Problems & Solutions

"Invalid API key" error

Cause: Your API key is wrong, expired, or doesn't have the right permissions. Fix: Double-check your API key. Make sure you copied it exactly without extra spaces.

"Rate limit exceeded" error

Cause: You've hit the API's rate limits. Fix: Wait a few minutes, then try again. Consider reducing the number of concurrent requests.

Empty or incomplete results

Cause: The target may have anti-scraping protection or the data doesn't exist. Fix:

  • Check if the URL/search query is correct
  • Try with different parameters
  • Some sites may block automated access

Demo data showing instead of real results

Cause: demoMode is still set to true. Fix: Set demoMode: false and provide your API key(s).


Built by John Rippy | Actor Arsenal