MLB Stats API Docs

Type to search endpoints by name, path, or keyword.

GET/api/v1/venues

Venues

Ballparks and their ids.

On this page

Try it

Query
https://statsapi.mlb.com/api/v1/venues
const 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

NameTypeRequiredDescription
venueIdscsvno

One or more venue ids.

seasonnumberno

Four-digit year.

hydratecsvno

e.g. location,fieldInfo,timezone.

fieldscsvno

Comma-separated field paths to keep (trims the response), e.g. venues,id,name.

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