BallDontLie Sports Stats Scraper avatar

BallDontLie Sports Stats Scraper

Pricing

from $1.50 / 1,000 results

Go to Apify Store
BallDontLie Sports Stats Scraper

BallDontLie Sports Stats Scraper

Extract NBA, NFL, MLB player stats, team data, and game scores from BallDontLie API.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

cloud9

cloud9

Maintained by Community

Actor stats

0

Bookmarked

0

Total users

0

Monthly active users

22 days ago

Last modified

Categories

Share

Extract NBA, NFL, MLB player stats, team data, and game scores from BallDontLie API.

Features

  • Extract data from https://api.balldontlie.io/v1
  • Multiple scraping modes: players, teams, games
  • Automatic rate limiting
  • Proxy support via Apify Proxy
  • API authentication support

Input Configuration

Modes

  1. players: /players?search={query}&per_page=25&cursor={cursor}
  2. teams: /teams
  3. games: /games?dates[]={date}&per_page=25&cursor={cursor}

Example Input

{
"apiKey": "example",
"mode": "players",
"query": "example search",
"maxResults": 25
}

Authentication

Free API key from balldontlie.io

Output

The actor stores results in the Apify dataset. Each item contains:

  • id
  • first_name
  • last_name
  • position
  • height
  • weight
  • jersey_number
  • college
  • country
  • draft_year

Usage Example

const input = {
"apiKey": "example",
"mode": "players",
"query": "example search",
"maxResults": 25
};
const run = await ApifyClient.actor('balldontlie-sports-scraper').call(input);
const { items } = await ApifyClient.dataset(run.defaultDatasetId).listItems();
console.log(items);

Limits

  • Maximum results per run: 500
  • Rate limiting: 1 request per second (default)

Support

For issues or questions, contact the developer or open an issue on GitHub.

License

Apache-2.0