Search Players & Teams
searchUse this when you need a player_id or team_id, or the user names a player or team you have not resolved yet ('Jokic', 'Lamar Jackson', 'BOS'); it is accent- and typo-tolerant. Returns the matching NBA and NFL players and teams with their numeric ids and page urls. Not for stats: call player_profile or team_profile with the id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Player or team name or abbreviation (e.g. "Jokic", "Lamar Jackson", "BOS"). | |
| league | No | Optional league filter ("nba" or "nfl"). Omit to search both leagues. |