# MLB v3 Stats API

> MLB scores, stats, and news API.

MLB v3 Stats is an entertainment API from sportsdata.io. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 34 endpoints.

## At a glance

- Category: [Entertainment](https://www.openparable.com/apis/category/entertainment)
- Provider: sportsdata.io
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: http://azure-api.sportsdata.io/v3/mlb/stats
- Documentation: https://sportsdata.io/
- OpenAPI description: https://api.apis.guru/v2/specs/sportsdata.io/mlb-v3-stats/1.0/openapi.json
- Version: 1.0
- Specification updated: 2023-03-05

## Example request

```bash
curl -X GET "http://azure-api.sportsdata.io/v3/mlb/stats/FORMAT/AllTeams" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /{format}/AllTeams` — Teams (All)
- `GET /{format}/AreAnyGamesInProgress` — Are Games In Progress
- `GET /{format}/BoxScore/{gameid}` — Box Score
- `GET /{format}/BoxScores/{date}` — Box Scores by Date
- `GET /{format}/BoxScoresDelta/{date}/{minutes}` — Box Scores by Date Delta
- `GET /{format}/CurrentSeason` — Current Season
- `GET /{format}/DfsSlatesByDate/{date}` — DFS Slates by Date
- `GET /{format}/FreeAgents` — Player Details by Free Agents
- `GET /{format}/Games/{season}` — Schedules
- `GET /{format}/GamesByDate/{date}` — Games by Date
- `GET /{format}/HitterVsPitcher/{hitterid}/{pitcherid}` — Batter vs. Pitcher Stats
- `GET /{format}/News` — News
- `GET /{format}/NewsByDate/{date}` — News by Date
- `GET /{format}/NewsByPlayerID/{playerid}` — News by Player
- `GET /{format}/Player/{playerid}` — Player Details by Player
- `GET /{format}/PlayerGameStatsByDate/{date}` — Player Game Stats by Date
- `GET /{format}/PlayerGameStatsByPlayer/{date}/{playerid}` — Player Game Stats by Player
- `GET /{format}/PlayerGameStatsBySeason/{season}/{playerid}/{numberofgames}` — Player Game Logs By Season
- `GET /{format}/PlayerSeasonAwayStats/{season}` — Player Season Away Stats
- `GET /{format}/PlayerSeasonHomeStats/{season}` — Player Season Home Stats
- `GET /{format}/PlayerSeasonSplitStats/{season}/{split}` — Player Season Split Stats
- `GET /{format}/PlayerSeasonStats/{season}` — Player Season Stats
- `GET /{format}/PlayerSeasonStatsByPlayer/{season}/{playerid}` — Player Season Stats By Player
- `GET /{format}/PlayerSeasonStatsByTeam/{season}/{team}` — Player Season Stats by Team
- `GET /{format}/PlayerSeasonStatsSplitByTeam/{season}` — Player Season Stats Split By Team
- `GET /{format}/Players` — Player Details by Active
- `GET /{format}/Players/{team}` — Players by Team
- `GET /{format}/Stadiums` — Stadiums
- `GET /{format}/Standings/{season}` — Standings
- `GET /{format}/TeamGameStatsByDate/{date}` — Team Game Stats by Date
- `GET /{format}/TeamGameStatsBySeason/{season}/{teamid}/{numberofgames}` — Team Game Logs By Season
- `GET /{format}/TeamHittersVsPitcher/{gameid}/{team}` — Team Hitting vs. Starting Pitcher
- `GET /{format}/TeamSeasonStats/{season}` — Team Season Stats
- `GET /{format}/teams` — Teams (Active)

## Questions

### Does the MLB v3 Stats API need an API key?

Yes. The MLB v3 Stats API uses API key authentication; the documentation explains how to get credentials.

### Does the MLB v3 Stats API support HTTPS?

Yes, the MLB v3 Stats API is served over HTTPS.

### How many endpoints does the MLB v3 Stats API have?

Its OpenAPI description lists 34 endpoints in version 1.0. All of them are shown on this page.

### What are alternatives to the MLB v3 Stats API?

Other Entertainment APIs include Techy, Imgflip, Official Joke, Betfair: Exchange Streaming API, Listen API: Podcast Search, Directory, and Insights API.

## Similar entertainment APIs

- [Techy](https://www.openparable.com/apis/techy): JSON and Plaintext API for tech-savvy sounding phrases
- [Imgflip](https://www.openparable.com/apis/imgflip): Gets an array of popular memes
- [Official Joke](https://www.openparable.com/apis/official-joke): API for random and programming jokes
- [Betfair: Exchange Streaming API](https://www.openparable.com/apis/betfair-exchange-streaming): API to receive streamed updates. This is an ssl socket connection of CRLF delimited json messages (see RequestMessage & ResponseMessage)
- [Listen API: Podcast Search, Directory, and Insights API](https://www.openparable.com/apis/listen-podcast-search-directory-and-insights): Simple & no-nonsense podcast search & directory API. Search all podcasts and episodes by people, places, or topics.
- [TasteDive](https://www.openparable.com/apis/tastedive): Content-based recommendations for movies, music, TV shows, books, games, and podcasts
- [JokeAPI](https://www.openparable.com/apis/jokeapi-v2): Programmable jokes in multiple languages with filtering options
- [chucknorris.io](https://www.openparable.com/apis/chucknorris-io): JSON API for hand curated Chuck Norris jokes
- [Corporate Buzz Words](https://www.openparable.com/apis/corporate-buzz-words): REST API for Corporate Buzz Words
- [Memesio](https://www.openparable.com/apis/memesio): Meme creation API with templates, editable captions and hosted share links
- [Random Useless Facts](https://www.openparable.com/apis/random-useless-facts): Get useless, but true facts
- [Hubhopper Partner Integration API(s) - Production](https://www.openparable.com/apis/hubhopper-partner-integration-s-production): This is an interactive document explaining the API(s) that could be used to fetch data from [Hubhopper](https://hubhopper.com). Use the api key provided to authorize `x-api-key` and test the API(s). The output data models are also available for reference.

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/mlb-v3-stats (OpenParable). Cite the canonical URL above.
