MLB Stats Scraper
Pricing
from $25.50 / 1,000 results
MLB Stats Scraper
Scrape Major League Baseball data from the official MLB Stats API - schedules, teams, rosters, player stats, and live game feeds. No API key required.
Pricing
from $25.50 / 1,000 results
Rating
0.0
(0)
Developer
ParseForge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share

โพ MLB Stats Scraper
๐ Export official Major League Baseball data in seconds. Pull schedules by date, all 30 MLB teams, full rosters, season player stats, and live game feeds from the official MLB feed. No sign-up, no manual scraping, no setup.
๐ Last updated: 2026-05-15 ยท ๐ 25+ fields per record ยท โพ All 30 MLB teams ยท ๐ Schedules + rosters + stats ยท ๐ด Live game feed
The MLB Stats Scraper exports official Major League Baseball data and returns up to 25+ structured fields per record, including game primary key (gamePk), official date, gameType, season + season display, status, both teams (with score, league record, winner flag), venue, day/night designation, double-header indicator, scheduled innings, and a public deep-link to MLB.com Gameday.
The Actor covers all 30 MLB teams, every regular and postseason game, complete 40-man and active rosters, season-by-season player stats, and the live game feed (linescore, decisions, full game data). One run gives you the dataset you need for fan-engagement, fantasy, betting analytics, content automation, or research.
| ๐ฏ Target Audience | ๐ก Primary Use Cases |
|---|---|
| Sports media, fantasy-baseball apps, betting analytics teams, fan-engagement platforms, indie sports devs, baseball researchers | Live scoreboards, fixture feeds, roster lookups, player season-stat dashboards, postseason brackets, content automation |
๐ What the MLB Stats Scraper does
Five lookup modes in a single run:
- ๐
Schedule. Games on a chosen date (defaults to today). Filter by gameType (Regular, Wild Card, Division Series, League Championship, World Series, All-Star) or by
seasonTypeshortcut (regular/post). - ๐๏ธ Teams. All 30 MLB teams with abbreviations, codes, league + division, venue, first-year-of-play, and short name.
- ๐ Roster. Active roster for one team (by
teamId) or batch up to 100 teams in one run. - ๐ Player Stats. Season stats for one or many players, with bio (height, weight, birth date, country, bats/throws), position, and current team.
- ๐ด Game Detail. Live feed for any game by
gamePk, including game data, linescore, and pitching/winning decisions.
Each schedule record includes the canonical MLB identifiers, official date, season + season display, gamedayType, series description with game number, both teams (ID, name, score, league record, winner flag), venue, day/night, double-header type, scheduled innings, and a direct link to mlb.com/gameday.
๐ก Why it matters: baseball moves fast, and accurate game and player data underpin every scoreboard, fantasy product, and analytics dashboard. Building your own pipeline means juggling MLB's data feed, normalising IDs across season types, and refreshing for every game day.
๐ฌ Full Demo
๐ง Coming soon: a 3-minute walkthrough showing how to go from sign-up to a downloaded dataset.
โ๏ธ Input
| Input | Type | Default | Behavior |
|---|---|---|---|
mode | string | "schedule" | One of schedule, teams, roster, playerStats, gameDetail. |
date | string | today | YYYY-MM-DD. Used in schedule mode. |
teamId | integer | none | MLB team ID for roster mode (e.g. 147 = Yankees, 119 = Dodgers). |
teamIds | array | [] | Batch roster lookup. Takes precedence over teamId. |
playerId | string | "" | MLB player ID for playerStats mode (e.g. 660271 = Shohei Ohtani). |
playerIds | array | [] | Batch playerStats lookup. Takes precedence over playerId. |
gameType | string | "" | R/F/D/L/W/A. Filter schedule by game type. |
seasonType | string | "" | regular or post shortcut. |
gamePk | integer | none | Game primary key for gameDetail mode. |
season | integer | current | Season year (e.g. 2024). |
maxItems | integer | 10 | Free plan caps at 10, paid plan at 1,000,000. |
Example: today's schedule, regular season only.
{"mode": "schedule","seasonType": "regular","maxItems": 30}
Example: Shohei Ohtani's 2024 season stats.
{"mode": "playerStats","playerId": "660271","season": 2024}
โ ๏ธ Good to Know:
seasonTypeis a convenience shortcut. If you supplygameTypedirectly (e.g.Wfor World Series), it overridesseasonType. The Actor is smart enough to map the right combination for postseason rounds.
๐ Output
Each schedule record contains 25+ fields. Download the dataset as CSV, Excel, JSON, or XML.
๐งพ Schema (schedule mode)
| Field | Type | Example |
|---|---|---|
๐ gamePk | number | 746345 |
๐ gameGuid | string | "abcd-1234..." |
๐
gameDate | ISO 8601 | "2026-05-15T18:05:00Z" |
๐
officialDate | string | "2026-05-15" |
๐ท๏ธ gameType | string | "R" |
๐๏ธ season | string | "2026" |
๐บ gamedayType | string | "P" |
๐ seriesDescription | string | "Regular Season" |
๐ข seriesGameNumber | number | 1 |
๐ฆ status | object | {"detailedState": "Scheduled"} |
๐ awayScore | number | null | 5 |
๐ homeScore | number | null | 3 |
๐ teams.home | object | {"id": 147, "name": "New York Yankees", ...} |
๐ซ teams.away | object | {"id": 111, "name": "Boston Red Sox", ...} |
๐๏ธ venue | object | {"id": 3313, "name": "Yankee Stadium"} |
๐ dayNight | string | "night" |
๐ doubleHeader | string | "N" |
๐ scheduledInnings | number | 9 |
๐ url | string | "https://www.mlb.com/gameday/746345" |
๐ scrapedAt | ISO 8601 | "2026-05-15T00:00:00.000Z" |
๐ฆ Sample record
โจ Why choose this Actor
| Capability | |
|---|---|
| โพ | Full league. All 30 MLB teams across both leagues, with active rosters and season stats. |
| ๐ | Daily schedule. Every game on any date, filtered by season type or game type. |
| ๐ | Postseason support. Wild Card, Division Series, League Championship, World Series, and All-Star coded out of the box. |
| ๐ | Player stats. Season hitting and pitching splits joined with player bio and current team. |
| ๐ด | Live feed. Linescore, decisions, and full game data for any in-progress matchup. |
| ๐ | Always fresh. Each run pulls live data, so scores and lineups reflect the current state. |
| ๐ซ | No sign-up. Works against the official MLB live feed. No login or token required. |
๐ Reliable MLB data is the foundation of every fantasy product, betting model, and fan-facing scoreboard.
๐ How it compares to alternatives
| Approach | Cost | Coverage | Refresh | Filters | Setup |
|---|---|---|---|---|---|
| โญ MLB Stats Scraper (this Actor) | $5 free credit, then pay-per-use | 30 teams, 5 modes, live + season | Live per run | mode, date, gameType, season | โก 2 min |
| Commercial sports data vendors | $$$$/month | Full + extras | Streaming | Many | โณ Weeks |
| Manual stats-page scraping | Free | Inconsistent | On demand | None | ๐ข Days |
| Free baseball widgets | Free | Display-only | Live | Limited | ๐ No raw data |
Pick this Actor when you want structured records, all 30 teams, and zero pipeline maintenance.
๐ How to use
- ๐ Sign up. Create a free account w/ $5 credit (takes 2 minutes).
- ๐ Open the Actor. Go to the MLB Stats Scraper page on the Apify Store.
- ๐ฏ Set input. Pick a mode, fill the relevant inputs (date, team ID, player ID, or gamePk), and set
maxItems. - ๐ Run it. Click Start and let the Actor collect your data.
- ๐ฅ Download. Grab your results in the Dataset tab as CSV, Excel, JSON, or XML.
โฑ๏ธ Total time from signup to downloaded dataset: 3-5 minutes. No coding required.
๐ผ Business use cases
๐ Automating MLB Stats Scraper
Control the scraper programmatically for scheduled runs and pipeline integrations:
- ๐ข Node.js. Install the
apify-clientNPM package. - ๐ Python. Use the
apify-clientPyPI package. - ๐ See the Apify documentation for full details.
The Apify Schedules feature lets you trigger this Actor on any cron interval. Refresh today's scoreboard every minute, daily roster snapshots, or weekly stats pulls are all one click.
๐ Beyond business use cases
Baseball data powers more than commercial products. The same records support research, education, civic projects, and personal initiatives.
๐ค Ask an AI assistant about this scraper
Open a ready-to-send prompt about this ParseForge actor in the AI of your choice:
- ๐ฌ ChatGPT
- ๐ง Claude
- ๐ Perplexity
- ๐ Copilot
โ Frequently Asked Questions
๐งฉ How does it work?
Pick a mode (schedule, teams, roster, playerStats, or gameDetail), supply the relevant inputs, and click Start. The Actor pulls fresh records from the official MLB live data feed and emits a clean structured row per game, team, player, or live feed entry.
โพ Which teams are supported?
All 30 Major League Baseball teams across both the American League and National League.
๐ Can I get postseason games only?
Yes. Set seasonType to post (or use gameType like W for World Series specifically) and the Actor restricts the schedule to playoff games.
๐ How do I look up player season stats?
Set mode to playerStats and supply playerId (e.g. 660271 for Shohei Ohtani). Optionally set season to a year (defaults to current). Use playerIds for batch lookups (up to 100 per call).
๐ด Can I pull a live game feed?
Yes. Set mode to gameDetail and supply gamePk for the game you want. The Actor returns live game data, current linescore, and pitching/winning decisions if the game is final.
๐๏ธ Do I get venue and day/night info?
Yes. The schedule mode returns the full venue object plus dayNight and doubleHeader flags so you can build accurate game-day dashboards.
โฐ Can I schedule regular runs?
Yes. Use Apify Schedules to run this Actor every minute, hourly, or daily. The dataset always reflects the current state of the live feed.
โ๏ธ Is this data legal to use?
Only publicly available scoreboard data is collected. Review MLB's terms of use for your specific use case, particularly if you redistribute or commercialise the content.
๐ณ Do I need a paid Apify plan to use this Actor?
No. The free Apify plan is enough for testing and small runs (10 records per run). A paid plan lifts the limit and unlocks scheduling and higher concurrency.
๐ What happens if a run fails or gets interrupted?
Apify automatically retries transient errors. If a run still fails, you can inspect the log in the Runs tab, fix the input, and re-run. Partial datasets from failed runs are preserved so you never lose progress.
๐ What if I need help?
Our support team is here to help. Contact us through the Apify platform or use the Tally form linked below.
๐ Integrate with any app
MLB Stats Scraper connects to any cloud service via Apify integrations:
- Make - Automate multi-step workflows
- Zapier - Connect with 5,000+ apps
- Slack - Get score updates in your channels
- n8n - Self-hosted workflow automation
- Pipedream - Event-driven serverless workflows
- Airbyte - Pipe baseball data into your warehouse
- GitHub - Trigger runs from commits
- Google Drive - Export datasets straight to Sheets
You can also use webhooks to trigger downstream actions when a run finishes. Push fresh schedules into your product backend, or alert your fans in Slack when a walk-off happens.
๐ Recommended Actors
- ๐ NHL Stats Scraper - 32-team standings, schedules, player landing
- ๐ Sofascore Live Events Scraper - 13-sport live + scheduled events feed
- ๐ฅ TheSportsDB Scraper - Crowd-sourced sports database across leagues
- ๐ก๏ธ CWE MITRE Scraper - Software weakness reference catalogue
- ๐ OurAirports Scraper - Global airport reference dataset
๐ก Pro Tip: browse the complete ParseForge collection for more reference-data scrapers.
๐ Need Help? Open our contact form to request a new scraper, propose a custom data project, or report an issue.
โ ๏ธ Disclaimer: this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Major League Baseball or any of its clubs. All trademarks mentioned are the property of their respective owners. Only publicly available scoreboard data is collected.