Apify Store
AS
Apify Store
/memo23/mlb-stats-scraper

MLB Stats Scraper — Baseball Teams, Players, Scores & Standings

Baseball data from the official MLB Stats API — teams, rosters with player bios, schedules and scores, live standings, season hitting/pitching/fielding stats, box scores and league leaders. Built for

liveasyncunknown~30s typical
sportsdeveloper toolsaimlbstats
$0.0050
per result + $0.005 call
plus $0.001 platform fee per run
Actor charges $0.004 per result; Cracked adds 25% plus a $0.005 call fee
Bring your own Apify Store key: provider portion drops to $0.
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run apify /memo23/mlb-stats-scraper for me.

Input

FieldTypeDescription
modestring (teams | players | schedule | standings | playerStats | gameDetails)Which dataset to pull. Teams = all 30 clubs. Players = full rosters with bios. Schedule = games and results. Standings = division tables. Player stats = season hitting/pitching/fielding lines. Game details = box-score totals per team. Leaders = league leaderboards by category. default "teams"
seasonsarrayOne or more seasons to pull, e.g. [2026] or [2024, 2025, 2026]. Defaults to the current season. Historical data goes back to 1876.
seasonintegerShortcut for one season, e.g. 2026. Same as putting a single value in Seasons — use either. If both are given they are merged.
teamIdsarrayLimit to specific teams by MLB team id, e.g. 119 (Dodgers), 147 (Yankees), 111 (Red Sox). Leave empty for all 30 teams. Run the Teams mode once to get every id.
teamIdintegerShortcut for one MLB team id, e.g. 119 for the Dodgers. Merged with Team IDs if both are set.
playerIdsarrayPlayer stats mode: pull only these players by MLB person id (e.g. 660271 for Shohei Ohtani). Leave empty to use the rosters of the selected teams.
playerIdintegerShortcut for one MLB person id, e.g. 660271. Merged with Player IDs if both are set.
gamePksarrayGame details mode: pull only these games by gamePk. Leave empty to use the schedule for the chosen date, range or season.
gamePkintegerShortcut for one gamePk. Merged with Game IDs if both are set.
datestringSchedule / game details for one day, in YYYY-MM-DD format, e.g. 2026-08-03.
fromDatestringStart of a date range (YYYY-MM-DD). Use together with To date.
toDatestringEnd of a date range (YYYY-MM-DD). Use together with From date.
leagueIdstring (both | AL | NL)Standings mode: restrict to the American or National League. default "both"
statGroupstring (hitting | pitching | fielding)Which statistics to return in Player stats and Leaders modes. default "hitting"
gameTypestring (R | S | P | W | L | A)Which games to include in Schedule and Game details modes. default "R"
leaderCategoriesarrayLeaders mode: which leaderboards to pull, e.g. homeRuns, battingAverage, runsBattedIn, stolenBases, strikeouts, earnedRunAverage, wins, saves.
maxItemsintegerHard cap on how many rows the run returns (and is charged for). default 1000

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"apify","endpoint":"/memo23/mlb-stats-scraper","input":{"seasons":["2026"],"leaderCategories":["homeRuns"],"maxItems":3},"wait":false}'
poll
curl "https://cracked-ai-pearl.vercel.app/v1/runs/<runId>?wait=30" -H "Authorization: Bearer ck_live_..."
cli
npx cracked-ai run -p apify -e /memo23/mlb-stats-scraper -i '{"seasons":["2026"],"leaderCategories":["homeRuns"],"maxItems":3}' -w 120
mcp
run_tool({ provider: "apify", endpoint: "/memo23/mlb-stats-scraper", input: {"seasons":["2026"],"leaderCategories":["homeRuns"],"maxItems":3}, wait: false })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.