mlb_sports_players
Get the complete roster of players for any sport and season, resolving names to player IDs. Use sportId=1 for MLB data.
Instructions
All players in a sport for a season — the full player catalogue (name → id resolution). sportId=1 for MLB.
Returns: {people:[{id, fullName, firstName, lastName, primaryNumber, birthDate, currentAge}]} (large)
Auth: none needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| season | Yes | Season year. | |
| hydrate | No | Embed related objects. | |
| sportId | Yes | Sport id (1 = MLB). Required — part of the URL path. |