Skip to main content

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):

Familyendpoints
Site API24
Core API81
Web API5
Native API117

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.