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

4

Total users

2

Monthly active users

4 days ago

Last modified

Share

NBA API

"Real-Time NBA Stats, Standings & Fantasy Data" by John Rippy | johnrippy.link

2025 Zapier Automation Hero of the Year — Project Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →


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

Webhook Integration

Send results directly to your automation platforms (Zapier, Make, n8n) or custom endpoints.

Setup

Add a webhookUrl parameter to your input:

{
"task": "standings",
"webhookUrl": "https://hooks.zapier.com/hooks/catch/12345/abcde/"
}

Webhook Payload

The actor sends a POST request with this format:

{
"actorId": "nba-api",
"status": "success",
"timestamp": "2025-01-12T12:00:00.000Z",
"data": {
"task": "standings",
"success": true,
"timestamp": "2025-01-12T12:00:00.000Z",
"data": { ... }
}
}

Supported Platforms

  • Zapier: Use a "Catch Hook" trigger
  • Make (Integromat): Use a "Webhook" trigger
  • n8n: Use a "Webhook" node
  • Custom endpoints: Any HTTPS endpoint that accepts POST requests

Automation Ideas

  • Fantasy league updates: Push player stats to your league dashboard
  • Betting alerts: Get live odds updates for your betting models
  • Discord bot: Post game updates to your server
  • Stats tracking: Log player performance to Google Sheets

Author

John Rippy - Local Howl

🏆 2025 Zapier Automation Hero of the YearProject Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →

🏆 2025 Zapier Automation Hero of the YearProject Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →

Support

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