NBA Data Scraper avatar

NBA Data Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
NBA Data Scraper

NBA Data Scraper

Scrape NBA statistics and data, teams, players, game schedules, and standings for the National Basketball Association via TheSportsDB. Free public API, no registration required.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Scrape comprehensive NBA (National Basketball Association) data including teams, players, game schedules, and standings. Powered by TheSportsDB — a free, open sports data API requiring no registration or API key.

What This Actor Does

NBA Data Scraper gives you structured NBA data in seconds:

  • All 30 NBA teams with arena info, founding year, colors, logos, and team descriptions
  • Player rosters for any team — position, height, weight, college, nationality
  • Game schedules for any season — home/away teams, scores, dates, venues
  • League standings (when available) — wins, losses, points
  • Player search — find any player by name across the league

Output Data

Each record contains fields depending on the mode:

Teams

FieldDescription
teamIdTheSportsDB unique team identifier
teamNameFull team name (e.g. "Los Angeles Lakers")
shortNameAbbreviated team name (e.g. "LAL")
conferenceNBA conference/division info
arenaHome arena name
arenaCapacityArena seating capacity
arenaLocationArena city and state
foundedYearYear the team was established
descriptionTeam history and overview
badgeUrlTeam badge/crest image URL
logoUrlTeam logo image URL
websiteOfficial team website
primaryColorPrimary team color

Players

FieldDescription
playerIdUnique player identifier
playerNameFull player name
teamCurrent team
positionPlaying position (PG, SG, SF, PF, C)
nationalityPlayer nationality
heightPlayer height
weightPlayer weight
birthDateDate of birth
collegeCollege attended
statusActive/Retired status
thumbUrlPlayer thumbnail image

Events / Schedule

FieldDescription
eventIdUnique game identifier
homeTeamHome team name
awayTeamAway team name
homeScoreHome team score
awayScoreAway team score
dateGame date (YYYY-MM-DD)
timeGame time
venueArena/venue name
seasonSeason identifier
statusGame status

Input Configuration

ParameterTypeDescription
modeselectData type to fetch (teams/players/schedule/standings/teamDetails/searchPlayers)
teamIdstringTheSportsDB team ID (e.g. "134880")
teamNamestringTeam name for lookup (e.g. "Los Angeles Lakers")
seasonstringSeason year (e.g. "2023-2024" or "2024-25")
playerNamestringPlayer name for search
maxItemsintegerMaximum records to return (1–1000, default 50)

Example Uses

Get all NBA teams

{
"mode": "teams",
"maxItems": 30
}

Get Los Angeles Lakers roster

{
"mode": "players",
"teamName": "Los Angeles Lakers",
"maxItems": 20
}

Get 2023-2024 season schedule

{
"mode": "schedule",
"season": "2023-2024",
"maxItems": 200
}

Search for a player

{
"mode": "searchPlayers",
"playerName": "LeBron James"
}

Use Cases

  • Fantasy basketball research — Get player stats, rosters, and team info
  • Sports analytics — Build datasets for NBA statistics analysis
  • Game prediction models — Historical game results and schedules
  • Team comparison — Arena data, founding history, conference info
  • Sports media — Automate NBA content with accurate team and player data
  • Betting analysis — Historical scores and game outcomes

FAQ

Q: Is an API key required? A: No. This scraper uses TheSportsDB's free public API which requires no registration.

Q: How current is the data? A: TheSportsDB is updated regularly by community contributors. Player rosters may lag by a few weeks during active roster moves.

Q: How many teams are in the NBA? A: There are 30 NBA teams — 15 in the Eastern Conference and 15 in the Western Conference.

Q: What season format should I use? A: Use "2023-2024" for the 2023-24 season. The TheSportsDB API accepts both "2023-2024" and "2024-25" formats.

Q: Are standings available? A: Standings access depends on TheSportsDB API tier. If unavailable, the actor returns team records instead.

Q: Can I get historical game data? A: Yes, use mode=schedule with any past season (e.g. "2020-2021", "2021-2022", "2022-2023", "2023-2024").

Q: Can I filter games for a specific team? A: Yes, use mode=schedule with a teamId or teamName to filter results to a single team's games.