MLB teams (and minor-league clubs) API
Use the MLB teams (and minor-league clubs) API to retrieve team records, venue information and record identities and titles as structured JSON from MLB Stats. Choose season and league as optional query conditions to select the source records or view required for your request. Use these results to enrich a competitor reference page and connect the player or team with its published sporting record. For league, choose al / nl. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
MLB teams (and minor-league clubs) 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
- Pricing
On this page
Overview
MLB teams (and minor-league clubs) API
Use the MLB teams (and minor-league clubs) API to retrieve team records, venue information and record identities and titles as structured JSON from MLB Stats. Choose season and league as optional query conditions to select the source records or view required for your request. Use these results to enrich a competitor reference page and connect the player or team with its published sporting record. For league, choose al / nl. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
MLB teams (and minor-league clubs) API
Every team of a level: id, names, abbreviation, location, league, division, venue, spring training site, first year and parent organization (for minor-league clubs), with logo link. Use the id or abbreviation with the other routes.
Inputs and results
Send the listed inputs as GET query parameters. This operation has no mandatory query parameters. Supported values, filters and optional identifiers are listed below.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
season | string | Optional | Season year (teams as they were that season). |
league | string | Optional | al or nl. Allowed values: al, nl. |
sport_id | string | Optional | Level: 1 MLB (default), 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international. Allowed values: 1, 11, 12, 13, 14, 16, 17, 21, 22, 23, 51, 586. |
raw | string | Optional | Use 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1. |
fields | string | Optional | Optional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained. |
fresh | string | Optional | Use 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1. |
output | string | Optional | Response format for this product: json. Omit this parameter to use JSON. Allowed values: json. |
records | string | Optional | Source export selector for CSV or NDJSON. It has no effect on this JSON-only product. |
Using OpenAny
Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.
OpenAny request example
curl "https://api.openany.si/v1/agent-apis/apish/mlb/v1/teams?output=json&raw=0" \
-H "Authorization: Bearer <OPENANY_API_KEY>"This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.
Response example
Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.
The complete response is available in the request and response examples panel. The source payload is preserved there without local shortening.
Usage and price
The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.
Coverage and limits
Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
applied_filtersobjectleaguenullseasonnullsport_idinteger
cachedbooleancountintegercredits_usedintegerfetched_atstringteamsobject[]abbreviationstringactivebooleanclub_namestringdivisionobjectidintegernamestring
first_yearintegerfranchise_namestringidintegerleagueobjectidintegernamestring
locationstringlogostringnamestringparent_orgnullseasonintegershort_namestringsport_idintegerspring_leaguestringspring_venueintegerteam_namestringvenueobjectidintegernamestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
applied_filters?: {
league?: null;
season?: null;
sport_id?: number;
};
cached?: boolean;
count?: number;
credits_used?: number;
fetched_at?: string;
teams?: Array<{
abbreviation?: string;
active?: boolean;
club_name?: string;
division?: {
id?: number;
name?: string;
};
first_year?: number;
franchise_name?: string;
id?: number;
league?: {
id?: number;
name?: string;
};
location?: string;
logo?: string;
name?: string;
parent_org?: null;
season?: number;
short_name?: string;
sport_id?: number;
spring_league?: string;
spring_venue?: number;
team_name?: string;
venue?: {
id?: number;
name?: string;
};
}>;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent MLB teams (and minor-league clubs) API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
- 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: 2. 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
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'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
season | URL query parametersquery | string | No | Season year (teams as they were that season). |
league | URL query parametersquery | string | No | al or nl. enum: "al", "nl" |
sport_id | URL query parametersquery | string | No | 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" |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | 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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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"
}
}
]
}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 item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 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.
View API Markdown
# MLB teams (and minor-league clubs) API
Use the MLB teams (and minor-league clubs) API to retrieve team records, venue information and record identities and titles as structured JSON from MLB Stats. Choose season and league as optional query conditions to select the source records or view required for your request. Use these results to enrich a competitor reference page and connect the player or team with its published sporting record. For league, choose al / nl. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · MLB teams (and minor-league clubs) API: https://openany.si/markets/apis/capabilities/mlb-stats-mlb-teams-and-minor-league-clubs-api?offering=d7396ed3-5ff4-4b7d-9257-815947d6a510 · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/mlb-stats-mlb-teams-and-minor-league-clubs-api
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/mlb/v1/teams
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
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'
```
## API contract
```json
{
"resource_type": "api",
"name": "MLB teams (and minor-league clubs) API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/mlb/v1/teams",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Season year (teams as they were that season).",
"location": "query",
"name": "season",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "al or nl.",
"enum_values": [
"al",
"nl"
],
"location": "query",
"name": "league",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Level: 1 MLB (default), 11 Triple-A, 12 Double-A, 13 High-A, 14 Single-A, 16 Rookie, 17 winter leagues, 51 international.",
"enum_values": [
"1",
"11",
"12",
"13",
"14",
"16",
"17",
"21",
"22",
"23",
"51",
"586"
],
"location": "query",
"name": "sport_id",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "rules",
"parameters": [],
"policy_version": 2,
"sale": {
"addons": [],
"base_price_micro_usd": "0",
"max_cost_micro_usd": "2000",
"quantities": [
{
"id": "upstream_credits",
"label": "Actual API.SH credits consumed",
"max_quantity": "1",
"measure": "value",
"pointer": "/credits_used",
"price_micro_usd": "2000",
"quantity_scale": 0,
"source": "response",
"unit": "credit",
"unit_quantity": "1"
}
],
"rounding": "ceil",
"variants": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Live API.SH response · Minimal request",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"output": "json",
"raw": "0"
}
},
"response_body": {
"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"
}
}
]
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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" } } ] }