Major League Baseball Person API

Operations pertaining to players

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 10

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 10 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/people/{personId}/stats Get a player's stats for a season · View a players stats #
Ask an LLM
“How do I get a player's stats for a single season?”
“Can I group a player's stats by team or league?”
Tell an agent
Get {stats} stats for player {personId} in season {season}.
Show player {personId}'s {stats} stats grouped by {group} for season {season}.
GET /api/v1/people/{personId}/stats/metrics Get a player's metric log stats · View a players stats #
Ask an LLM
“How do I see a player's metric log stats for a game type?”
“Can I group a player's metric stats by venue?”
Tell an agent
Get metric log stats for player {personId} with {stats} for game type {gameType}.
Show metric stats for player {personId} grouped by {groupBy} for {stats}.
GET /api/v1/people/{personId}/stats/game/{gamePk} Get a player's stats for a specific game · View a players stats #
Ask an LLM
“How do I see a player's stats in a particular game?”
“Can I get a player's stats for a game by its primary key?”
Tell an agent
Get player {personId}'s stats in game {gamePk}.
Show player {personId}'s stats for game {gamePk} grouped by {group}.
GET /api/v1/people/{personId}/stats/game/current Get a player's stats in the current game · View a players stats #
Ask an LLM
“How do I see a player's stats in the game that is currently in progress?”
“Can I get a player's stats for the current game?”
Tell an agent
Get player {personId}'s stats in the current game.
Show player {personId}'s stats for the game that is currently in progress.
GET /api/v1/people/{personId}/awards Get a player's awards · View a players awards #
Ask an LLM
“Which awards has a player won?”
“Can I see a player's award history?”
Tell an agent
Get the awards for player {personId}.
Show player {personId}'s award history.
GET /api/v1/people/{personId} Get a player's biographical information · View a person(s) biographical information #
Ask an LLM
“How do I get a player's biographical information by ID?”
“Can I get a player's name with or without accents?”
Tell an agent
Get the biographical information for player {personId}.
Show player {personId}'s biographical info with accents set to {accent}.
GET /api/v1/people Get a player, coach or umpire's bio · View a person(s) biographical information #
Ask an LLM
“How do I look up the bio and stats for a player by ID?”
“Can I get several players' bios and stats at once by their IDs?”
Tell an agent
Get the biographical info for baseball person {personId}.
Look up people {personIds} with their stats for {season}.
GET /api/v1/people/freeAgents Get free agents for a season · Get free agents #
Ask an LLM
“Who are the free agents available for the current season?”
“Can I sort free agents by order?”
Tell an agent
Get free agents for season {season}.
List free agents for {season} ordered {order}.
GET /api/v1/people/changes View the player change log · View a players change log #
Ask an LLM
“How do I see which player records changed recently?”
“Can I get the player change log since a date?”
Tell an agent
Show the player change log updated since {updatedSince}.
Get player record changes since {updatedSince}.

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-person-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-person-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stats API Documentation Person 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 (253 KB total) ---
# Full source: https://artifacts.apis.io/major-league-baseball/openapi/major-league-baseball-person-api-openapi.yml