MLB venue_dimensions API
venue_dimensions
mlb.venue_dimensionsOutfield dimensions and wall heights for each MLB ballpark — distances to left field, center field, right field, and the power alleys, plus the height of the outfield walls.
GET/api/v1/mlb/venue_dimensionsList venue_dimensions for MLB
Requires one of:
venue_id — requests satisfying none of these return 400.Parameters
venue_idquerybigintoptionalFilter by venue.
limitqueryintegeroptionaldefault 50Page size. Defaults to 50; max 5000.
from_idquerybigintoptionalReturn rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/mlb/venue_dimensions?venue_id=1'Responses
200venue_dimensions rows matching the declared filter set, wrapped in { venue_dimensions, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.
application/jsonResponse Schema(21 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
mlb_venue_id | integer | — | — e.g. 1 |
venue_id | bigint | — e.g. 2 | |
altitude_ft | floatnullable | — | Venue altitude in feet (denormalized from venue for query convenience) e.g. — (all-null in sample) |
backstop_distance | floatnullable | — | Distance from home plate to backstop (feet) e.g. — (all-null in sample) |
center_field | float | — | — e.g. 400 |
center_field_fence_height | float | — | — e.g. 8 |
description | stringnullable | — | — e.g. — (all-null in sample) |
fair_territory_sq_ft | floatnullable | — | — e.g. 113800 |
foul_territory_rating | decimalnullable | — | Relative foul territory size (1.0 = average, >1 = large) e.g. — (all-null in sample) |
foul_territory_sq_ft | floatnullable | — | — e.g. 21500 |
left_center_field | floatnullable | — | — e.g. 385 |
left_field | float | — | — e.g. 330 |
left_field_fence_height | float | — | — e.g. 8 |
orientation | float | — | — e.g. 45 |
right_center_field | floatnullable | — | — e.g. 375 |
right_field | float | — | — e.g. 330 |
right_field_fence_height | float | — | — e.g. 8 |
total_territory_sq_ft | floatnullable | — | — e.g. 137000 |
venue_name | stringnullable | — | — e.g. Angel Stadium |
year | integer | — | — e.g. 2000 |
GET/api/v1/mlb/venue_dimensions/{id}Get a single venue_dimension by id
Parameters
idpathbigintrequiredPrimary key (id) of the venue_dimension row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
-H 'Authorization: Bearer YOUR_API_KEY' \
'https://api.stat-api.com/api/v1/mlb/venue_dimensions/{pk_value}'Responses
200Single venue_dimension row.application/jsonshow example ▸
404Row not found.
Response Schema(21 fields)show schema ▸
| Field | Type | References | Description |
|---|---|---|---|
idkey | bigint | — | Primary Key |
mlb_venue_id | integer | — | — e.g. 1 |
venue_id | bigint | — e.g. 2 | |
altitude_ft | floatnullable | — | Venue altitude in feet (denormalized from venue for query convenience) e.g. — (all-null in sample) |
backstop_distance | floatnullable | — | Distance from home plate to backstop (feet) e.g. — (all-null in sample) |
center_field | float | — | — e.g. 400 |
center_field_fence_height | float | — | — e.g. 8 |
description | stringnullable | — | — e.g. — (all-null in sample) |
fair_territory_sq_ft | floatnullable | — | — e.g. 113800 |
foul_territory_rating | decimalnullable | — | Relative foul territory size (1.0 = average, >1 = large) e.g. — (all-null in sample) |
foul_territory_sq_ft | floatnullable | — | — e.g. 21500 |
left_center_field | floatnullable | — | — e.g. 385 |
left_field | float | — | — e.g. 330 |
left_field_fence_height | float | — | — e.g. 8 |
orientation | float | — | — e.g. 45 |
right_center_field | floatnullable | — | — e.g. 375 |
right_field | float | — | — e.g. 330 |
right_field_fence_height | float | — | — e.g. 8 |
total_territory_sq_ft | floatnullable | — | — e.g. 137000 |
venue_name | stringnullable | — | — e.g. Angel Stadium |
year | integer | — | — e.g. 2000 |