GET/api/v1/venues
Venues
Ballparks and their ids.
On this page
Try it
https://statsapi.mlb.com/api/v1/venuesconst res = await fetch('https://statsapi.mlb.com/api/v1/venues')
const data = await res.json()curl -s 'https://statsapi.mlb.com/api/v1/venues'
Reference
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
venueIds | csv | no | One or more venue ids. |
season | number | no | Four-digit year. |
hydrate | csv | no | e.g. |
fields | csv | no | Comma-separated field paths to keep (trims the response), e.g. |
Response
Type: VenuesResponse
/** `GET /api/v1/venues` */
export interface VenuesResponse extends WithCopyright {
venues: Venue[]
}Build with it
Live examples powered by this endpoint with real data. Inspiration — restyle and remix freely.
Ballpark directory
A searchable list of active venues and their ids.
Loading venues…
Example URLs
- All venues:
https://statsapi.mlb.com/api/v1/venues