Scrapers.lat logo scrapers.lat
Sports

MLB Player Stats, Scores & Standings Scraper

Scrape MLB teams, rosters, player season stats, schedules, final scores and division standings from the official MLB Stats API. Covers all 30 Major League Baseball clubs with wins, losses, runs and records. Export to JSON, CSV or Excel.

40 fields per record JSON · CSV · Excel · API Pay per use
mlb-stats-scraper.json 200 OK
{
  "title": "Yankees",
  "id": 147,
  "url": "https://www.mlb.com/team/147",
  "teamName": "Yankees",
  "season": "2024",
  "wins": 94,
  "losses": 68,
  "winningPct": ".580",
  "divisionRank": "1"
}
What you get

Every run returns clean, typed records, ready for your CRM, spreadsheet or database.

  • One clean record per result, deduped and normalized
  • Stable schema in JSON, CSV or Excel, or read it via the Apify API
  • Pay per use in the cloud, nothing to install or maintain
Fields it returns
TitleIdUrlTeam NameSeasonWinsLossesWinning PctDivision RankLeague RankSport RankGames BackWild Card Games BackGames Played
Sample output

A real example record, exactly the shape you receive.

TitleIdUrlTeam Name
Yankees147https://www.mlb.com/team/147Yankees
Orioles110https://www.mlb.com/team/110Orioles
Red Sox111https://www.mlb.com/team/111Red Sox
Rays139https://www.mlb.com/team/139Rays
Blue Jays141https://www.mlb.com/team/141Blue Jays
GET /mlb-stats-scraper
{
  "title": "Yankees",
  "id": 147,
  "url": "https://www.mlb.com/team/147",
  "teamName": "Yankees",
  "season": "2024",
  "wins": 94,
  "losses": 68,
  "winningPct": ".580",
  "divisionRank": "1"
}

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.

Ready when you are.

Run the scraper live on Apify right now, or have us build one tailored to exactly what you need.