MLB Stats Scraper — Teams, Rosters, Schedules & Players
Pricing
from $0.0005 / item scraped
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
Maintained by CommunityActor 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 point | Description |
|---|---|
| Team | id, name, abbreviation, league, division, venue, city, firstYearOfPlay |
| Roster | playerId, name, position, jerseyNumber, teamId |
| Schedule | gamePk, date, homeTeam, awayTeam, homeScore, awayScore, status, venue |
| Player | id, 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
- Add the MLB Stats Scraper to your Apify account and open its input.
- Choose a mode: teams, roster, schedule or player.
- Fill the matching parameter —
seasonfor teams/roster,teamIdfor roster,date(orstartDate+endDate) for schedule, orplayerId/playerNamefor player. - Click Run.
- Export the results as JSON, CSV, Excel or XML, or pull them via the Apify API.
Input
{"mode": "teams","season": 2025}
| Field | Description |
|---|---|
mode | teams, roster, schedule or player. |
season | Four-digit year for teams and roster (e.g. 2025). Defaults to the current year. |
teamId | Numeric team id for roster (e.g. 147 for the Yankees). |
date | Single date for schedule (YYYY-MM-DD). |
startDate / endDate | Date range for schedule (YYYY-MM-DD). |
playerId | Numeric player id for player (e.g. 545361). |
playerName | Player 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.
| Field | Type | Description |
|---|---|---|
mode | string | The mode that produced the record. |
recordType | string | team, rosterPlayer, game or player. |
id | integer | Unique identifier for the team. |
name | string | Team name (e.g. "New York Yankees"). |
abbreviation | string | Short team code (e.g. "NYY"). |
league | string | League name (American or National League). |
division | string | Division name (e.g. "American League East"). |
venue | string | Home ballpark. |
city | string | Team location / city. |
firstYearOfPlay | string | Year the franchise started play. |
Need more sports & media data?
- Sports Data Scraper (TheSportsDB) — teams, fixtures, results and players across many sports.
- ESPN Sports Scraper — live scores, teams, standings and news.
- TVmaze Scraper — TV shows, episodes and cast 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.
Related Actors
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.