Major League Baseball Game API

Operations pertaining to games

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Sports, Betting & Fantasy AE-180.80

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 13 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/v1/game/{game_pk}/playByPlay Get the play-by-play of a game · Get game play By Play #
Ask an LLM
“How do I get every pitch and play in a baseball game?”
“Can I see the play-by-play up to a specific timecode?”
Tell an agent
Get the play-by-play for game {game_pk}.
Show the plays in game {game_pk} up to timecode {timecode}.
GET /api/v1/game/{game_pk}/linescore Get the game linescore · Get game linescore #
Ask an LLM
“What is the current score and inning of a game?”
“Can I get the linescore snapshot at a given timecode?”
Tell an agent
Get the linescore for game {game_pk}.
Show the linescore of game {game_pk} at timecode {timecode}.
GET /api/v1/game/{game_pk}/feed/color Get the full color feed of a game · Get game color feed #
Ask an LLM
“Can I get the complete color feed of a game for replay?”
“Is the color feed compressed or can I get it as a diff?”
Tell an agent
Get the color feed for game {game_pk}.
Show the full color feed of game {game_pk} with fields {fields}.
GET /api/v1/game/{game_pk}/feed/color/timestamps List timestamps for a game's color feed · Retrieve all of the color timestamps for a game #
Ask an LLM
“Which timestamps can I use to replay a game's color feed?”
“What timecodes does the color feed support for diffs?”
Tell an agent
List the color feed timestamps for game {game_pk}.
Get every timecode available for replaying game {game_pk}'s color feed.
GET /api/v1/game/{game_pk}/content Get a game's highlights and media · Retrieve all content for a game #
Ask an LLM
“Where can I find the highlights and media for a game?”
“Can I limit how many highlights a game returns?”
Tell an agent
Get the highlights and media for game {game_pk}.
Show {highlightLimit} highlights for game {game_pk}.
GET /api/v1/game/{game_pk}/boxscore Get a game's boxscore · Get game boxscore #
Ask an LLM
“What are the final boxscore stats for a game?”
“Can I get the boxscore snapshot at a given timecode?”
Tell an agent
Get the boxscore for game {game_pk}.
Show the boxscore of game {game_pk} at timecode {timecode}.
GET /api/v1/game/{gamePk}/withMetrics Get a game with its metrics · Get game info with metrics #
Ask an LLM
“Can I get a game's metrics along with its basic info?”
“What metrics are included when I fetch a game with metrics?”
Tell an agent
Get game {gamePk} with its metrics.
Show the metrics for game {gamePk} at timecode {timecode}.
GET /api/v1/game/{gamePk}/winProbability Get a game's win probability · Get the win probability for this game #
Ask an LLM
“What is the win probability for a team at a given moment?”
“Can I get win probability snapshots at specific timecodes?”
Tell an agent
Get the win probability for game {gamePk}.
Show win probability for game {gamePk} at timecode {timecode}.
GET /api/v1/game/{gamePk}/contextMetrics Get context metrics for a game's current state · Get the context metrics for this game based on its current state #
Ask an LLM
“What context metrics describe a game's current state?”
“Can I get context metrics for a game at a specific timecode?”
Tell an agent
Get the context metrics for game {gamePk}.
Show context metrics for game {gamePk} at timecode {timecode}.
GET /api/v1/game/changes View a log of game changes · View a game change log observed #
Ask an LLM
“Which games have changed recently?”
“Can I filter the game change log by season or game type?”
Tell an agent
Show the game change log.
List games changed since {updatedSince} in season {season}.
GET /api/v1.1/game/{game_pk}/feed/live Get live game status · Get live game status #
Ask an LLM
“How do I get the live status of a game as it happens?”
“Can I get live status snapshots at specific timecodes?”
Tell an agent
Get the live status of game {game_pk}.
Show live status for game {game_pk} at timecode {timecode}.
GET /api/v1.1/game/{game_pk}/feed/live/timestamps List timestamps for a live game feed · Retrieve all of the play timestamps for a game #
Ask an LLM
“Which timestamps can I use to replay a live game feed?”
“What timecodes does the live feed support for diffs?”
Tell an agent
List the live feed timestamps for game {game_pk}.
Get every timecode available for replaying live feed of game {game_pk}.
GET /api/v1.1/game/{game_pk}/feed/live/diffPatch Get a live game's status diff · Get live game status #
Ask an LLM
“How do I compare two game snapshots to see what changed?”
“Can I get only the changes that happened since my last live game fetch?”
Tell an agent
Get the live game diff for game {game_pk}.
Fetch the game status changes on game {game_pk} since timecode {startTimecode}.

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:major-league-baseball-game-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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 (250 KB total) ---
# Full source: https://artifacts.apis.io/major-league-baseball/openapi/major-league-baseball-game-api-openapi.yml