sdv.mlb — ESPN reference
- namespace:
sdv.mlb - sport slug:
baseball - league slug:
mlb - scopes:
universal,mlb - wrappers: 111
sdv.mlb is composed from written, documented source (src/generated/espn/mlb.ts) — a phased proof of converting the runtime wrapper factory into reviewable modules. Every endpoint is a real export const with JSDoc, callable as sdv.mlb.espnMlb<Endpoint>(params) and under its snake_case alias (espn_mlb_<endpoint>) for parity with the Python / R packages.
import sdv from 'sportsdataverse';
await sdv.mlb.espnMlbScoreboard({});
Reference families
Endpoints are grouped by ESPN API family. Pick a page for its per-function reference (endpoint URL, params, returns, example):
| Family | endpoints |
|---|---|
| Site API | 24 |
| Core API | 81 |
| Web API | 5 |
| Native API | 117 |
Parsed output: pass
{ parsed: true }to any endpoint to get tidy rows instead of raw JSON. The columns are determined by each endpoint's parser — see ESPN parsed returns for the full column reference.