OpenAny
Get API keyAPI Key
APIData

mlb-stats logo
MLB Teams API

List MLB and minor-league baseball clubs by season, league and sport level via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, and retrieve structured data including number of clubs returned, numeric team identifier, official full club name, club abbreviation code, and active club status flag to build team id lookup tables, map minor-league farm systems, and compare historical franchise alignments.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

MLB Teams API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
MLB Teams API

MLB Teams API

Retrieve club directories with optional season (teams as they existed in that year), league (al or nl) and sport_id (1 MLB default, 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international). Returned teams[] include IDs, abbreviations, divisions, leagues, venues and parent organizations.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Optional query: season, league (al or nl), sport_id (1 MLB default, 11–17 minor/winter, 51 international), raw=0, fields and fresh=1.
Selected implementation apish · MLB teams (and minor-league clubs) API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Build team ID lookup tables: Fetch teams[].id and teams[].abbreviation once to validate inputs for roster, schedule and transaction calls.
  • Map minor-league farm systems: Query sport_id=11 through 16 and inspect parent_org to connect affiliates to their MLB parent clubs.
  • Compare historical franchise alignments: Pass a past season year to see clubs, venues and divisions as they stood in that season.

Returned Data

Field Meaning
count Number of clubs returned
teams[].id Numeric team identifier
teams[].name Official full club name
teams[].abbreviation Club abbreviation code
teams[].active Active club status flag
teams[].division.name Division name
teams[].league.name League name
teams[].venue.name Home ballpark name
teams[].sport_id Competition level identifier
teams[].location Club city or location name

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/mlb/v1/teams \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode raw=0

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published MLB Teams API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (8)
Season year (teams as they were that season).
al or nl.
Level: 1 MLB (default), 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
MLB teams (and minor-league clubs) API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/mlb/v1/teams
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
seasonURL query parametersquerystringNo

Season year (teams as they were that season).

leagueURL query parametersquerystringNo

al or nl.

enum: "al", "nl"

sport_idURL query parametersquerystringNo

Level: 1 MLB (default), 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international.

enum: "1", "11", "12", "13", "14", "16", "17", "21", "22", "23", "51", "586"

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • applied_filtersobject
    • leaguenull
    • seasonnull
    • sport_idinteger
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • fetched_atstring
  • teamsobject[]
    • abbreviationstring
    • activeboolean
    • club_namestring
    • divisionobject
      • idinteger
      • namestring
    • first_yearinteger
    • franchise_namestring
    • idinteger
    • leagueobject
      • idinteger
      • namestring
    • locationstring
    • logostring
    • namestring
    • parent_orgnull
    • seasoninteger
    • short_namestring
    • sport_idinteger
    • spring_leaguestring
    • spring_venueinteger
    • team_namestring
    • venueobject
      • idinteger
      • namestring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 8

    Review these request fields before running. Keep the published provider and request method unchanged.

    season
    Season year (teams as they were that season).
    league
    al or nl.
    sport_id
    Level: 1 MLB (default), 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international.
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/mlb/v1/teams?output=json&raw=0' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "applied_filters": {
        "league": null,
        "season": null,
        "sport_id": 1
      },
      "cached": false,
      "count": 30,
      "credits_used": 1,
      "fetched_at": "2026-11-19T12:22:11.080Z",
      "teams": [
        {
          "abbreviation": "AZ",
          "active": true,
          "club_name": "Diamondbacks",
          "division": {
            "id": 203,
            "name": "National League West"
          },
          "first_year": 1996,
          "franchise_name": "Arizona",
          "id": 109,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Phoenix",
          "logo": "https://www.mlbstatic.com/team-logos/109.svg",
          "name": "Arizona Diamondbacks",
          "parent_org": null,
          "season": 2026,
          "short_name": "Arizona",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 4249,
          "team_name": "D-backs",
          "venue": {
            "id": 15,
            "name": "Chase Field"
          }
        },
        {
          "abbreviation": "ATH",
          "active": true,
          "club_name": "Athletics",
          "division": {
            "id": 200,
            "name": "American League West"
          },
          "first_year": 1901,
          "franchise_name": "Athletics",
          "id": 133,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Sacramento",
          "logo": "https://www.mlbstatic.com/team-logos/133.svg",
          "name": "Athletics",
          "parent_org": null,
          "season": 2026,
          "short_name": "Athletics",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2507,
          "team_name": "Athletics",
          "venue": {
            "id": 2529,
            "name": "Sutter Health Park"
          }
        },
        {
          "abbreviation": "ATL",
          "active": true,
          "club_name": "Braves",
          "division": {
            "id": 204,
            "name": "National League East"
          },
          "first_year": 1871,
          "franchise_name": "Atlanta",
          "id": 144,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Atlanta",
          "logo": "https://www.mlbstatic.com/team-logos/144.svg",
          "name": "Atlanta Braves",
          "parent_org": null,
          "season": 2026,
          "short_name": "Atlanta",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 5380,
          "team_name": "Braves",
          "venue": {
            "id": 4705,
            "name": "Truist Park"
          }
        },
        {
          "abbreviation": "BAL",
          "active": true,
          "club_name": "Orioles",
          "division": {
            "id": 201,
            "name": "American League East"
          },
          "first_year": 1901,
          "franchise_name": "Baltimore",
          "id": 110,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Baltimore",
          "logo": "https://www.mlbstatic.com/team-logos/110.svg",
          "name": "Baltimore Orioles",
          "parent_org": null,
          "season": 2026,
          "short_name": "Baltimore",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2508,
          "team_name": "Orioles",
          "venue": {
            "id": 2,
            "name": "Oriole Park at Camden Yards"
          }
        },
        {
          "abbreviation": "BOS",
          "active": true,
          "club_name": "Red Sox",
          "division": {
            "id": 201,
            "name": "American League East"
          },
          "first_year": 1901,
          "franchise_name": "Boston",
          "id": 111,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Boston",
          "logo": "https://www.mlbstatic.com/team-logos/111.svg",
          "name": "Boston Red Sox",
          "parent_org": null,
          "season": 2026,
          "short_name": "Boston",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 4309,
          "team_name": "Red Sox",
          "venue": {
            "id": 3,
            "name": "Fenway Park"
          }
        },
        {
          "abbreviation": "CHC",
          "active": true,
          "club_name": "Cubs",
          "division": {
            "id": 205,
            "name": "National League Central"
          },
          "first_year": 1874,
          "franchise_name": "Chicago",
          "id": 112,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Chicago",
          "logo": "https://www.mlbstatic.com/team-logos/112.svg",
          "name": "Chicago Cubs",
          "parent_org": null,
          "season": 2026,
          "short_name": "Chi Cubs",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 4629,
          "team_name": "Cubs",
          "venue": {
            "id": 17,
            "name": "Wrigley Field"
          }
        },
        {
          "abbreviation": "CWS",
          "active": true,
          "club_name": "White Sox",
          "division": {
            "id": 202,
            "name": "American League Central"
          },
          "first_year": 1901,
          "franchise_name": "Chicago",
          "id": 145,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Chicago",
          "logo": "https://www.mlbstatic.com/team-logos/145.svg",
          "name": "Chicago White Sox",
          "parent_org": null,
          "season": 2026,
          "short_name": "Chi White Sox",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 3809,
          "team_name": "White Sox",
          "venue": {
            "id": 4,
            "name": "Rate Field"
          }
        },
        {
          "abbreviation": "CIN",
          "active": true,
          "club_name": "Reds",
          "division": {
            "id": 205,
            "name": "National League Central"
          },
          "first_year": 1882,
          "franchise_name": "Cincinnati",
          "id": 113,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Cincinnati",
          "logo": "https://www.mlbstatic.com/team-logos/113.svg",
          "name": "Cincinnati Reds",
          "parent_org": null,
          "season": 2026,
          "short_name": "Cincinnati",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 3834,
          "team_name": "Reds",
          "venue": {
            "id": 2602,
            "name": "Great American Ball Park"
          }
        },
        {
          "abbreviation": "CLE",
          "active": true,
          "club_name": "Guardians",
          "division": {
            "id": 202,
            "name": "American League Central"
          },
          "first_year": 1901,
          "franchise_name": "Cleveland",
          "id": 114,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Cleveland",
          "logo": "https://www.mlbstatic.com/team-logos/114.svg",
          "name": "Cleveland Guardians",
          "parent_org": null,
          "season": 2026,
          "short_name": "Cleveland",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 3834,
          "team_name": "Guardians",
          "venue": {
            "id": 5,
            "name": "Progressive Field"
          }
        },
        {
          "abbreviation": "COL",
          "active": true,
          "club_name": "Rockies",
          "division": {
            "id": 203,
            "name": "National League West"
          },
          "first_year": 1992,
          "franchise_name": "Colorado",
          "id": 115,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Denver",
          "logo": "https://www.mlbstatic.com/team-logos/115.svg",
          "name": "Colorado Rockies",
          "parent_org": null,
          "season": 2026,
          "short_name": "Colorado",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 4249,
          "team_name": "Rockies",
          "venue": {
            "id": 19,
            "name": "Coors Field"
          }
        },
        {
          "abbreviation": "DET",
          "active": true,
          "club_name": "Tigers",
          "division": {
            "id": 202,
            "name": "American League Central"
          },
          "first_year": 1901,
          "franchise_name": "Detroit",
          "id": 116,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Detroit",
          "logo": "https://www.mlbstatic.com/team-logos/116.svg",
          "name": "Detroit Tigers",
          "parent_org": null,
          "season": 2026,
          "short_name": "Detroit",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2511,
          "team_name": "Tigers",
          "venue": {
            "id": 2394,
            "name": "Comerica Park"
          }
        },
        {
          "abbreviation": "HOU",
          "active": true,
          "club_name": "Astros",
          "division": {
            "id": 200,
            "name": "American League West"
          },
          "first_year": 1962,
          "franchise_name": "Houston",
          "id": 117,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Houston",
          "logo": "https://www.mlbstatic.com/team-logos/117.svg",
          "name": "Houston Astros",
          "parent_org": null,
          "season": 2026,
          "short_name": "Houston",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 5000,
          "team_name": "Astros",
          "venue": {
            "id": 2392,
            "name": "Daikin Park"
          }
        },
        {
          "abbreviation": "KC",
          "active": true,
          "club_name": "Royals",
          "division": {
            "id": 202,
            "name": "American League Central"
          },
          "first_year": 1968,
          "franchise_name": "Kansas City",
          "id": 118,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Kansas City",
          "logo": "https://www.mlbstatic.com/team-logos/118.svg",
          "name": "Kansas City Royals",
          "parent_org": null,
          "season": 2026,
          "short_name": "Kansas City",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2603,
          "team_name": "Royals",
          "venue": {
            "id": 7,
            "name": "Kauffman Stadium"
          }
        },
        {
          "abbreviation": "LAA",
          "active": true,
          "club_name": "Angels",
          "division": {
            "id": 200,
            "name": "American League West"
          },
          "first_year": 1961,
          "franchise_name": "Los Angeles",
          "id": 108,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Anaheim",
          "logo": "https://www.mlbstatic.com/team-logos/108.svg",
          "name": "Los Angeles Angels",
          "parent_org": null,
          "season": 2026,
          "short_name": "LA Angels",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2500,
          "team_name": "Angels",
          "venue": {
            "id": 1,
            "name": "Angel Stadium"
          }
        },
        {
          "abbreviation": "LAD",
          "active": true,
          "club_name": "Dodgers",
          "division": {
            "id": 203,
            "name": "National League West"
          },
          "first_year": 1884,
          "franchise_name": "Los Angeles",
          "id": 119,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Los Angeles",
          "logo": "https://www.mlbstatic.com/team-logos/119.svg",
          "name": "Los Angeles Dodgers",
          "parent_org": null,
          "season": 2026,
          "short_name": "LA Dodgers",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 3809,
          "team_name": "Dodgers",
          "venue": {
            "id": 22,
            "name": "UNIQLO Field at Dodger Stadium"
          }
        },
        {
          "abbreviation": "MIA",
          "active": true,
          "club_name": "Marlins",
          "division": {
            "id": 204,
            "name": "National League East"
          },
          "first_year": 1991,
          "franchise_name": "Miami",
          "id": 146,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Miami",
          "logo": "https://www.mlbstatic.com/team-logos/146.svg",
          "name": "Miami Marlins",
          "parent_org": null,
          "season": 2026,
          "short_name": "Miami",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2520,
          "team_name": "Marlins",
          "venue": {
            "id": 4169,
            "name": "loanDepot park"
          }
        },
        {
          "abbreviation": "MIL",
          "active": true,
          "club_name": "Brewers",
          "division": {
            "id": 205,
            "name": "National League Central"
          },
          "first_year": 1968,
          "franchise_name": "Milwaukee",
          "id": 158,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Milwaukee",
          "logo": "https://www.mlbstatic.com/team-logos/158.svg",
          "name": "Milwaukee Brewers",
          "parent_org": null,
          "season": 2026,
          "short_name": "Milwaukee",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2518,
          "team_name": "Brewers",
          "venue": {
            "id": 32,
            "name": "American Family Field"
          }
        },
        {
          "abbreviation": "MIN",
          "active": true,
          "club_name": "Twins",
          "division": {
            "id": 202,
            "name": "American League Central"
          },
          "first_year": 1901,
          "franchise_name": "Minnesota",
          "id": 142,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Minneapolis",
          "logo": "https://www.mlbstatic.com/team-logos/142.svg",
          "name": "Minnesota Twins",
          "parent_org": null,
          "season": 2026,
          "short_name": "Minnesota",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2862,
          "team_name": "Twins",
          "venue": {
            "id": 3312,
            "name": "Target Field"
          }
        },
        {
          "abbreviation": "NYM",
          "active": true,
          "club_name": "Mets",
          "division": {
            "id": 204,
            "name": "National League East"
          },
          "first_year": 1962,
          "franchise_name": "New York",
          "id": 121,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Flushing",
          "logo": "https://www.mlbstatic.com/team-logos/121.svg",
          "name": "New York Mets",
          "parent_org": null,
          "season": 2026,
          "short_name": "NY Mets",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2856,
          "team_name": "Mets",
          "venue": {
            "id": 3289,
            "name": "Citi Field"
          }
        },
        {
          "abbreviation": "NYY",
          "active": true,
          "club_name": "Yankees",
          "division": {
            "id": 201,
            "name": "American League East"
          },
          "first_year": 1903,
          "franchise_name": "New York",
          "id": 147,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Bronx",
          "logo": "https://www.mlbstatic.com/team-logos/147.svg",
          "name": "New York Yankees",
          "parent_org": null,
          "season": 2026,
          "short_name": "NY Yankees",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2523,
          "team_name": "Yankees",
          "venue": {
            "id": 3313,
            "name": "Yankee Stadium"
          }
        },
        {
          "abbreviation": "PHI",
          "active": true,
          "club_name": "Phillies",
          "division": {
            "id": 204,
            "name": "National League East"
          },
          "first_year": 1883,
          "franchise_name": "Philadelphia",
          "id": 143,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Philadelphia",
          "logo": "https://www.mlbstatic.com/team-logos/143.svg",
          "name": "Philadelphia Phillies",
          "parent_org": null,
          "season": 2026,
          "short_name": "Philadelphia",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2700,
          "team_name": "Phillies",
          "venue": {
            "id": 2681,
            "name": "Citizens Bank Park"
          }
        },
        {
          "abbreviation": "PIT",
          "active": true,
          "club_name": "Pirates",
          "division": {
            "id": 205,
            "name": "National League Central"
          },
          "first_year": 1882,
          "franchise_name": "Pittsburgh",
          "id": 134,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Pittsburgh",
          "logo": "https://www.mlbstatic.com/team-logos/134.svg",
          "name": "Pittsburgh Pirates",
          "parent_org": null,
          "season": 2026,
          "short_name": "Pittsburgh",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2526,
          "team_name": "Pirates",
          "venue": {
            "id": 31,
            "name": "PNC Park"
          }
        },
        {
          "abbreviation": "SD",
          "active": true,
          "club_name": "Padres",
          "division": {
            "id": 203,
            "name": "National League West"
          },
          "first_year": 1968,
          "franchise_name": "San Diego",
          "id": 135,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "San Diego",
          "logo": "https://www.mlbstatic.com/team-logos/135.svg",
          "name": "San Diego Padres",
          "parent_org": null,
          "season": 2026,
          "short_name": "San Diego",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2530,
          "team_name": "Padres",
          "venue": {
            "id": 2680,
            "name": "Petco Park"
          }
        },
        {
          "abbreviation": "SF",
          "active": true,
          "club_name": "Giants",
          "division": {
            "id": 203,
            "name": "National League West"
          },
          "first_year": 1883,
          "franchise_name": "San Francisco",
          "id": 137,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "San Francisco",
          "logo": "https://www.mlbstatic.com/team-logos/137.svg",
          "name": "San Francisco Giants",
          "parent_org": null,
          "season": 2026,
          "short_name": "San Francisco",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2532,
          "team_name": "Giants",
          "venue": {
            "id": 2395,
            "name": "Oracle Park"
          }
        },
        {
          "abbreviation": "SEA",
          "active": true,
          "club_name": "Mariners",
          "division": {
            "id": 200,
            "name": "American League West"
          },
          "first_year": 1977,
          "franchise_name": "Seattle",
          "id": 136,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Seattle",
          "logo": "https://www.mlbstatic.com/team-logos/136.svg",
          "name": "Seattle Mariners",
          "parent_org": null,
          "season": 2026,
          "short_name": "Seattle",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2530,
          "team_name": "Mariners",
          "venue": {
            "id": 680,
            "name": "T-Mobile Park"
          }
        },
        {
          "abbreviation": "STL",
          "active": true,
          "club_name": "Cardinals",
          "division": {
            "id": 205,
            "name": "National League Central"
          },
          "first_year": 1892,
          "franchise_name": "St. Louis",
          "id": 138,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "St. Louis",
          "logo": "https://www.mlbstatic.com/team-logos/138.svg",
          "name": "St. Louis Cardinals",
          "parent_org": null,
          "season": 2026,
          "short_name": "St. Louis",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2520,
          "team_name": "Cardinals",
          "venue": {
            "id": 2889,
            "name": "Busch Stadium"
          }
        },
        {
          "abbreviation": "TB",
          "active": true,
          "club_name": "Rays",
          "division": {
            "id": 201,
            "name": "American League East"
          },
          "first_year": 1996,
          "franchise_name": "Tampa Bay",
          "id": 139,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "St. Petersburg",
          "logo": "https://www.mlbstatic.com/team-logos/139.svg",
          "name": "Tampa Bay Rays",
          "parent_org": null,
          "season": 2026,
          "short_name": "Tampa Bay",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2534,
          "team_name": "Rays",
          "venue": {
            "id": 12,
            "name": "Tropicana Field"
          }
        },
        {
          "abbreviation": "TEX",
          "active": true,
          "club_name": "Rangers",
          "division": {
            "id": 200,
            "name": "American League West"
          },
          "first_year": 1961,
          "franchise_name": "Texas",
          "id": 140,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Arlington",
          "logo": "https://www.mlbstatic.com/team-logos/140.svg",
          "name": "Texas Rangers",
          "parent_org": null,
          "season": 2026,
          "short_name": "Texas",
          "sport_id": 1,
          "spring_league": "Cactus League",
          "spring_venue": 2603,
          "team_name": "Rangers",
          "venue": {
            "id": 5325,
            "name": "Globe Life Field"
          }
        },
        {
          "abbreviation": "TOR",
          "active": true,
          "club_name": "Blue Jays",
          "division": {
            "id": 201,
            "name": "American League East"
          },
          "first_year": 1977,
          "franchise_name": "Toronto",
          "id": 141,
          "league": {
            "id": 103,
            "name": "American League"
          },
          "location": "Toronto",
          "logo": "https://www.mlbstatic.com/team-logos/141.svg",
          "name": "Toronto Blue Jays",
          "parent_org": null,
          "season": 2026,
          "short_name": "Toronto",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 2536,
          "team_name": "Blue Jays",
          "venue": {
            "id": 14,
            "name": "Rogers Centre"
          }
        },
        {
          "abbreviation": "WSH",
          "active": true,
          "club_name": "Nationals",
          "division": {
            "id": 204,
            "name": "National League East"
          },
          "first_year": 1968,
          "franchise_name": "Washington",
          "id": 120,
          "league": {
            "id": 104,
            "name": "National League"
          },
          "location": "Washington",
          "logo": "https://www.mlbstatic.com/team-logos/120.svg",
          "name": "Washington Nationals",
          "parent_org": null,
          "season": 2026,
          "short_name": "Washington",
          "sport_id": 1,
          "spring_league": "Grapefruit League",
          "spring_venue": 5000,
          "team_name": "Nationals",
          "venue": {
            "id": 3309,
            "name": "Nationals Park"
          }
        }
      ]
    }

Common questions

Which clubs are returned if I pass no filters?

By default it returns all 30 current MLB clubs (sport_id=1).

How do I list minor-league or winter-league teams?

Set sport_id to 11 (Triple-A), 12 (Double-A), 13 (High-A), 14 (Single-A), 16 (Rookie), 17 (winter leagues) or 51 (international).

Can I filter clubs to the American League or National League?

Yes. Pass league=al or league=nl in the query string.

Does the season parameter return historical club names and venues?

Yes. The season parameter returns teams as they were configured in that season year.

How do I get a single team's recent games and season record?

Take teams[].id or teams[].abbreviation and call the MLB Team Profile API.

How do caching and payload trimming work?

Pass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks and fields to select specific keys.

Use MLB Teams API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.