Tournaments By League
This endpoint allows you to retrieve the tournaments from a specific league.
Multi-language: This feature allows the user to manually change the language of the API response by adding value to the
lang
attribute. Example:lang=en
.
Pagination: The endpoint uses an offset and limit system. Specify the offset and limit parameters to fetch the desired range of results. The maximum and default number of results per request is 50.
Update Period: The endpoint is updated every day.
Recommended Calls: Limit calls to 1 per day.
Use Cases
Get tournaments from a specific league_idhttps://basketball.sportdevs.com/tournaments-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.1894
The id of the league
- offset string
Default value:
0
Limiting and Pagination
- limit string
Default value:
50
Limiting and Pagination
- lang string
Default value:
en
Multi-language
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema array
- league_id integer
The id of the league
Note: This is a Foreign Key to
leagues.id
. - league_name text
The name of the league
- league_hash_image character varying
Possible values:
<= 64 characters
The hash image of the league
- tournaments jsonb
The tournaments
[
{
"league_id": 1894,
"league_name": "VTB United League",
"league_hash_image": "52f713d2c1921d7d566a3920d64e5d184e5613d4432df1cda670922e50665ba8",
"tournaments": [
{
"id": 555,
"name": "United League",
"importance": 61
},
{
"id": 2348,
"name": "VTB United League, Group A",
"importance": 57
},
{
"id": 2384,
"name": "United League, Playoffs",
"importance": 59
},
{
"id": 2385,
"name": "VTB United League, Group B",
"importance": 56
},
{
"id": 2842,
"name": "United League, Championship Round",
"importance": 60
},
{
"id": 2843,
"name": "United League, Qualifying Round",
"importance": 58
}
]
}
]