MLB Stats Scraper 💰$2/1K — Scores, Standings & Stats avatar

MLB Stats Scraper 💰$2/1K — Scores, Standings & Stats

Pricing

from $2.00 / 1,000 record returneds

Go to Apify Store
MLB Stats Scraper 💰$2/1K — Scores, Standings & Stats

MLB Stats Scraper 💰$2/1K — Scores, Standings & Stats

Scrape statsapi.mlb.com for teams, rosters, schedules, live scores, standings, season batting, pitching and fielding stats, box scores and league leaders — at $2 per 1,000 rows, half what comparable MLB scrapers charge. Structured JSON, CSV or Excel.

Pricing

from $2.00 / 1,000 record returneds

Rating

0.0

(0)

Developer

Black Falcon Data

Black Falcon Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

2

Monthly active users

3 days ago

Last modified

Share

What does MLB Stats Scraper do?

MLB Stats Scraper extracts structured baseball data from statsapi.mlb.com: season rosters with batting, pitching and fielding stats, every club with its league, division and venue, schedules with live scores, division and wild-card standings, per-game box scores and the league leaderboards. Pick the data type, narrow it by club, date or season, and results come back as structured JSON, CSV or Excel.

New to Apify? Sign up free and use the included $5 monthly platform credit to test this actor.

Key features

  • 💰 Betting odds at no extra charge: turn on odds in Schedule and every game carries the money line with its open and close, the run line and the over/under total, plus the win probability with the bookmaker margin divided out and an independent model projection — all of it at the standard row rate, with no surcharge. The official baseball feed publishes no odds at all, so this is joined from a second source by club and final score; a game that cannot be matched is left without odds rather than handed another game line.
  • 🏟️ The ballpark, not just its name: every game, club and player row carries the venue's coordinates, elevation, roof type, playing surface, capacity, outfield distances and timezone — Coors Field at 5,190 feet against Oracle Park at sea level, 54 open parks against 7 retractable roofs and 1 dome. These are the standard inputs to a park-factor model, and they cost nothing extra: they ride along on requests the run already makes.
  • ⚾ Seven kinds of baseball data, one actor: pick what you want from one dropdown: players, teams, schedules with live scores, division and wild-card standings, season stat lines, per-game box scores, or the league leaderboards. Every type comes back in the same column vocabulary, so a schedule row and a standings row line up in one spreadsheet.
  • 📅 Schedules, scores and live standings: every game with both clubs, the final or in-progress score, status, venue, series position and day/night — filtered to a date, a range or a club. The standings table carries wins, losses, win percentage, games back, wild-card games back, run differential, current streak and elimination number.
  • 📋 Box scores for the players who actually appeared: one row per player per game with their batting, pitching and fielding line, batting order and position. Names that never left the bench or the bullpen are left out rather than delivered as empty rows — 25 of the 53 on a measured card — so you are not charged for blanks.
  • 🏆 League leaderboards, correctly labelled: home runs, batting average, RBI, stolen bases, ERA, strikeouts, wins and saves, each with rank, value and club. The source answers one leaderboard request with several boards of different meanings — home runs hit and home runs allowed both come back tagged "homeRuns" — and each row states the stat group it belongs to.
  • ⚾ Whole-season roster in one run: in the Players type, leave the search box empty and you get every player on the season roster — 1,373 for the 2026 MLB season — not a keyword slice. Pick any past season, several seasons at once, or point it at Triple-A, Double-A, High-A or Single-A instead.
  • 📊 Full batting, pitching and fielding lines: each player carries the complete season stat line as the source publishes it — 34 batting fields, 62 pitching fields, plus fielding — alongside the headline columns (AVG, OBP, SLG, OPS, HR, RBI, ERA, WHIP, IP, W-L, SV) as flat top-level fields you can sort a spreadsheet by.
  • 🏟️ Club context joined onto every player: club, league, division, venue, abbreviation and franchise are attached to each player, including players optioned to a minor-league affiliate — not just the ones on a major-league active roster.
  • ♻️ Incremental mode: recurring runs emit only players who are new or whose club, position or status changed — roster churn without re-fetching the league. Seasons never share state, so a 2026 run cannot mark 2025 players as gone.
  • 📤 Export anywhere: Download the dataset as JSON, CSV, or Excel from the Apify Console, or stream live via the Apify API and integrations (Make, Zapier, Google Sheets, n8n, …).

What data can you extract from statsapi.mlb.com?

Each result includes Core record fields (listingId, gamePk, gameDate, officialDate, gameTypeCode, gameStatus, gameStatusCode, and gameStatusAbstract, and more) and detail fields when enrichment is enabled (seriesDescription, venueDetail, and detailFetched). In standard mode, all fields are always present — unavailable data points are returned as null, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to fetch each record's detail page — extra fields the search results omit.

Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

  • query — Name to match, full or partial (e.g. "Ohtani", "Aaron Judge", "Rodriguez"). On Players it matches the player name; on the other data types it matches the names the record carries, so "Yankees" finds their games, their standing and their players' box-score lines. Case-insensitive and substring-based. LEAVE EMPTY for the complete set.
  • season — Season year to pull, e.g. 2026. Defaults to the current year. Historical seasons are served the same way.
  • maxResults — Maximum total records (0 = unlimited). Box Scores is the one exception: unlimited there is a whole season of play-by-play rows, far more than one run can hold, so it asks you to narrow by date, club or game first. (default: 25)
  • includeDetails — Fetch full records — season stats, biography, position, handedness and current club. Turn off for a faster, name-only run. (default: true)
  • includeRosterStatus — Players data type only — these fields ride on the player record, so a Player Stats, Box Score, Schedule, Standings or Leaders run is not enriched by this switch and is not charged for it. Add each player's current roster status — Active, Injured 10-Day, Injured 60-Day, Reassigned to Minors, Released — plus the date it took effect. Roughly doubles the amount of data fetched per player. Requires 📋 Include Full Details; without it this option is skipped and not charged. (default: false)
  • includeAwards — Players data type only — these fields ride on the player record, so a Player Stats, Box Score, Schedule, Standings or Leaders run is not enriched by this switch and is not charged for it. Add All-Star and Futures Game selections and similar honours, with the season each was won. Adds about 60% to the data fetched per player. Needs 📋 Include Full Details switched on — otherwise it is skipped, and not charged. (default: false)
  • includeTransactions — Players data type only — these fields ride on the player record, so a Player Stats, Box Score, Schedule, Standings or Leaders run is not enriched by this switch and is not charged for it. Add signings, trades and injured-list placements with their dates and the league's own wording. This is where injury dates come from. Substantially increases the data fetched per player — leave off unless you need the history. Only runs when 📋 Include Full Details is on; skipped and not charged otherwise. (default: false)
  • incrementalMode — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, startUrls) so different filter sets never share state. (default: false)
  • ...and 35 more parameters

Input examples

Schedule with scores for one day — undefined

→ undefined

{
"mode": "schedule",
"date": "2025-07-04"
}

Schedule with betting odds and win probability — undefined

→ undefined

{
"mode": "schedule",
"date": "2025-07-04",
"includeOdds": true
}

A whole season of one club — undefined

→ undefined

{
"mode": "schedule",
"season": 2025,
"teamIds": [
147
]
}

Live division and wild-card standings — undefined

→ undefined

{
"mode": "standings",
"season": 2025
}

Box score for a game — undefined

→ undefined

{
"mode": "gameDetails",
"gamePks": [
777245
]
}

League leaderboards — undefined

→ undefined

{
"mode": "leaders",
"season": 2025
}

Whole 2026 season roster — undefined

→ undefined

{
"mode": "players",
"season": 2026,
"maxResults": 0,
"includeDetails": true
}

One player by name — undefined

→ undefined

{
"mode": "players",
"query": "Ohtani",
"season": 2026,
"includeDetails": true
}

Season stat lines for named players — undefined

→ undefined

{
"mode": "playerStats",
"season": 2025,
"playerIds": [
660271,
592450
]
}

Several seasons in one run — undefined

→ undefined

{
"mode": "standings",
"seasons": [
2023,
2024,
2025
]
}

Incremental: only what changed since last run — undefined

→ undefined

{
"mode": "standings",
"season": 2025,
"incrementalMode": true
}

Output

Each run produces a dataset of structured record records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

Example record record

{
"listingId": "0fac9d9cfbdd954979ad050d3e051c6c67ad493ad02fc9a0331b5393c940824d",
"statsSeason": 2025,
"pitchingStats": {
"age": 26,
"gamesPlayed": 29,
"gamesStarted": 29,
"groundOuts": 112,
"airOuts": 229,
"runs": 60,
"doubles": 29,
"triples": 1,
"homeRuns": 19,
"strikeOuts": 149,
"baseOnBalls": 43,
"intentionalWalks": 0,
"hits": 148,
"hitByPitch": 3,
"avg": ".235",
"atBats": 631,
"obp": ".285",
"slg": ".374",
"ops": ".659",
"caughtStealing": 1,
"stolenBases": 12,
"stolenBasePercentage": ".923",
"caughtStealingPercentage": ".077",
"groundIntoDoublePlay": 10,
"numberOfPitches": 2677,
"era": "2.87",
"inningsPitched": "166.1",
"wins": 10,
"losses": 7,
"saves": 0,
"saveOpportunities": 0,
"holds": 0,
"blownSaves": 0,
"earnedRuns": 53,
"whip": "1.15",
"battersFaced": 684,
"outs": 499,
"gamesPitched": 29,
"completeGames": 1,
"shutouts": 1,
"strikes": 1773,
"strikePercentage": ".660",
"hitBatsmen": 3,
"balks": 0,
"wildPitches": 4,
"pickoffs": 2,
"totalBases": 236,
"groundOutsToAirouts": "0.49",
"winPercentage": ".588",
"pitchesPerInning": "16.09",
"gamesFinished": 0,
"strikeoutWalkRatio": "3.47",
"strikeoutsPer9Inn": "8.06",
"walksPer9Inn": "2.33",
"hitsPer9Inn": "8.01",
"runsScoredPer9": "3.25",
"homeRunsPer9": "1.03",
"inheritedRunners": 0,
"inheritedRunnersScored": 0,
"catchersInterference": 0,
"sacBunts": 3,
"sacFlies": 4
},
"fieldingStats": {
"age": 26,
"gamesPlayed": 29,
"gamesStarted": 29,
"assists": 15,
"putOuts": 2,
"errors": 1,
"chances": 18,
"fielding": ".944",
"position": {
"code": "1",
"name": "Pitcher",
"type": "Pitcher",
"abbreviation": "P"
},
"rangeFactorPerGame": "0.59",
"rangeFactorPer9Inn": "0.92",
"innings": "166.1",
"games": 29,
"doublePlays": 1,
"triplePlays": 0,
"throwingErrors": 1
},
"fieldingSplits": [
{
"position": "P",
"positionName": "Pitcher",
"stat": {
"age": 26,
"gamesPlayed": 29,
"gamesStarted": 29,
"assists": 15,
"putOuts": 2,
"errors": 1,
"chances": 18,
"fielding": ".944",
"position": {
"code": "1",
"name": "Pitcher",
"type": "Pitcher",
"abbreviation": "P"
},
"rangeFactorPerGame": "0.59",
"rangeFactorPer9Inn": "0.92",
"innings": "166.1",
"games": 29,
"doublePlays": 1,
"triplePlays": 0,
"throwingErrors": 1
}
}
],
"gamesPlayed": 29,
"strikeOuts": 149,
"strikeOutsPitched": 149,
"baseOnBalls": 43,
"era": "2.87",
"inningsPitched": "166.1",
"wins": 10,
"losses": 7,
"saves": 0,
"whip": "1.15",
"college": "Virginia",
"highSchool": "Halifax County",
"recordType": "player",
"teamId": 113,
"name": "Andrew Abbott",
"teamName": "Cincinnati Reds",
"clubName": "Reds",
"franchiseName": "Cincinnati",
"abbreviation": "CIN",
"teamCode": "cin",
"locationName": "Cincinnati",
"league": "National League",
"leagueId": 104,
"division": "National League Central",
"divisionId": 205,
"venueId": 2602,
"venueName": "Great American Ball Park",
"venueDetail": {
"latitude": 39.097389,
"longitude": -84.506611,
"elevation": 535,
"city": "Cincinnati",
"state": "OH",
"country": "USA",
"roofType": "Open",
"turfType": "Grass",
"capacity": 43891,
"dimensions": {
"leftLine": 328,
"leftCenter": 379,
"center": 404,
"rightCenter": 370,
"rightLine": 325
},
"timeZone": "America/New_York",
"timeZoneOffset": -4
},
"springVenueId": 3834,
"fileCode": "cin",
"springLeagueId": 114,
"springLeague": "Cactus League",
"firstYearOfPlay": 1882,
"season": 2025,
"active": true,
"url": "https://www.mlb.com/player/andrew-abbott-671096",
"portalUrl": "https://www.mlb.com/player/andrew-abbott-671096",
"playerId": 671096,
"fullName": "Andrew Abbott",
"firstName": "Andrew",
"middleName": "Cole",
"lastName": "Abbott",
"useName": "Andrew",
"useLastName": "Abbott",
"boxscoreName": "Abbott, A",
"nameSlug": "andrew-abbott-671096",
"primaryNumber": "41",
"primaryPosition": {
"code": "1",
"name": "Pitcher",
"type": "Pitcher",
"abbreviation": "P"
},
"batSide": {
"code": "L",
"description": "Left"
},
"pitchHand": {
"code": "L",
"description": "Left"
},
"currentTeam": {
"id": 113,
"name": "Cincinnati Reds",
"link": "https://statsapi.mlb.com/api/v1/teams/113"
},
"birthDate": "1999-06-01",
"currentAge": 27,
"birthCity": "Lynchburg",
"birthStateProvince": "VA",
"birthCountry": "USA",
"height": "6' 0\"",
"weight": 192,
"gender": "M",
"isPlayer": true,
"isVerified": true,
"draftYear": 2021,
"mlbDebutDate": "2023-06-05",
"strikeZoneTop": 3.37,
"strikeZoneBottom": 1.54,
"link": "https://statsapi.mlb.com/api/v1/people/671096",
"headshotUrl": "https://midfield.mlbstatic.com/v1/people/671096/spots/120",
"contentQuality": "full",
"detailFetched": true,
"scrapedAt": "2026-09-03T22:37:27.184Z",
"source": "statsapi.mlb.com"
}

Incremental fields

When incremental mode is on, each record also carries:

  • changeType — one of NEW, UPDATED, UNCHANGED, REAPPEARED, EXPIRED. Default output covers NEW / UPDATED / REAPPEARED; set emitUnchanged: true or emitExpired: true to opt into the others.
  • isRepost, repostOfId, repostDetectedAt — populated when a new listing matches the tracked content of a previously expired one. Set skipReposts: true to drop detected reposts from the output.

How to scrape statsapi.mlb.com

  1. Go to MLB Stats Scraper in Apify Console.
  2. Enter a search keyword.
  3. Set maxResults to control how many results you need.
  4. Enable includeDetails if you need the extra detail-page fields.
  5. Click Start and wait for the run to finish.
  6. Export the dataset as JSON, CSV, or Excel.

Use cases

  • Extract record data from statsapi.mlb.com for market research and competitive analysis.
  • Monitor new and changed records on scheduled runs without processing the full dataset every time.
  • Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
  • Export clean, structured data to dashboards, spreadsheets, or data warehouses.

How much does it cost to scrape statsapi.mlb.com?

MLB Stats Scraper uses pay-per-event pricing. You pay a small fee when the run starts and then for each result that is actually produced.

  • Run start: $0.01 per run
  • Per record returned (primary event): $0.002

You are billed only for the events your run actually triggers. Prices below are the Free plan tier.

EventPrice (Free tier)Charged when
Actor Start$0.01 (one-time)Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event).
Record returned (primary)$0.002Any record delivered to your dataset, charged at this same flat rate whatever it is: a player, a team, a game, a standings row, a box-score line, a season stat line, a leaderboard entry — or, in incremental mode with Include Expired on, an EXPIRED marker for a record that is no longer listed. The enrichment fees below apply to player rows only: every other row type is charged at this rate and nothing else.
Roster & injury status$0.0015Current roster or injury status, with the date it took effect. Charged once for every player row returned while Include Roster & Injury Status is on — including players with no status to report, because the lookup ran either way. The fields stay on the record so you can see the result. A row whose lookup could not be completed carries no status and is not charged for one.
Awards$0.0015All-Star and Futures Game selections and similar honours. Charged once for every player row returned while Include Awards is on — including players with no awards, because the lookup ran either way. The field stays on the record as an empty list so you can see the result, and stays absent, unbilled, if the lookup failed.
Transaction history$0.0025Signings, trades and injured-list placements with their dates. Charged once for every player row returned while Include Transaction History is on — including players with no transactions, because the lookup ran either way. An empty list on the record is how you tell that apart from never having asked; a failed lookup leaves neither, and bills nothing.

Example costs (primary event only — other events above add cost when they fire):

  • 10 results: $0.03
  • 25 results: $0.06
  • 100 results: $0.21
  • 200 results: $0.41
  • 500 results: $1.01

Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of records that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 records per run, daily polling (30 runs/month). Costs scale linearly with the number of records.

Numbers below are for the primary Record returned event. Other events (Roster & injury status, Awards, Transaction history) are billed separately when they fire.

Churn rateFull re-scrape run costIncremental run costSavings vs full re-scrapeMonthly cost after baseline
5% — stable niche query$0.21$0.02$0.19 (90%)$0.60
15% — moderate broad query$0.21$0.04$0.17 (81%)$1.20
30% — high-volume aggregator$0.21$0.07$0.14 (67%)$2.10

Full re-scrape monthly cost at the same cadence: $6.30. First month with incremental costs $0.79 / $1.37 / $2.24 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

FAQ

How many results can I get from statsapi.mlb.com?

The number of results depends on the search query and available records on statsapi.mlb.com. Use the maxResults parameter to control how many results are returned per run.

Does MLB Stats Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed records on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

Can I integrate MLB Stats Scraper with other apps?

Yes. MLB Stats Scraper works with Apify's integrations to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

Can I use MLB Stats Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the Apify API. Client libraries are available for JavaScript, Python, and other languages.

Can I use MLB Stats Scraper through an MCP Server?

Yes. Apify provides an MCP Server that lets AI assistants and agents call this actor directly. Use compact mode, a single descriptionFormat, and excludeEmptyFields to keep payloads manageable for LLM context windows.

This actor extracts publicly available data from statsapi.mlb.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

Your feedback

If you have questions, need a feature, or found a bug, please open an issue on the actor's page in Apify Console. Your feedback helps us improve.

You might also like

Getting started with Apify

New to Apify? Create a free account with $5 credit — no credit card required.

  1. Sign up — $5 platform credit included
  2. Open this actor and configure your input
  3. Click Start — export results as JSON, CSV, or Excel

Need more later? See Apify pricing.

Disclaimer

This actor accesses only publicly available data on statsapi.mlb.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with MLB Stats's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to MLB Stats.

Search keywords

mlb stats scraper, mlb stats api, apify mlb stats, mlb stats data extraction, statsapi.mlb.com scraper, statsapi.mlb.com data, statsapi.mlb.com api.