Skip to content

Data Types: League

KCNilssen edited this page Dec 13, 2022 · 5 revisions

Usage that returns League objects

To be added

League Structure

Attributes are expandable and collapsable - Link to League dataclass

To be added

Example output from MLB stats api endpoint

Mlb stats api Query:

https://statsapi.mlb.com/api/v1/league?leagueIds=103&seasons=2018

Equivelant with python-mlb-statsapi:

import mlbstatsapi

mlb = mlbstatsapi.Mlb()

mlb.get_league(league_id = 103, seasons = 2018)

Clone this wiki locally