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://darts.sportdevs.com/tournaments-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.2875
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": 2875,
"league_name": "Premier League Darts",
"league_hash_image": "96cd11affc7dda52b6348b0d54d158a67cee178c7fae03e76b935147f33217c5",
"tournaments": [
{
"id": 11398,
"name": "Premier League",
"importance": 2
},
{
"id": 11404,
"name": "Premier League",
"importance": 0
},
{
"id": 31323,
"name": "Premier League, Playoffs",
"importance": 0
},
{
"id": 31346,
"name": "Premier League, Night 16",
"importance": 0
},
{
"id": 31360,
"name": "Premier League, Night 15",
"importance": 0
},
{
"id": 31371,
"name": "Premier League, Night 14",
"importance": 0
},
{
"id": 31389,
"name": "Premier League, Night 13",
"importance": 0
},
{
"id": 31398,
"name": "Premier League, Night 12",
"importance": 0
},
{
"id": 31413,
"name": "Premier League, Night 11",
"importance": 0
},
{
"id": 31422,
"name": "Premier League, Night 10",
"importance": 0
},
{
"id": 31434,
"name": "Premier League, Night 9",
"importance": 0
},
{
"id": 31450,
"name": "Premier League, Night 8",
"importance": 0
},
{
"id": 31469,
"name": "Premier League, Night 7",
"importance": 0
},
{
"id": 31479,
"name": "Premier League, Night 6",
"importance": 0
},
{
"id": 31502,
"name": "Premier League, Night 5",
"importance": 0
},
{
"id": 31518,
"name": "Premier League, Night 4",
"importance": 0
},
{
"id": 31526,
"name": "Premier League, Night 3",
"importance": 0
},
{
"id": 31534,
"name": "Premier League, Night 2",
"importance": 0
},
{
"id": 31538,
"name": "Premier League, Night 1",
"importance": 0
},
{
"id": 64977,
"name": "Playoffs",
"importance": 0
}
]
}
]