Major League Baseball Game API

Operations pertaining to games

Operations 13

GET /api/v1/game/{game_pk}/playByPlay Get game play By Play #
GET /api/v1/game/{game_pk}/linescore Get game linescore #
GET /api/v1/game/{game_pk}/feed/color Get game color feed #
GET /api/v1/game/{game_pk}/feed/color/timestamps Retrieve all of the color timestamps for a game #
GET /api/v1/game/{game_pk}/content Retrieve all content for a game #
GET /api/v1/game/{game_pk}/boxscore Get game boxscore #
GET /api/v1/game/{gamePk}/withMetrics Get game info with metrics #
GET /api/v1/game/{gamePk}/winProbability Get the win probability for this game #
GET /api/v1/game/{gamePk}/contextMetrics Get the context metrics for this game based on its current state #
GET /api/v1/game/changes View a game change log #
GET /api/v1.1/game/{game_pk}/feed/live Get live game status #
GET /api/v1.1/game/{game_pk}/feed/live/timestamps Retrieve all of the play timestamps for a game #
GET /api/v1.1/game/{game_pk}/feed/live/diffPatch Get live game status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/major-league-baseball-game-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

major-league-baseball-game-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stats API Documentation Game API
  description: Official API for Major League Baseball.
  version: 2.0.0
servers:
- url: https://statsapi.mlb.com
  description: Production
- url: https://beta-statsapi.mlb.com
  description: Beta
- url: https://qa-statsapi.mlb.com
  description: QA
- url: http://localhost:8080
  description: Local
tags:


# --- truncated at 32 KB (249 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/major-league-baseball/refs/heads/main/openapi/major-league-baseball-game-api-openapi.yml