sm_leagues
Retrieve football leagues by various modes: all, by ID, live, country, team, or search. Provides league IDs required for other sports API endpoints.
Instructions
Get football leagues. Modes: 'all', 'by_id', 'live' (leagues currently in play), 'by_country', 'by_team', 'search'. Returns league IDs needed for other endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | League ID | |
| mode | No | all | |
| page | No | ||
| teamId | No | Team ID | |
| include | No | e.g. "country,currentSeason,seasons" | |
| countryId | No | Country ID | |
| searchQuery | No | Search term |