Get all leagues
Refresh interval: Multiple times a day
Retrieve a list of leagues.
By utilising the leagueName query parameter you can check whether a specific league exists or simply retrieve the associated data. You can also narrow down your search by specifying the countryCode or countryName query parameters.
There are two other important query parameters. The limit parameter defines what the number of returned leagues will be. If the number of actual leagues is above the limit value you can make subsequent requests by increasing the offset value.
The league information and their associated seasons can be used to request data from other endpoints such as standings.
Request
- Base URLhttps://sports.highlightly.net
- Authnone declared. Required headers: x-rapidapi-host, x-rapidapi-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Country code specified by the ISO 3166 standard.
Headers
sport-highlights-api.p.rapidapi.com
Rapid API Token
Response
Example response
{
"data": [
{
"id": 1635,
"logo": "https://example.com/logos/league/1635.png",
"name": "NBL",
"country": {
"code": "AU",
"name": "Australia",
"logo": "https://example.com/logos/country/AU.png"
},
"seasons": [
{
"season": 2023
}
]
}
],
"pagination": {
"totalCount": 490,
"offset": 20,
"limit": 100
},
"plan": {
"tier": "BASIC",
"message": "Some results might be hidden with FREE tier. Check your API coverage for more information: https://rapidapi.com/highlightly-api-highlightly-api-default/api/sport-highlights-api/details"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.