MLB.com: scrapers and the official API, compared
MLB teams, players, schedules, game results, stat lines and league leaders from MLB.com.
Short answer
For most MLB.com jobs, start with MLB Teams, Player Search & Season Schedule Lookup: it covers 2 of 6 core fields (player, team) at $0.99 per 1,000 results on Apify's Free plan. The top published score for MLB.com goes to MLB Scraper by deriverge (85 of 100), a Store tool from another publisher, listed for reference.
From published Store listings, output schemas and the official documentation. Checked 2026-11-11. How the ranking works.MLB Teams, Player Search & Season Schedule Lookup: inputs, code and costOpen in Apify Store
What do you need from MLB.com?
- Look up teams and players MLB Teams, Player Search & Season Schedule Lookup Only this one: eventName, homeTeam, awayTeam 10,000 results: $10.30 on Free, incl. $0.40 start, plus Apify platform usage (compute)
- Schedule tracking Official MLB Team, Schedule & Stat Line Scraper Only this one: gamePk, officialDate, statGroup 10,000 results: $10.30 on Free, incl. $0.40 start, plus Apify platform usage (compute)
Route map
Each line is one way to get MLB.com data; each stop is a field you probably need. Green lines are catalogue Actors, ranked by the published formula.
- 1 MLB Teams, Player Search & Season Schedule Lookup 6 output fields, pay per event 2 of 6 core fields
$0.99 / 1K - 2 Official MLB Team, Schedule & Stat Line Scraper 12 output fields, pay per event 2 of 6 core fields
$0.99 / 1K - + 7 other Store tools, combined Reference only 6 of 6 core fields
from $1.00 / 1K - API MLB Stats API (statsapi.mlb.com) Limited access fields not compared
Stops are fields. A ring means the field is in that route's published output schema; no ring means the line passes without it. Bold labels are the core fields for this website, the rest are fields that differ between routes. A white capsule means every data line stops there. The red line is the official API; its field coverage is not compared. A crossed red line means there is no open official API.
Catalogue Actors for MLB.com
MLB Teams, Player Search & Season Schedule Lookup
Look up every current MLB team, search for a player by name, or pull a full season's schedule and scores, with stadium, roster, and matchup…
Official MLB Team, Schedule & Stat Line Scraper
Get baseball data from MLB's own public Stats API: season hitting, pitching, and fielding lines, team rosters, game schedules and scores, or live…
Which route for which job
The catalogue Actors for MLB.com return different records. "Only this route" lists the published fields no other Actor in this table returns, which is usually what decides the choice. Cost is the published per-result rate; start events and platform usage are extra.
| Actor | Good for | Only this route | Core fields | 10K results |
|---|---|---|---|---|
| MLB Teams, Player Search & Season Schedule Lookup | Look up teams and players | eventName, homeTeam, awayTeam, matchDate | 2/6 | $9.90 |
| Official MLB Team, Schedule & Stat Line Scraper | Schedule tracking | gamePk, officialDate, statGroup, leaderCategory, value | 2/6 | $9.90 |
Field matrix: who returns what
Every tool with a published output schema, against the 6 fields most MLB.com jobs need. A dot means the field name appears in the schema; rows can still leave it empty.
| Tool | player | team | game | home | away | stat | Fields |
|---|---|---|---|---|---|---|---|
| MLB Teams, Player Search & Season Schedule Lookup | ● | ● | – | – | – | – | 2/6 |
| Official MLB Team, Schedule & Stat Line Scraper | ● | ● | – | – | – | – | 2/6 |
| MLB ScraperReference only, by deriverge | – | ● | – | ● | ● | ● | 4/6 |
| MLB Stats ScraperReference only, by blackfalcondata | – | ● | ● | – | – | ● | 3/6 |
| MLB Stats Scraper: Player Stats, Scores, Standings & Box ScoreReference only, by scrapers_lat | – | ● | ● | – | – | ● | 3/6 |
| MLB Stats ScraperReference only, by zen-studio | – | ● | – | – | – | – | 1/6 |
| MLB Stats ScraperReference only, by parsebird | – | ● | – | – | – | – | 1/6 |
| Baseball Savant Statcast Scraper: MLB Exit Velo & xStatsReference only, by scrapers_lat | ● | – | – | – | – | – | 1/6 |
| MLB Stats ScraperReference only, by parseforge | – | – | ● | – | – | – | 1/6 |
| Tools returning it | 3 | 7 | 3 | 1 | 1 | 3 |
Field dictionary: the exact keys
The same core field has a different key in each Actor's output. Map these before you merge datasets; a dash means the published schema has no matching key. Need a field that is not listed here, such as email? Search every MLB.com Actor by field.
| Core field | MLB Teams, Player Search… | Official MLB Team, Schedule… |
|---|---|---|
| player | playerName | playerName |
| team | teamName, homeTeam, awayTeam | teamName |
| game | – | – |
| home | – | – |
| away | – | – |
| stat | – | – |
Download this comparison: CSV · JSON (every tool with a published schema, matching keys per core field, price and score).
All 10 tools, scored
Catalogue Actors link to their detail pages; the score (0 to 100) is the published formula, identical for every tool. Other Store tools follow in their own table, for reference. Price is the published primary-result rate per 1,000 (the Free-plan rate where the price is tiered; higher Apify plans pay less); start events and platform usage are excluded.
| Sample fields | ||||||
|---|---|---|---|---|---|---|
| 68 | MLB Teams, Player Search & Season Schedule Lookup Catalogue Actor, pay per event | playerName, teamName, eventName | 6 | $0.99 | 11 runs, too few to rate | Nov 2026 |
| 68 | Official MLB Team, Schedule & Stat Line Scraper Catalogue Actor, pay per event | playerName, teamName, gamePk | 12 | $0.99 | 18 runs, too few to rate | Oct 2026 |
Other Store tools, for reference
Scored with the same published formula and listed for comparison only; this site does not link or recommend them.
| Sample fields | ||||||
|---|---|---|---|---|---|---|
| 85 | MLB Scraper Reference only, by deriverge | teamName, home, away | 51 | $1.00 | 100% of 43 runs | Oct 2026 |
| 80 | MLB Stats Scraper Reference only, by blackfalcondata | teamName, seriesGameNumber, hittingStats | 84 | $2.00 | 100% of 29 runs | Oct 2026 |
| 77 | MLB Stats Scraper: Player Stats, Scores, Standings & Box Score Reference only, by scrapers_lat | teamName, seriesGameNumber, careerStats | 120 | $8.00 | 100% of 32 runs | Nov 2026 |
| 74 | MLB Stats Scraper Reference only, by memo23 | No published schema | – | $4.00 | 100% of 89 runs | Nov 2026 |
| 69 | MLB Stats Scraper Reference only, by zen-studio | away_team_name, ab, abbreviation | 120 | $3.99 | 100% of 119 runs | Nov 2026 |
| 67 | MLB Stats Scraper Reference only, by parsebird | teamName, teamId, playerId | 12 | $4.59 | 100% of 29 runs | Aug 2026 |
| 65 | Baseball Savant Statcast Scraper: MLB Exit Velo & xStats Reference only, by scrapers_lat | playerName, playerId, firstName | 41 | $8.80 | 100% of 29 runs | Nov 2026 |
| 54 | MLB Stats Scraper Reference only, by parseforge | seriesGameNumber, gamePk, gameGuid | 16 | $34 | 100% of 67 runs | Oct 2026 |
Official API route
MLB Stats API (statsapi.mlb.com)
MLB's own Stats API at statsapi.mlb.com answers without a key but is not published as a developer product. Every response links to an MLB Advanced Media notice that permits only individual, non-commercial, non-bulk use.
Price. No public self-serve price is published; other uses need written authorization from MLB Advanced Media.
Limits. Commercial or bulk use requires prior written authorization from MLBAM. Rate limits are not published.
Terms and personal data
MLB terms (updated March 11, 2025) prohibit using automated scripts to collect information from MLB digital properties. This is general information, not legal advice.
Read MLB.com's terms. Keep to public data, do not bypass logins or access controls, and check whether personal data is involved before you collect it. The can-I-scrape checklist walks through it.
How to start
- Open MLB Teams, Player Search & Season Schedule Lookup and start from its default input; its Actor page has the full example input and code.
- Set the MLB.com search, profile, listing or URL you need and a result limit; the required input is mode.
- Run it and export the dataset as JSON, CSV or Excel, or call it from the Apify API.
Call MLB Teams, Player Search & Season Schedule Lookup from code
The example input uses the Actor's published defaults; set your own MLB.com query before you run it. You need an Apify API token.
Python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run_input = {
"mode": "teams",
"searchQuery": "Shohei Ohtani",
"season": "2024",
"maxItems": 20
}
run = client.actor("vexaloom-labs/mlb-teams-player-search-and-season-schedule-lookup").call(run_input=run_input)
if run is None:
raise RuntimeError("The Actor run was not found.")
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item) pip install apify-client
JavaScript
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: "<YOUR_APIFY_TOKEN>" });
const input = {
"mode": "teams",
"searchQuery": "Shohei Ohtani",
"season": "2024",
"maxItems": 20
};
const run = await client.actor("vexaloom-labs/mlb-teams-player-search-and-season-schedule-lookup").call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items); npm install apify-client
cURL
curl -X POST "https://api.apify.com/v2/actors/vexaloom-labs~mlb-teams-player-search-and-season-schedule-lookup/run-sync-get-dataset-items" -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" -d '{"mode":"teams","searchQuery":"Shohei Ohtani","season":"2024","maxItems":20}' Waits for the run and returns the dataset items (runs over 300 seconds return HTTP 408; start an async run instead).
MCP (AI agents)
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=vexaloom-labs/mlb-teams-player-search-and-season-schedule-lookup",
"headers": {
"Authorization": "Bearer <YOUR_APIFY_TOKEN>"
}
}
}
} Adds this Actor as a tool in an MCP client that takes a remote server URL (Cursor, VS Code, Claude Code) through Apify's hosted MCP server. OAuth sign-in also works without the header. Clients that only start local servers can wrap the URL with npx mcp-remote.
Questions people ask
What is the cheapest catalogue Actor for MLB.com data?
MLB Teams, Player Search & Season Schedule Lookup lists $0.99 per 1,000 results (pay per event), with 6 fields in its published output schema. Start events and platform usage are billed separately. Checked 2026-11-11.
Which MLB.com scraper returns the most core fields?
MLB Teams, Player Search & Season Schedule Lookup covers 2 of the 6 core MLB.com fields this page tracks (player, team, game, home, away, stat), based on its published output schema.
Does MLB.com have an official API?
Limited access: MLB's own Stats API at statsapi.mlb.com answers without a key but is not published as a developer product. Every response links to an MLB Advanced Media notice that permits only individual, non-commercial, non-bulk use. No public self-serve price is published; other uses need written authorization from MLB Advanced Media.
Is it legal to scrape MLB.com?
It depends on what you collect and how. MLB terms (updated March 11, 2025) prohibit using automated scripts to collect information from MLB digital properties. Read MLB.com's terms (https://www.mlb.com/official-information/terms-of-use) before you collect, and check whether personal data is involved. This is general information, not legal advice.
More on MLB.com
Related websites
Sources
- MLB Teams, Player Search & Season Schedule Lookup on Apify Store
- Official MLB Team, Schedule & Stat Line Scraper on Apify Store
- MLB.com terms
- Official source, checked 2026-11-11
- Official source, checked 2026-11-11
Cite this page
Scraper Finder. "How to get MLB.com data." https://scraperfinder.com/sites/mlb/ (data checked 2026-11-11).
Highest-scoring catalogue Actor
MLB Teams, Player Search & Season Schedule Lookup: 2 of 6 core fields, $0.99 per 1,000 results, score 68. The highest score overall is 85 (MLB Scraper, a Store tool from another publisher); both are in the table above.