Teams By League
This endpoint allows you to retrieve the teams 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 teams from a specific league_idhttps://esports.sportdevs.com/teams-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.2055The id of the league
- offset string
Default value:
0Limiting and Pagination
- limit string
Default value:
50Limiting and Pagination
- lang string
Default value:
enMulti-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 charactersThe hash image of the league
- teams jsonb
The teams
[
{
"league_id": 2055,
"league_name": "BEYOND EPIC",
"league_hash_image": "d298d3d3860d6b893af35dbdd10698e63d47a19e1541897bc63d17689d7346ff",
"teams": [
{
"id": 38302,
"name": "Nigma",
"hash_image": "515a3703ae9bb799cb9b053da024775f9a9ac95c65fd121feda05c14f1a0a7fb"
},
{
"id": 38329,
"name": "Team Secret",
"hash_image": "d174eae9432758012fed8e8501da56443961e991f04e11fdc95058845cebdc2c"
},
{
"id": 38363,
"name": "OG",
"hash_image": "9c2fb737b035bb48ce5ddb92cfd3652e41c82a74d8e64650f1d762c5a1e0a708"
},
{
"id": 38395,
"name": "ViKin.gg",
"hash_image": "beb747b81e9854bd6d5d98cece9ff728e21685039b4ba4ecaac99a924e0111d3"
},
{
"id": 38425,
"name": "B8",
"hash_image": "6462d1f146e0c9119891bdb9537224237dd34adfb420ff3e019a05d470a6d50b"
},
{
"id": 38457,
"name": "Team Unique",
"hash_image": "1f7a7a54fefb442a8d16f2faae7539d53432f78cdf04d0df42f4c384b9ac73a0"
},
{
"id": 38484,
"name": "FlyToMoon",
"hash_image": "224dffc6729b53a0538471d51b360bf0a0308807278b4c70c4c57739d2f39af2"
},
{
"id": 38523,
"name": "Team Liquid",
"hash_image": "ab24b04a508ebcf6cd8b8a1b811b20fe1ef2c0cdc555bdc984db86ad06cad807"
},
{
"id": 38545,
"name": "Alliance",
"hash_image": "53cf28d21b812a8794d9f7c0e8d30fa27a6cda592a3ec05b47b79fb0adc81fb2"
},
{
"id": 38576,
"name": "Virtus.pro",
"hash_image": "b88f28a10aed687ca449e0c60b1ec9cea973e46572676b793208e00221c4f49f"
}
]
}
]