Major League Baseball · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Documentation Stats API

10 actions 10 updates phrasing extends openapi/major-league-baseball-stats-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Major League Baseball's API. It is a proposal applied on top of the contract, not a document Major League Baseball publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 10

$.info
$.paths['/api/v1/stats'].get
$.paths['/api/v1/stats/search'].get
$.paths['/api/v1/stats/metrics'].get
$.paths['/api/v1/stats/leaders'].get
$.paths['/api/v1/stats/grouped'].get
$.paths['/api/v1/stats/analytics/stolenBaseProbability'].get
$.paths['/api/v1/stats/analytics/sprayChart'].get
$.paths['/api/v1/stats/analytics/outsAboveAverage'].get
$.paths['/api/v1/stats/analytics/homeRunBallparkCount'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Documentation Stats API
  version: 1.0.0
extends: openapi/major-league-baseball-stats-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-20'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 9
- target: $.paths['/api/v1/stats'].get
  update:
    x-apievangelist-phrasing:
      intent: Get player and team stats
      effect: read
      questions:
      - How do I get a player's batting average for a season?
      - Can I get team stats grouped by game type?
      instructions:
      - text: Get {stats} stats for player {personId} in {group} for {season}.
        slots:
          stats: query.stats
          personId: query.personId
          group: query.group
          season: query.season
      - text: Get {stats} stats for team {teamId} in {group} for {season}.
        slots:
          stats: query.stats
          teamId: query.teamId
          group: query.group
          season: query.season
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/search'].get
  update:
    x-apievangelist-phrasing:
      intent: Search plays by event or pitch
      effect: read
      questions:
      - Can I find every home run hit by a right-handed batter?
      - Which pitches were thrown at a certain exit velocity?
      instructions:
      - text: Search plays with event type {eventTypes} in {group}.
        slots:
          eventTypes: query.eventTypes
          group: query.group
      - text: Find pitches thrown by {pitcherIds} with exit velocity against {maxExitVelocityAgainst}.
        slots:
          pitcherIds: query.pitcherIds
          maxExitVelocityAgainst: query.maxExitVelocityAgainst
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/metrics'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a player's metric stats
      effect: read
      questions:
      - What is a player's exit velocity and launch angle for a season?
      - Can I get a pitcher's spin rate metrics?
      instructions:
      - text: Get {metrics} metrics for player {personId} in {group} for {season}.
        slots:
          metrics: query.metrics
          personId: query.personId
          group: query.group
          season: query.season
      - text: Show {metrics} stats for batter {batterId} in {stats}.
        slots:
          metrics: query.metrics
          batterId: query.batterId
          stats: query.stats
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/leaders'].get
  update:
    x-apievangelist-phrasing:
      intent: Get leaders for a stat
      effect: read
      questions:
      - Who leads the league in home runs this season?
      - Can I get the top leaders for a stat by game type?
      instructions:
      - text: Get the leaders for {leaderCategories} in {statGroup} for {season}.
        slots:
          leaderCategories: query.leaderCategories
          statGroup: query.statGroup
          season: query.season
      - text: Show top {limit} leaders for {stats} by game type {leaderGameTypes}.
        slots:
          limit: query.limit
          stats: query.stats
          leaderGameTypes: query.leaderGameTypes
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/grouped'].get
  update:
    x-apievangelist-phrasing:
      intent: Get grouped baseball stats
      effect: read
      questions:
      - How do I get a player's batting average against a certain pitcher?
      - Can I see a team's stats split by opponent?
      - What stats can I pull for a player across a date range?
      instructions:
      - text: Get {stats} stats for player {personId} grouped by {group}.
        slots:
          stats: query.stats
          personId: query.personId
          group: query.group
      - text: Show {stats} stats for team {teamId} against opponent {opposingTeamId}, split by {group}.
        slots:
          stats: query.stats
          teamId: query.teamId
          opposingTeamId: query.opposingTeamId
          group: query.group
      - text: Get {stats} stats for season {season} for batter {batterId} against pitcher {pitcherId}, grouped by {group}.
        slots:
          stats: query.stats
          season: query.season
          batterId: query.batterId
          pitcherId: query.pitcherId
          group: query.group
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/analytics/stolenBaseProbability'].get
  update:
    x-apievangelist-phrasing:
      intent: Get stolen base probability for a play
      effect: read
      questions:
      - What is the probability a runner stole a base in a given play?
      - Can I get stolen base probability for a timecode in a game?
      instructions:
      - text: Get stolen base probability for play {gamePk}.
        slots:
          gamePk: query.gamePk
      - text: Calculate stolen base probability for timecode {timecode} in game {gamePk}.
        slots:
          timecode: query.timecode
          gamePk: query.gamePk
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/analytics/sprayChart'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a batter's spray chart
      effect: read
      questions:
      - Where does a batter hit the ball most often?
      - Can I get a spray chart for a batter in a game?
      instructions:
      - text: Get the spray chart for batter {gamePk}.
        slots:
          gamePk: query.gamePk
      - text: Show spray chart for batter {gamePk} with fields {fields}.
        slots:
          gamePk: query.gamePk
          fields: query.fields
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/analytics/outsAboveAverage'].get
  update:
    x-apievangelist-phrasing:
      intent: Get outs above average for a play
      effect: read
      questions:
      - How many outs above average did a batter produce in a game?
      - Can I get outs above average for a timecode?
      instructions:
      - text: Get outs above average for play {gamePk}.
        slots:
          gamePk: query.gamePk
      - text: Calculate outs above average for timecode {timecode} in game {gamePk}.
        slots:
          timecode: query.timecode
          gamePk: query.gamePk
      method: generated
      generated: '2026-11-20'
- target: $.paths['/api/v1/stats/analytics/homeRunBallparkCount'].get
  update:
    x-apievangelist-phrasing:
      intent: Count home runs hit at a ballpark
      effect: read
      questions:
      - How many home runs were hit at a ballpark for a given spray angle and distance?
      - Can I get home run counts for a ballpark in a season?
      instructions:
      - text: Count home runs at ballpark {venueId} for spray angle {sprayAngle} and distance {distance}.
        slots:
          venueId: query.venueId
          sprayAngle: query.sprayAngle
          distance: query.distance
      - text: Get home run counts at {venueId} for {sprayAngle}, {distance} and home run {isHomeRun} in {season}.
        slots:
          venueId: query.venueId
          sprayAngle: query.sprayAngle
          distance: query.distance
          isHomeRun: query.isHomeRun
          season: query.season
      method: generated
      generated: '2026-11-20'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/major-league-baseball-stats-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.