mlb_statcast_year_to_year
Retrieve MLB Baseball Savant year-to-year changes for batters, pitchers, or teams by choosing a stat type and comparison start year; returns yearly values and differences.
Instructions
Get Baseball Savant Year-to-Year Changes. Returns one of Baseball Savant's Year-to-Year Changes tables for batters, pitchers, batting teams, or pitching teams. Select one of the live statistic types and comparison start years; the page data contains available yearly values and differences. Table sorting and pagination are applied locally. Use mlb_discovery for all accepted group, type, and year values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Local sortable column; name_display_last_first, year_YYYY, TYPE_YYYY, or TYPE_diff_YYYY. Defaults to the selected metric's difference for the selected comparison year. | |
| type | No | Statistic type | |
| year | No | Comparison start year; compares this season with the following year | |
| group | No | Table group | |
| limit | No | Rows per page (1-500) | |
| offset | No | Zero-based row offset (0-5000) | |
| sort_dir | No | Sort direction; defaults to Batter descending and Pitcher ascending |