MLB Stats Scraper — Teams, Rosters, Schedules & Players avatar

MLB Stats Scraper — Teams, Rosters, Schedules & Players

Pricing

from $0.0005 / item scraped

Go to Apify Store
MLB Stats Scraper — Teams, Rosters, Schedules & Players

MLB Stats Scraper — Teams, Rosters, Schedules & Players

Fetch MLB baseball data in bulk — teams, rosters, schedules, scores and player profiles. One clean row per team, roster spot, game or player with names, leagues, divisions, venues, scores and bios. Fast and reliable for sports apps, stats dashboards, fantasy tools and n8n.

Pricing

from $0.0005 / item scraped

Rating

0.0

(0)

Developer

hiper soft

hiper soft

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 hours ago

Last modified

Categories

Share

MLB Stats Scraper — Teams, Rosters, Schedules, Scores & Players

MLB Stats Scraper pulls teams, rosters, schedules, scores and player profiles for Major League Baseball — all as clean, structured data. List every MLB club for a season, get the full roster for a team, pull games and results for any date or date range, and look up player bios by id or name. Export to JSON, CSV, Excel or XML. Fast, reliable, and built for sports apps, stats dashboards, fantasy tools and automation workflows.

What does this MLB scraper do?

Pick a mode, add a couple of parameters, and it returns every matching record as structured data:

  • Teams — every MLB club for a season, with league, division, venue, city and the year the franchise started play.
  • Roster — all players on a team for a season, with position, jersey number and team id.
  • Schedule — games for a single date or a date range, with home/away teams, scores, status and venue.
  • Player — a single player profile by id, or a name search, with position, bat side, throwing hand, birth date, birth country and MLB debut date.

What data can you get?

Data pointDescription
Teamid, name, abbreviation, league, division, venue, city, firstYearOfPlay
RosterplayerId, name, position, jerseyNumber, teamId
SchedulegamePk, date, homeTeam, awayTeam, homeScore, awayScore, status, venue
Playerid, name, primaryPosition, batSide, throws, birthDate, birthCountry, mlbDebutDate

What you get

Each team, roster spot, game or player is one clean dataset record. Every row carries a recordType so you can tell them apart. Export the full table to JSON, CSV, Excel or XML, or pull it programmatically.

{
"mode": "teams",
"recordType": "team",
"id": 147,
"name": "New York Yankees",
"abbreviation": "NYY",
"league": "American League",
"division": "American League East",
"venue": "Yankee Stadium",
"city": "Bronx",
"firstYearOfPlay": "1903"
}

Use cases

  • Build team directories and league/division tables for a baseball site or app.
  • Pull daily schedules and final scores into a dashboard or calendar.
  • Backfill results across a date range for a stats or analytics dataset.
  • Enrich fantasy tools with roster positions, jersey numbers and player bios.
  • Power a bot that reports last night's games and scores.

How to use the MLB Stats Scraper

  1. Add the MLB Stats Scraper to your Apify account and open its input.
  2. Choose a mode: teams, roster, schedule or player.
  3. Fill the matching parameter — season for teams/roster, teamId for roster, date (or startDate + endDate) for schedule, or playerId / playerName for player.
  4. Click Run.
  5. Export the results as JSON, CSV, Excel or XML, or pull them via the Apify API.

Input

{
"mode": "teams",
"season": 2025
}
FieldDescription
modeteams, roster, schedule or player.
seasonFour-digit year for teams and roster (e.g. 2025). Defaults to the current year.
teamIdNumeric team id for roster (e.g. 147 for the Yankees).
dateSingle date for schedule (YYYY-MM-DD).
startDate / endDateDate range for schedule (YYYY-MM-DD).
playerIdNumeric player id for player (e.g. 545361).
playerNamePlayer name to search for player (e.g. "Mike Trout").

Tip: chaining modes

Don't know an id? Run teams to list every club and its id, roster to get player ids for a team, then feed a playerId into player for the full profile — or a teamId into roster for the squad.

Output schema

Fields below are for the teams mode. The roster, schedule and player modes return their own record shapes, and each row carries a recordType so you can tell them apart.

FieldTypeDescription
modestringThe mode that produced the record.
recordTypestringteam, rosterPlayer, game or player.
idintegerUnique identifier for the team.
namestringTeam name (e.g. "New York Yankees").
abbreviationstringShort team code (e.g. "NYY").
leaguestringLeague name (American or National League).
divisionstringDivision name (e.g. "American League East").
venuestringHome ballpark.
citystringTeam location / city.
firstYearOfPlaystringYear the franchise started play.

Need more sports & media data?

FAQ

Which league and seasons are covered? Major League Baseball, across current and historical seasons. Pass any four-digit season year to the teams and roster modes, and any date to the schedule mode.

How do I find a team or player id? Run the teams mode to list every club and its id, then run roster for a team to get player ids. You can also search a player by name with playerName.

What export formats are supported? JSON, CSV, Excel and XML, plus programmatic access through the Apify API.

How does billing work? You pay per item you get, so cost scales with the number of records you actually collect. See the Pricing tab for current rates.

Can I use this with n8n? Yes. Run the MLB Stats Scraper from n8n with the Apify node — trigger a run, pass your mode and parameters, and read the dataset items straight into your workflow. It also works with Make, Zapier and the Apify API.

Can I connect this to other tools? The MLB Stats Scraper connects with almost any cloud service or web app thanks to integrations on the Apify platform. It works with Make, Zapier, Slack, Airbyte, GitHub, Google Drive and many more, plus the Apify API, JavaScript/Python clients and MCP. Or use webhooks to trigger an action whenever a run finishes.

Notes

Original clean-room implementation. Reads only publicly available baseball information. Not affiliated with, endorsed by or connected to Major League Baseball, MLB Advanced Media or any club.