Major League Baseball Teams API

Operations pertaining to teams

Operations 16

GET /api/v1/teams/{teamId}/alumni View all team alumni #
POST /api/v1/teams/{teamId}/alumni Update alumni #
GET /api/v1/teams/{teamId}/stats View stats for an individual team #
GET /api/v1/teams/{teamId}/roster View a teams info #
GET /api/v1/teams/{teamId}/roster/{rosterType} View a teams info #
GET /api/v1/teams/{teamId}/personnel View all coaches for a team #
GET /api/v1/teams/{teamId}/leaders View team stat leaders #
GET /api/v1/teams/{teamId}/history View historical records for a list of teams #
GET /api/v1/teams/history View historical records for a list of teams #
GET /api/v1/teams/{teamId}/coaches View all coaches for a team #
GET /api/v1/teams/{teamId}/affiliates View team and affiliate teams #
GET /api/v1/teams/affiliates View team and affiliate teams #
GET /api/v1/teams/stats View a teams stats #
GET /api/v1/teams/stats/leaders View leaders for team stats #
GET /api/v1/teams View info for all teams #
GET /api/v1/teams/{teamId} View info for all teams #

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-teams-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-teams-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stats API Documentation Teams 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 (263 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/major-league-baseball/refs/heads/main/openapi/major-league-baseball-teams-api-openapi.yml