

API - Baseball
Real-time scores, player stats, team data, standings, injuries, and betting odds from MLB and baseball leagues worldwide.
























Real-Time Baseball Data
Every pitch, every swing, every play — delivered instantly to your application.
Complete Coverage
- Live game scores, innings, hits, and errors
- Batting, pitching, and fielding statistics
- Teams, players, and injury reports
- League standings by division
- Pre-match betting odds from major sportsbooks
curl -X GET "https://api.api4sports.com/api/baseball/leagues" \
-H "X-Api-Key: your_api_key_here"{
"message": "Success",
"data": [{
"id": 11590,
"name": "MLB",
"country": "United States",
"year": "2024",
"logo": "https://api.api4sports.com/logos/baseball/logo_leagues/mlb.png",
"importance": 5,
"date_start": "2024-03-28",
"date_stop": "2024-10-30"
}]
}Everything You Need
Live Games
Real-time scores, innings breakdown, hits, and errors updated as the action happens.
Players & Teams
Complete player profiles with batting, pitching, and fielding statistics per season.
Developer First
Clean RESTful API with comprehensive documentation and simple authentication.
Standings
League standings organized by division with wins, losses, and games behind.
Multiple Countries
Access baseball leagues from United States, Japan, and other countries worldwide.
Betting Odds
Pre-match odds including moneyline, runline, and totals from major bookmakers.
"API4Sports Baseball transformed our fantasy sports platform. The comprehensive data coverage and API reliability helped us build a better product for our users."
What You Can Build
Fantasy Baseball
Build the next great fantasy platform with live scoring and projections.
Sports Apps
Create engaging mobile experiences with real-time game updates.
Analytics Dashboards
Power advanced sabermetric analysis and player comparisons.
Media & Content
Enhance sports journalism with dynamic data visualizations.
Betting Platforms
Access live odds, props, and game data for wagering apps.
ML & AI Models
Train predictive models with comprehensive historical datasets.
Frequently Asked Questions
Still have questions?
Contact Us