Major League Baseball Config API

Config elements

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).

Operations 49

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 49 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 47 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/v1/jobTypes List job types · List all job types observed #
Ask an LLM
“What job types does the Stats API define?”
“Can I limit the job types response to just certain fields?”
Tell an agent
Fetch the full job type list.
Fetch job types, returning only the fields {fields}.
POST /api/v1/jobTypes Update job types · Update job types #
Ask an LLM
“How do I change the job types used for tracking?”
“Can I overwrite the job type list?”
Tell an agent
Update the job types.
Replace the job type list with these new types.
GET /api/v1/gameStatus List game status types · List all status types observed #
Ask an LLM
“What game statuses can a game be in?”
“Which status types are available for games?”
Tell an agent
List all game status types.
Show the available game statuses.
POST /api/v1/gameStatus Clear all game status types · Clear all status types #
Ask an LLM
“Can I clear the game status types?”
“Is there a way to reset game statuses to nothing?”
Tell an agent destructive · confirm first
Clear all game status types.
Reset the game status list.
GET /api/v1/windDirection List wind direction options · List all wind direction options observed #
Ask an LLM
“What wind direction options can a game record?”
“Can I trim the wind direction list to specific fields?”
Tell an agent
Fetch the wind direction options.
Fetch wind direction options, returning only the fields {fields}.
GET /api/v1/weatherTrajectoryConfidences List weather trajectory options · List all weather trajectories observed #
Ask an LLM
“What weather trajectory confidence options exist?”
“Which wind trajectory confidences can I set?”
Tell an agent
List all weather trajectory options.
Show weather trajectory confidences.
GET /api/v1/violationTypes List violation types · View available violationType options observed #
Ask an LLM
“What violation types are available?”
“Which violation types can I filter on?”
Tell an agent
List all violation types.
Show the available violation types.
GET /api/v1/transactionTypes List hit trajectory options · List all hit trajectories observed #
Ask an LLM
“What hit trajectory options exist?”
“Which trajectory types can I choose for a hit?”
Tell an agent
List all hit trajectory options.
Show hit trajectory confidences.
GET /api/v1/trackingVersions List tracking versions · List all tracking versions observed #
Ask an LLM
“Which tracking versions are available?”
“What tracking software versions can I use?”
Tell an agent
List all tracking versions.
Show the available tracking versions.
GET /api/v1/trackingVendors List tracking vendors · List all tracking vendors observed #
Ask an LLM
“Which tracking vendors are supported?”
“What tracking vendors can I select from?”
Tell an agent
List all tracking vendors.
Show the supported tracking vendors.
GET /api/v1/stats/search/stats List stats available to stat search · List stat search stats observed #
Ask an LLM
“Which stats can I search on in stat search?”
“Can I narrow the stat search stats list by filter category?”
Tell an agent
List every stat that stat search supports.
List the stats available to stat search for filter categories {categories}.
GET /api/v1/stats/search/params List stat search filter parameters · List stat search parameters observed #
Ask an LLM
“What filter parameters does stat search accept?”
“Which stat search parameters belong to a given filter category?”
Tell an agent
List every filter parameter that stat search accepts.
List the stat search filter parameters for categories {categories}.
GET /api/v1/stats/search/groupByTypes List group-by choices for stat search · List groupBy types observed #
Ask an LLM
“What group-by choices does stat search offer?”
“Which ways can I group stat search results within a filter category?”
Tell an agent
List every group-by choice that stat search offers.
List the stat search group-by choices for filter categories {categories}.
GET /api/v1/stats/search/config Get stat search configuration · Stats Search Config Endpoint observed #
Ask an LLM
“What does the stat search configuration contain?”
“Can I get the stat search config for one statistic category?”
Tell an agent
Get the stat search configuration.
Get the stat search configuration for statistic category {stat_group}.
GET /api/v1/statcastPositionTypes List StatCast position types · List all statcast position types observed #
Ask an LLM
“What StatCast position types are available?”
“Which fielding positions does StatCast support?”
Tell an agent
List all StatCast position types.
Show the StatCast position types.
GET /api/v1/statTypes List stat types · List all stat types observed #
Ask an LLM
“What stat types are available?”
“Which stat types can I choose from?”
Tell an agent
List all stat types.
Show the available stat types.
GET /api/v1/statGroups List stat groups · List all stat groups observed #
Ask an LLM
“What stat groups exist?”
“Which stat groups can I filter on?”
Tell an agent
List all stat groups.
Show the available stat groups.
GET /api/v1/statFields List all stat fields · List all stat fields observed #
Ask an LLM
“Which stat fields does the Stats API expose?”
“What field names can I use when working with stats?”
Tell an agent
List every stat field.
Show me the complete set of stat field names.
GET /api/v1/standingsTypes List standings types · List all standings types observed #
Ask an LLM
“What standings types are available?”
“Which standings types can I use for team standings?”
Tell an agent
List all standings types.
Show the available standings types.
GET /api/v1/sortModifiers List sort modifiers for stats · List all stat fields observed #
Ask an LLM
“What sort modifiers exist for stat aggregation?”
“Which sort options can I use for stats?”
Tell an agent
List all sort modifiers.
Show the available stat sort modifiers.
GET /api/v1/sky List sky condition options · List all sky options observed #
Ask an LLM
“What sky conditions can a game record?”
“Can I limit the sky options response to certain fields?”
Tell an agent
Fetch the sky condition options.
Fetch sky condition options, returning only the fields {fields}.
GET /api/v1/situationCodes List situation codes · List all situation codes observed #
Ask an LLM
“What situation codes does the Stats API define?”
“Can I filter situation codes by season or stat category?”
Tell an agent
Fetch all situation codes.
Fetch situation codes for season {season}.
GET /api/v1/scheduleTypes List schedule types · List all possible schedule types observed #
Ask an LLM
“What types of schedules are available?”
“Which schedule types can I use for a season?”
Tell an agent
List all schedule types.
Show the schedule type for a game.
GET /api/v1/scheduleEventTypes List schedule event types · List all event types observed #
Ask an LLM
“What kinds of events can appear on the schedule?”
“Can I limit the schedule event types to selected fields?”
Tell an agent
Fetch the schedule event types.
Fetch schedule event types, returning only the fields {fields}.
GET /api/v1/runnerDetailTypes List runner detail types · List runner detail types observed #
Ask an LLM
“What runner detail types are available?”
“Which runner detail types describe base running?”
Tell an agent
List runner detail types.
Show the runner detail type for a base running play.
GET /api/v1/ruleSettings List rule settings · List all ruleSettings observed #
Ask an LLM
“What rule settings are configured for baseball?”
“Which rule settings apply to a particular season?”
Tell an agent
List all rule settings.
Show the rule settings for a season.
GET /api/v1/rosterTypes List roster types · List all possible roster types observed #
Ask an LLM
“What roster types exist for a team?”
“Which roster types are used for a player's status?”
Tell an agent
List roster types.
Show the roster type for a player.
GET /api/v1/roofTypes List roof types · List all roof types observed #
Ask an LLM
“What roof types do stadiums have?”
“Which roof types are retractable?”
Tell an agent
List roof types.
Show the roof type for a stadium.
GET /api/v1/reviewReasons List replay review reasons · List all replay review reasons observed #
Ask an LLM
“What reasons can be given for a replay review?”
“Can I get just selected fields of the replay review reasons?”
Tell an agent
Fetch the replay review reasons.
Fetch replay review reasons, returning only the fields {fields}.
GET /api/v1/positions List player positions · List all possible positions observed #
Ask an LLM
“What positions do players play?”
“Which positions are available for a player?”
Tell an agent
List all player positions.
Show the position for a player.
GET /api/v1/playerStatusCodes List player status codes · List all player status codes observed #
Ask an LLM
“What player status codes exist?”
“Which status codes describe a player's availability?”
Tell an agent
List player status codes.
Show the player status code for a player.
GET /api/v1/platforms List supported platforms · List all possible platforms observed #
Ask an LLM
“Which platforms support baseball stats?”
“What platform codes are available?”
Tell an agent
List supported platforms.
Show the platform code for a stats feed.
GET /api/v1/pitchTypes List pitch classification types · List all pitch classification types observed #
Ask an LLM
“What pitch classifications are used in baseball?”
“Which pitch types are available for a season?”
Tell an agent
List pitch classification types.
Show the pitch type for a pitch.
GET /api/v1/pitchCodes List pitch codes · List all pitch codes observed #
Ask an LLM
“What pitch codes does the Stats API use?”
“Can I restrict the pitch codes response to certain fields?”
Tell an agent
Fetch the pitch codes.
Fetch pitch codes, returning only the fields {fields}.
GET /api/v1/performerTypes List performer types · List all possible performer types observed #
Ask an LLM
“What performer types are available?”
“Which performer types describe a player's role?”
Tell an agent
List performer types.
Show the performer type for a player.
GET /api/v1/metrics List possible metrics · List all possible metrics observed #
Ask an LLM
“What metrics can I track for a player?”
“Which metrics are available for a season?”
Tell an agent
List possible metrics.
Show the metric for a player stat.
GET /api/v1/lookup/values/all View all lookup values · View all lookup values observed #
Ask an LLM
“What lookup values are available across the API?”
“Can I see every lookup value at once?”
Tell an agent
View all lookup values.
Show every lookup value in the API.
GET /api/v1/logicalEvents List logical event types · List all logical event types observed #
Ask an LLM
“What logical event types exist?”
“Which logical event types describe a play?”
Tell an agent
List logical event types.
Show the logical event type for a play.
GET /api/v1/leagueLeaderTypes List league leader types · List all possible player league leader types observed #
Ask an LLM
“What league leader types are available?”
“Which league leader types rank players?”
Tell an agent
List league leader types.
Show the league leader type for a player.
GET /api/v1/languages List supported languages · List all support languages observed #
Ask an LLM
“Which languages are supported for stats?”
“What language codes are available?”
Tell an agent
List supported languages.
Show the language code for a stats feed.
GET /api/v1/hitTrajectories List hit trajectories · List all hit trajectories observed #
Ask an LLM
“What trajectories can a batted ball be classified as?”
“Can I limit hit trajectories to certain fields?”
Tell an agent
Fetch the hit trajectory values.
Fetch hit trajectories, returning only the fields {fields}.
GET /api/v1/groupByTypes List groupBy types for stats · List groupBy types observed #
Ask an LLM
“What groupBy types can I use to aggregate baseball stats?”
“Which grouping options exist for stat queries?”
Tell an agent
List the groupBy types for stats.
Show every grouping option for baseball stat aggregation.
GET /api/v1/gamedayTypes List gameday types · List all gameday types observed #
Ask an LLM
“What gameday types does the Stats API define?”
“Can I get only certain fields of the gameday types?”
Tell an agent
Fetch the gameday types.
Fetch gameday types, returning only the fields {fields}.
GET /api/v1/gameTypes List game types · List all game types observed #
Ask an LLM
“What game types exist, such as regular season or postseason?”
“Can I filter game types by sport, league or season?”
Tell an agent
Fetch all game types.
Fetch game types for sport {sport_id}.
GET /api/v1/fielderDetailTypes List fielder detail types · List fielder detail types observed #
Ask an LLM
“What fielder detail types are available for defensive stats?”
“Which defensive detail types can I use?”
Tell an agent
List the fielder detail types.
Show every defensive detail type.
GET /api/v1/eventTypes List all event types · List all event types observed #
Ask an LLM
“What event types does the Stats API define?”
“Can I limit the event types response to only certain fields?”
Tell an agent
List all event types.
List all event types, returning only these fields: {fields}.
GET /api/v1/eventStatus List event status types · List all possible event status types observed #
Ask an LLM
“What event status types exist for baseball games?”
“Which statuses can a game event be in?”
Tell an agent
List all event status types.
Show every game event status.
GET /api/v1/coachingVideoTypes List tracking vendors for coaching video · List all tracking vendors observed #
Ask an LLM
“Which tracking vendors provide coaching video data?”
“What video tracking vendors are available?”
Tell an agent
List the tracking vendors for coaching video.
Show every video tracking vendor.
GET /api/v1/baseballStats List baseball stat types · List all baseball stats observed #
Ask an LLM
“Which baseball stat types are available?”
“What stat categories can I query?”
Tell an agent
List all baseball stat types.
Show every baseball stat category.

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