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
langattribute. 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://esports.sportmicro.com/tournaments-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
The id of the league
Example: eq.51 - offset string
Default value:
0Limiting and Pagination
Example: 0 - limit string
Default value:
50Limiting and Pagination
Example: 50 - lang string
Default value:
enMulti-language
Example: en
- 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 charactersThe hash image of the league
- tournaments jsonb
The tournaments
[
{
"league_id": 51,
"league_name": "All-Star",
"league_hash_image": "9a4107bc01874dab1ca7ebe455a755cf7b913ca02714b730c2c9c08f462c8b6f",
"tournaments": [
{
"id": 46,
"name": "All-Star All star main event",
"importance": 0
},
{
"id": 114,
"name": "All-Star Solo-King Event",
"importance": 0
},
{
"id": 161,
"name": "All-Star Rookie Match",
"importance": 0
},
{
"id": 195,
"name": "All-Star Match",
"importance": 0
},
{
"id": 200,
"name": "All-Star Rookie Challenge",
"importance": 0
},
{
"id": 208,
"name": "All-Star Legend Rivalry",
"importance": 0
},
{
"id": 23746,
"name": "All-Star - Rookie Showmatch",
"importance": 0
},
{
"id": 23747,
"name": "All-Star - ARAM Mayhem",
"importance": 0
},
{
"id": 29636,
"name": "All-Star s",
"importance": 0
},
{
"id": 29638,
"name": "All-Star Legends",
"importance": 0
},
{
"id": 29646,
"name": "All-Star AllStar Showmatches",
"importance": 0
},
{
"id": 29648,
"name": "All-Star - Queue Kings",
"importance": 0
},
{
"id": 29651,
"name": "All-Star - AllStar Assassin",
"importance": 0
},
{
"id": 29652,
"name": "All-Star Dream team group a",
"importance": 0
},
{
"id": 29658,
"name": "All-Star Dream team group b",
"importance": 0
},
{
"id": 29660,
"name": "All-Star All star main",
"importance": 0
},
{
"id": 29661,
"name": "All-Star All star - los angeles",
"importance": 0
},
{
"id": 29662,
"name": "All-Star - Round robin",
"importance": 0
},
{
"id": 29685,
"name": "All-Star AllStar Tandem",
"importance": 0
},
{
"id": 29696,
"name": "All-Star All star tandem",
"importance": 0
},
{
"id": 29752,
"name": "All-Star All star nexus",
"importance": 0
},
{
"id": 29786,
"name": "All-Star All star urf",
"importance": 0
},
{
"id": 29789,
"name": "All-Star AllStar URF",
"importance": 0
},
{
"id": 30720,
"name": "All-Star AllStar one vs one",
"importance": 0
},
{
"id": 31119,
"name": "All-Star All star one vs one",
"importance": 0
},
{
"id": 31120,
"name": "All-Star All star two vs two",
"importance": 0
},
{
"id": 31315,
"name": "All-Star - Dream team elimination",
"importance": 0
},
{
"id": 31449,
"name": "All-Star - All star one versus one",
"importance": 0
},
{
"id": 31582,
"name": "All-Star All star 2015 1v1",
"importance": 0
}
]
}
]