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

2

Total users

1

Monthly active users

a day ago

Last modified

Share

NBA API

Fetch comprehensive NBA basketball data including teams, players, standings, schedules, game statistics, fantasy projections, and betting odds.

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

Data Sources

  • BALLDONTLIE API - Free NBA data for teams, players, and games
  • Premium sources for fantasy projections and betting odds

Usage Examples

Get All Teams

{
"task": "teams"
}

Get Lakers Roster

{
"task": "team_roster",
"teamId": 14
}

Get LeBron James Stats

{
"task": "player_stats",
"playerId": 237
}

Get Current Standings

{
"task": "standings"
}

Get Games for a Specific Date

{
"task": "schedule",
"date": "2024-12-28"
}

Get Fantasy Projections

{
"task": "fantasy_projections"
}

Get Betting Odds

{
"task": "betting_odds"
}

Team IDs

IDTeamIDTeam
1Atlanta Hawks16Miami Heat
2Boston Celtics17Milwaukee Bucks
3Brooklyn Nets18Minnesota Timberwolves
4Charlotte Hornets19New Orleans Pelicans
5Chicago Bulls20New York Knicks
6Cleveland Cavaliers21Oklahoma City Thunder
7Dallas Mavericks22Orlando Magic
8Denver Nuggets23Philadelphia 76ers
9Detroit Pistons24Phoenix Suns
10Golden State Warriors25Portland Trail Blazers
11Houston Rockets26Sacramento Kings
12Indiana Pacers27San Antonio Spurs
13Los Angeles Clippers28Toronto Raptors
14Los Angeles Lakers29Utah Jazz
15Memphis Grizzlies30Washington Wizards

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 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

Demo Mode

Enable demoMode: true to test the actor without making live API calls. This is useful for:

  • Testing integrations
  • Exploring the output format
  • Avoiding API rate limits during development

Author

John Rippy - Local Howl

Support

For issues or feature requests, please contact the author or submit a bug report through Apify.