MLB Stats API - Baseball Data
Pricing
from $0.01 / 1,000 results
MLB Stats API - Baseball Data
Comprehensive MLB baseball statistics including player stats, game logs, standings & historical data. Perfect for fantasy sports, betting & analytics.
Pricing
from $0.01 / 1,000 results
Rating
0.0
(0)
Developer
The Howlers
Maintained by CommunityActor stats
1
Bookmarked
121
Total users
0
Monthly active users
5 days ago
Last modified
Categories
Security
Limited permissionsShare
MLB Stats API
Fetch MLB baseball data including teams, players, schedules, standings, and game statistics from the official MLB Stats API.
Note: Demo Mode is off by default, so runs fetch real data. Set demoMode to true to get free sample data instead.
Quick Start
Test with Demo Mode (free, no API key needed)
{"demoMode": true}
Run with real data
{"demoMode": false,"task": "standings","leaderCategory": "homeRuns"}
Input Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
task | string | "standings" | Yes* | What data to fetch |
teamId | integer | - | No | MLB team ID (e.g., 147 for New York Yankees, 111 for Boston Red Sox). Required for team_roster and team_schedule. |
playerId | integer | - | No | MLB player ID for player_stats task |
gameId | integer | - | No | MLB game ID (gamePk) for game_boxscore task |
season | integer | - | No | Season year (e.g., 2024). Defaults to current season. |
date | string | - | No | Date for schedule (YYYY-MM-DD format). Defaults to today. |
leaderCategory | string | "homeRuns" | No | Category for leaders (homeRuns, battingAverage, rbi, wins, era, strikeouts) |
demoMode | boolean | false | No | Return sample data without making API calls |
webhookUrl | string | - | No | URL to receive results via POST request (Zapier, Make, n8n, or custom endpoint) |
Pricing
This actor uses pay-per-event billing:
| Event | When it is charged | Price |
|---|---|---|
| Actor start | Once when the run starts, one event per GB of memory (minimum one). At the default 4 GB of memory a run starts at $0.40 | $0.10 per GB |
| Result | Each item written to the default dataset | $0.00001 |
Demo mode is free -- no charges for sample data.
Troubleshooting
"API error 429" or "Rate limit"
Too many requests. Wait a minute and try again, or reduce the number of items per run.
No results or empty dataset
Check the run log for error messages. Common causes:
- Invalid input format (check the examples above)
- The target data doesn't exist or is too small to track
How do I test without an API key?
Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.
Built by John Rippy | Actor Arsenal