mlb_schedule
Retrieve MLB game schedules by date or date range, filterable by team. Get game IDs, status, teams, scores, and venue for each game.
Instructions
Game schedule — by single date or startDate/endDate range, optionally for one team. Each game carries gamePk, status, teams and score.
Returns: {totalGames, dates:[{date, games:[{gamePk, gameDate, status, teams:{away:{team,score}, home:{team,score}}, venue}]}]}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Single date (YYYY-MM-DD). | |
| season | No | Season year. | |
| teamId | No | Filter to one team. | |
| endDate | No | Range end (YYYY-MM-DD). | |
| hydrate | No | Embed related objects (e.g. 'team,linescore,probablePitcher,decisions'). | |
| sportId | No | Sport id (1 = MLB). | |
| gameTypes | No | Game type code(s): R (regular), F/D/L/W (postseason), S (spring), etc. | |
| startDate | No | Range start (YYYY-MM-DD); use with endDate. |