MLB Player & Game Stats Scraper
Pricing
from $8.00 / 1,000 results
MLB Player & Game Stats Scraper
Extract MLB teams, rosters, player season stats, schedules, scores and standings from the public MLB Stats API.
Pricing
from $8.00 / 1,000 results
Rating
5.0
(1)
Developer
Scrapers Lat
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
21 hours ago
Last modified
Categories
Share
MLB Stats Scraper
Extract MLB teams, rosters, player season stats, schedules with final scores, and division standings from the official MLB Stats API covering all 30 Major League Baseball clubs.
| 5 modes teams, roster, players, schedule, standings | 30 teams full coverage | JSON / CSV / Excel output formats | Updated 2026-06-23 |
What you get
Pick one of five modes and the actor returns clean, typed records ready to load into any database, spreadsheet, or analytics pipeline. Each mode produces one record per entity.
Standings mode (one record per team):
- title: team name
- id: MLB team ID
- url: link to the team page on mlb.com
- teamName: team name
- season: season year
- wins: wins in the standings type
- losses: losses in the standings type
- winningPct: winning percentage
- divisionRank: rank within the division
- leagueRank: rank within the league
- sportRank: rank across all of MLB
- gamesBack: games behind the division leader
- wildCardGamesBack: games behind the wild card cutoff
- gamesPlayed: total games played
- runsScored: runs scored on the season
- runsAllowed: runs allowed on the season
- runDifferential: runs scored minus runs allowed
- streak: current win or loss streak code
- clinchIndicator: playoff clinch marker, when applicable
- homeRecord: wins, losses, and pct at home
- awayRecord: wins, losses, and pct on the road
- lastTenRecord: record over the last ten games
- divisionRecord: record against the team's own division
- oneRunRecord: record in one-run games
- extraInningsRecord: record in extra-inning games
- dayRecord: record in day games
- nightRecord: record in night games
- vsLeftRecord: record against left-handed starters
- vsRightRecord: record against right-handed starters
- expectedRecord: expected wins and losses from run differential
- lastUpdated: when the source last updated this record
- observedAt: when this record was collected by the scraper
Players and roster modes (one record per player) add a full bio and a season stat line:
- imageUrl: official MLB player headshot
- title: player full name
- id: MLB player ID
- url: link to the player page on mlb.com
- primaryNumber: jersey number
- position: position abbreviation
- positionName: full position name
- active: whether the player is active
- currentAge: current age
- birthDate: date of birth
- birthCity, birthStateProvince, birthCountry: birthplace
- height: listed height
- weight: listed weight in pounds
- batSide: bats left, right, or switch
- pitchHand: throwing hand
- mlbDebutDate: MLB debut date
- draftYear: year the player was drafted
- statSeason: season of the attached stat line
- statGroup: hitting or pitching
- Hitting stats (full set): gamesPlayed, plateAppearances, atBats, runs, hits, doubles, triples, homeRuns, rbi, totalBases, baseOnBalls, intentionalWalks, strikeOuts, hitByPitch, stolenBases, caughtStealing, stolenBasePercentage, caughtStealingPercentage, groundIntoDoublePlay, groundOuts, airOuts, groundOutsToAirouts, numberOfPitches, leftOnBase, sacBunts, sacFlies, catchersInterference, atBatsPerHomeRun, battingAverage, onBasePercentage, sluggingPercentage, ops, babip
- Pitching stats (full set): gamesPlayed, gamesStarted, gamesPitched, gamesFinished, completeGames, shutouts, wins, losses, winPercentage, saves, saveOpportunities, holds, blownSaves, era, whip, inningsPitched, battersFaced, outs, hits, runs, earnedRuns, homeRuns, strikeOuts, baseOnBalls, intentionalWalks, hitByPitch, hitBatsmen, balks, wildPitches, pickoffs, totalBases, numberOfPitches, strikes, strikePercentage, pitchesPerInning, groundOutsToAirouts, strikeoutWalkRatio, strikeoutsPer9Inn, walksPer9Inn, hitsPer9Inn, homeRunsPer9, runsScoredPer9, inheritedRunners, inheritedRunnersScored, battingAverageAgainst
- careerStats: career totals in the same stat group (a full stat object covering the player's whole MLB career)
- yearByYear: an array of season-by-season lines, each with the season, team, league, and the full stat object for that year
- rosterStatus*: active or other roster status (roster mode)
- observedAt: when this record was collected by the scraper
Schedule mode (one record per game):
- title: away team at home team
- id: MLB game ID
- url: link to the gameday page
- status: game status such as Final or Scheduled
- gameType: regular season, postseason, spring, and so on
- season: season year
- gameDate: scheduled start in UTC
- officialDate: official calendar date
- dayNight: day or night game
- homeTeam, homeTeamId, homeScore, homeIsWinner: home side
- awayTeam, awayTeamId, awayScore, awayIsWinner: away side
- venueName, venueId: ballpark
- doubleHeader: doubleheader flag
- scheduledInnings: scheduled innings
- observedAt: when this record was collected by the scraper
Teams mode returns the 30 clubs with name, abbreviation, league, division, venue, location, and first year of play.
*This field appears in roster mode. In roster mode the per-player bio and stat line are attached when Include Player Stats is enabled.
Who is it for
| Use case | Who benefits |
|---|---|
| Fantasy baseball tools | Developers building draft and lineup apps |
| Sports analytics | Analysts modeling team and player performance |
| Betting and odds models | Quant teams needing clean historical results |
| Media and content | Writers and sites pulling standings and box scores |
| Data pipelines | Engineers feeding dashboards and BI tools |
Frequently Asked Questions
How do I get a specific team's full roster with stats?
Choose roster mode, select the team from the dropdown, set the season, and keep Include Player Stats enabled. Each player record comes back with a full bio plus a hitting or pitching season stat line, picked automatically based on position.
Can I pull standings for past seasons?
Yes. Standings mode accepts any season year and league (American, National, or both) and returns one record per team with wins, losses, ranks, games back, run differential, and streak.
How do I get final scores for a given day?
Use schedule mode and set the date in YYYY-MM-DD format. You get one record per game with home and away scores, the winner flag, venue, and status.
Where do I find player IDs for players mode?
Run teams or roster mode first. Every team and player record includes its MLB ID, which you paste into the Player IDs list for players mode.
Does this need an API key or login?
No. It reads public MLB Stats API data and runs over the Apify Proxy for reliable access, with no key or account required.
This is an independent tool that collects publicly available data from the MLB Stats API for research and analysis. It is not affiliated with, endorsed by, or sponsored by Major League Baseball or MLB Advanced Media. All team names, player names, and statistics are the property of their respective owners.
Related scrapers
Need data from the same space? Here are other scrapers we build and maintain:
- SEC EDGAR Company Filings Scraper: Scrape SEC EDGAR company filings by ticker or CIK. Get form type, filing date, accession number...
- USAspending Federal Award Scraper: Scrape US federal prime awards from USAspending.gov. Get recipient, UEI, award amount, awarding...
- openFDA Drug Events & Recalls Scraper: Scrape FDA drug adverse event reports (FAERS) and drug recall and enforcement actions from the...
- OFAC Sanctions List Scraper: Download and parse the US Treasury OFAC SDN and Consolidated sanctions lists. Get each sanctioned...
- Grants.gov Opportunity Scraper: Extract U.S. federal grant opportunities from the official Grants.gov API. Scrape title, agency...
- Federal Register Document Scraper: Search and extract documents from the U.S. Federal Register by keyword, document type, agency and...
More scrapers at scrapers.lat
This actor is built and maintained by scrapers.lat, where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at scrapers.lat.
