STAT-API

MLB woba_weights API

woba_weightsmlb.woba_weights
The weighted on-base average coefficients for each MLB season — the run values assigned to walks, singles, doubles, triples, and home runs, used to compute wOBA and wRC+.
GET/api/v1/mlb/woba_weights
Parameters
limitqueryintegeroptionaldefault 50
Page size. Defaults to 50; max 5000.
from_idquerybigintoptional
Return 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/woba_weights?limit=3'
Responses
200woba_weights rows matching the declared filter set, wrapped in { woba_weights, 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/json
Response Schema(12 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
season_id
bigint—
e.g. 2021
double_weight
decimal—Weight for doubles (w2B)
e.g. 1.2710
hit_by_pitch_weight
decimal—Weight for hit by pitch (wHBP)
e.g. 0.7230
home_run_weight
decimal—Weight for home runs (wHR)
e.g. 2.1010
league_obp
decimal—League average OBP for calibration
e.g. 0.3180
league_woba
decimal—League average wOBA for the season
e.g. 0.3180
single_weight
decimal—Weight for singles (w1B)
e.g. 0.8950
triple_weight
decimal—Weight for triples (w3B)
e.g. 1.5520
updated_date
timestamptz—When these weights were last updated
e.g. 2026-04-12T02:04:46.328Z
walk_weight
decimal—Weight for unintentional walks (wBB)
e.g. 0.6920
woba_scale
decimal—Scale factor to convert wOBA to runs
e.g. 1.2160
GET/api/v1/mlb/woba_weights/{id}
Parameters
idpathbigintrequired
Primary key (id) of the woba_weight 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/woba_weights/{pk_value}'
Responses
200Single woba_weight row.application/jsonshow example ▸
404Row not found.
Response Schema(12 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
season_id
bigint—
e.g. 2021
double_weight
decimal—Weight for doubles (w2B)
e.g. 1.2710
hit_by_pitch_weight
decimal—Weight for hit by pitch (wHBP)
e.g. 0.7230
home_run_weight
decimal—Weight for home runs (wHR)
e.g. 2.1010
league_obp
decimal—League average OBP for calibration
e.g. 0.3180
league_woba
decimal—League average wOBA for the season
e.g. 0.3180
single_weight
decimal—Weight for singles (w1B)
e.g. 0.8950
triple_weight
decimal—Weight for triples (w3B)
e.g. 1.5520
updated_date
timestamptz—When these weights were last updated
e.g. 2026-04-12T02:04:46.328Z
walk_weight
decimal—Weight for unintentional walks (wBB)
e.g. 0.6920
woba_scale
decimal—Scale factor to convert wOBA to runs
e.g. 1.2160