Scrapers.lat logo scrapers.lat
体育

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 每条记录的字段 JSON · CSV · Excel · API 按用量付费
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"
}
你会得到什么

每次运行都返回干净、带类型的记录,可直接用于你的 CRM、表格或数据库。

  • 每个结果对应一条干净记录,已去重并规范化
  • JSON、CSV 或 Excel 的稳定结构,也可通过 Apify API 读取
  • 在云端按用量付费,无需安装或维护
返回的字段
TitleIdUrlTeam NameSeasonWinsLossesWinning PctDivision RankLeague RankSport RankGames BackWild Card Games BackGames Played
示例输出

一条真实的示例记录,正是你收到的结构。

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"
}

常见问题

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.

你准备好,它就就绪。

现在就在 Apify 上运行这个爬虫,或让我们按你的确切需求定制一个。