mlb_attendance
Retrieves MLB attendance figures for teams or leagues, providing per-game and aggregate home/away totals filtered by season, team, league, or date.
Instructions
Attendance figures for a team or league/season — per-game and aggregate home/away/total gate.
Returns: {records:[{openings, attendanceTotal, attendanceAverage, team, season}], aggregateTotals}
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | As-of date (YYYY-MM-DD). | |
| season | No | Season year. | |
| teamId | No | Team id — takes precedence over leagueId when both are set. | |
| leagueId | No | League id(s): 103=AL, 104=NL. Defaulted so the tool works without a teamId. | 103,104 |