VOOZH about

URL: https://apify.com/scrapers_lat/mlb-stats-scraper

โ‡ฑ MLB Player & Game Stats Scraper ยท Apify


Pricing

from $8.00 / 1,000 results

Go to Apify Store

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

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

a day ago

Last modified

Share

๐Ÿ‘ MLB Player & Game Stats Scraper

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.

๐Ÿ‘ Apify
๐Ÿ‘ Coverage
๐Ÿ‘ Maintained
๐Ÿ‘ Output

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 caseWho benefits
Fantasy baseball toolsDevelopers building draft and lineup apps
Sports analyticsAnalysts modeling team and player performance
Betting and odds modelsQuant teams needing clean historical results
Media and contentWriters and sites pulling standings and box scores
Data pipelinesEngineers 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.

Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

  • MLB League Standings (2025 Season): Scrape current MLB standings for the 2025 season across both leagues. Get team records, win percentage, games behind and division rankings.
  • Pull MLB Player Hitting Stats: Scrape season hitting statistics for MLB players by id. Get average, home runs, RBIs, OPS and more for analytics and fantasy baseball.
  • Scrape an MLB Team Roster: Scrape the full active roster for an MLB team by season. Get players, positions, jersey numbers and status for scouting and fantasy research.

Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

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.

You might also like

MLB Stats API

gentle_cloud/mlb-stats-api

Extract baseball data from MLB official free API. Get teams, standings, game schedules/scores, and detailed player statistics for any season.

75

MLB Stats Scraper

parseforge/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.

MLB Baseball Stats Scraper

crawlerbros/mlb-baseball-stats-scraper

Scrape the official MLB Stats API - comprehensive baseball data including teams, player batting/pitching stats, schedules, and standings. Official MLB data source, no authentication required.

15

5.0

MLB Stats Scraper

crawlerbros/mlb-stats-scraper

Scrape the official MLB Stats API, comprehensive baseball data including teams, players, schedules, standings, and detailed statistics. Official MLB data source, no authentication required.

77

5.0

MLB Stats Scraper

crawlergang/mlb-stats-scraper

Scrape the official MLB Stats API, comprehensive baseball data including teams, players, schedules, standings, and detailed statistics. Official MLB data source, no authentication required.

2

5.0

MLB Stats API - Baseball Data

alizarin_refrigerator-owner/mlb-stats-api

Comprehensive MLB baseball statistics including player stats, game logs, standings & historical data. Perfect for fantasy sports, betting & analytics.

MLB Team Roster

burbn/mlb-team-roster-scraper

Extract complete MLB rosters with deep player insights! ๐ŸŸ๏ธ Get real-time stats, injury tracking, cross-platform IDs (ESPN, Yahoo, MLB), and fantasy points. ๐Ÿš€ High-speed, multi-team support, and 6+ organized views for perfect data analysis. Perfect for analytics and betting apps!

Baseball Reference Scraper | MLB Stats and History

parseforge/baseball-reference-scraper

Extract MLB player, team, and game data from Baseball Reference including box scores, season stats, advanced metrics, standings, and historical records dating back over a century. Built for sabermetrics, fantasy baseball, betting models, and deep sports research.