sportsdata.io

MLB scores, stats, and news API.

🔑 apikey 34 endpoints entertainment
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (3 total)

pip install sportsdata-sdk
pip install sportsdata
composer require sportsdataio-php-sdk
curl examples
News
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  http://azure-api.sportsdata.io/v3/mlb/stats/{format}/News
Teams (Active)
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  http://azure-api.sportsdata.io/v3/mlb/stats/{format}/teams
Player Details by Active
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  http://azure-api.sportsdata.io/v3/mlb/stats/{format}/Players
Endpoints (34 total)
GET
/{format}/News
News
GET
/{format}/teams
Teams (Active)
GET
/{format}/Players
Player Details by Active
GET
/{format}/AllTeams
Teams (All)
GET
/{format}/Stadiums
Stadiums
GET
/{format}/FreeAgents
Player Details by Free Agents
GET
/{format}/CurrentSeason
Current Season
GET
/{format}/Games/{season}
Schedules
GET
/{format}/Players/{team}
Players by Team
GET
/{format}/BoxScores/{date}
Box Scores by Date
GET
/{format}/BoxScore/{gameid}
Box Score
GET
/{format}/NewsByDate/{date}
News by Date
Related APIs in same category
jokes.onevimeo.comnpr.orgnpr.orgnpr.orgnpr.org
Language coverage
Python
2
PHP
1
At a glance
Total SDKs3
Languages2
Endpoints34
Authapikey
Categories1
http://azure-api.sportsdata.io/v3/mlb/stats