---
title: "List season_run_environments for MLB"
method: GET
path: "/api/v1/mlb/season_run_environments"
tags: ["MLB"]
---

# List season_run_environments for MLB

`GET /api/v1/mlb/season_run_environments`

## Request

- Base URL: `https://api.stat-api.com`
- URL: `https://api.stat-api.com/api/v1/mlb/season_run_environments`
- Auth: HTTP bearer

## Query parameters

- `season_id` integer
- `limit` integer
- `from_id` integer
- `format` 'json' | 'csv'

## Response `200`

season_run_environments rows matching the declared filter set.

- MLBSeasonRunEnvironmentsListResponse
  - `has_more` boolean, required: True when a full page came back, so more rows can exist.
  - `limit` integer, required: Page size used for this response.
  - `next_from_id` integer, nullable, required: Pass this as `from_id` on the next request to page forward. `null` on the terminal page, and on a first page requested without `from_id` (that page uses the default sort): to walk every row, start with `from_id=0`.
  - `season_run_environments` MLBSeasonRunEnvironments[], required
    - `batting_average_on_balls_in_play` number, double, required: League average BABIP
    - `fip_constant` number, double, required: FIP constant to scale FIP to ERA
    - `home_run_per_fly_ball` number, double, required: League average HR/FB rate
    - `id` integer, required: Primary Key
    - `runs_per_out` number, double, required: League average runs per out made
    - `runs_per_plate_appearance` number, double, required: League average runs per plate appearance
    - `season_id` integer, required
    - `strikeout_rate` number, double, required: League average strikeout rate
    - `updated_date` string, date-time, required
    - `walk_rate` number, double, required: League average walk rate

## Other responses

- `400`: No declared filter set was satisfied by the request — see `accepted` in the body for the valid combinations.

---

[API](https://skmtc.dev/stat-api/apis/sports-db-public-api.md) · [All operations](https://skmtc.dev/stat-api/apis/sports-db-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/stat-api/apis/sports-db-public-api/revisions/0c8484d5fc29?raw)
