SportsDataIO

MLB v3 Stats

MLB scores, stats, and news API.

Media & content#openapi#entertainment

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

MLB scores, stats, and news API.

Endpoints 34

  • GETTeams (All)/:format/AllTeams
  • GETAre Games In Progress/:format/AreAnyGamesInProgressReturns <code>true</code> if there is at least one game being played at the time of the request or <code>false</code> if there are none.
  • GETBox Score/:format/BoxScore/:gameid
  • GETBox Scores by Date/:format/BoxScores/:date
  • GETBox Scores by Date Delta/:format/BoxScoresDelta/:date/:minutes
  • GETCurrent Season/:format/CurrentSeason
  • GETDFS Slates by Date/:format/DfsSlatesByDate/:date
  • GETPlayer Details by Free Agents/:format/FreeAgents
  • GETSchedules/:format/Games/:season
  • GETGames by Date/:format/GamesByDate/:date
  • GETBatter vs. Pitcher Stats/:format/HitterVsPitcher/:hitterid/:pitcherid
  • GETNews/:format/News
  • GETNews by Date/:format/NewsByDate/:date
  • GETNews by Player/:format/NewsByPlayerID/:playerid
  • GETPlayer Details by Player/:format/Player/:playerid
  • GETPlayer Game Stats by Date/:format/PlayerGameStatsByDate/:date
  • GETPlayer Game Stats by Player/:format/PlayerGameStatsByPlayer/:date/:playerid
  • GETPlayer Game Logs By Season/:format/PlayerGameStatsBySeason/:season/:playerid/:numberofgames
  • GETPlayer Season Away Stats/:format/PlayerSeasonAwayStats/:season
  • GETPlayer Season Home Stats/:format/PlayerSeasonHomeStats/:season
  • GETPlayer Season Split Stats/:format/PlayerSeasonSplitStats/:season/:split
  • GETPlayer Season Stats/:format/PlayerSeasonStats/:season
  • GETPlayer Season Stats By Player/:format/PlayerSeasonStatsByPlayer/:season/:playerid
  • GETPlayer Season Stats by Team/:format/PlayerSeasonStatsByTeam/:season/:team
  • GETPlayer Season Stats Split By Team/:format/PlayerSeasonStatsSplitByTeam/:season
  • GETPlayer Details by Active/:format/Players
  • GETPlayers by Team/:format/Players/:team
  • GETStadiums/:format/Stadiums
  • GETStandings/:format/Standings/:season
  • GETTeam Game Stats by Date/:format/TeamGameStatsByDate/:date
  • GETTeam Game Logs By Season/:format/TeamGameStatsBySeason/:season/:teamid/:numberofgamesGame by game log of total team statistics.
  • GETTeam Hitting vs. Starting Pitcher/:format/TeamHittersVsPitcher/:gameid/:team
  • GETTeam Season Stats/:format/TeamSeasonStats/:season
  • GETTeams (Active)/:format/teams

API details

Base URL
http://azure-api.sportsdata.io/v3/mlb/stats
https://azure-api.sportsdata.io/v3/mlb/stats
Authentication
An API key in the Ocp-Apim-Subscription-Key header
An API key in the key query parameter
Operations
34 operations on 34 pathsGET 34
Response formats
application/json
Description format
OpenAPI 3.0.0, API version 1.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the MLB v3 Stats in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the MLB v3 Stats collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the Ocp-Apim-Subscription-Key header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Teams (All)” (GET /:format/AllTeams), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the MLB v3 Stats?

MLB scores, stats, and news API. It is listed under Media & content and has 34 endpoints.

Who publishes the MLB v3 Stats?

It is listed from SportsDataIO's public API description (an OpenAPI document), not published by SportsDataIO on Swastik Codes. Anyone who controls sportsdata.io can claim the profile by adding a DNS TXT record.

What is the base URL of the MLB v3 Stats?

Its description lists 2 base URLs: http://azure-api.sportsdata.io/v3/mlb/stats, https://azure-api.sportsdata.io/v3/mlb/stats. The first is the usual one; the others are typically sandbox or regional servers.

How do I authenticate with the MLB v3 Stats?

It accepts 2 methods: an API key in the Ocp-Apim-Subscription-Key header; an API key in the key query parameter.

How many endpoints does the MLB v3 Stats have?

34 operations on 34 paths (34 GET).

Is forking the MLB v3 Stats free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.