mlb_leagues
Retrieve MLB league catalogue with league IDs, names, abbreviations, and season details. Pass sportId=1 to list American and National Leagues for stats and odds comparison.
Instructions
League catalogue — e.g. American League (103) and National League (104). Pass sportId=1 for MLB.
Returns: {leagues:[{id, name, abbreviation, sport, seasonState, hasWildCard}]}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seasons | No | Season year(s). | |
| sportId | No | Sport id (1 = MLB). | |
| leagueIds | No | Filter to specific league ids (e.g. 103, 104). |