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
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 teams from a specific league_idhttps://hockey.sportdevs.com/teams-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.2044
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
- teams jsonb
The teams
[
{
"league_id": 2044,
"league_name": "ICE Hockey League",
"league_hash_image": "06c683ba963def141916e4f0403a249237bf2ed32867d68c1d95aafb77e12053",
"teams": [
{
"id": 1244,
"name": "Red Bull Salzburg",
"hash_image": "4855fa38a3b996565f40cd938ab4d3e7f797b4441a6e63083e7f7eb67fd71c34"
},
{
"id": 1282,
"name": "KAC Klagenfurt",
"hash_image": "2ffebf5d5adda2d3fd43f58846a7df3fbe2c0f375c48de4448349ce49145892a"
},
{
"id": 1620,
"name": "HC Asiago",
"hash_image": "994f3e9689f2491888fc6e83e81e2e7581f7d1e0f5116319e08ac5347116908c"
},
{
"id": 1644,
"name": "HK Olimpija",
"hash_image": "2e54c8a8f8897f0bde204ef6b009462bf9c09aae5771b0414b2f60acc3b78070"
},
{
"id": 36065,
"name": "EC VSV",
"hash_image": "0a608ed4721ef5e76a398ae182d503cb439bd83ae94dd05eeff43482dac331e0"
},
{
"id": 36236,
"name": "Hydro Fehérvár AV19",
"hash_image": "089e3a6d030361271a6fab34bc68ffe17bea14cf8968250508fa6128fe5c950c"
},
{
"id": 36310,
"name": "HC TWK Innsbruck",
"hash_image": "3c57e8428f58542c6e1f2bea2709a41d9f1b8a31c5ab51e20164580117cacf66"
},
{
"id": 36355,
"name": "HC Pustertal",
"hash_image": "adb6b6d40a97bd0bb114a6d8a676b2287ec3df7781732d53a6eb819745d8a59f"
},
{
"id": 36407,
"name": "HC Bolzano",
"hash_image": "1731eaa4383ed7e95d4ee0e32942145c65cf7e0cfd49909d18b922b1d5d393c8"
},
{
"id": 36440,
"name": "EHC Black Wings Linz",
"hash_image": "1eef3899c8eb795913e648f85051e0d0de554b7fa04923a4accfea52c0320282"
},
{
"id": 36517,
"name": "Pioneers Vorarlberg",
"hash_image": "ff397c0c64c464c5781e41636260cd2b408446f09b22095e55a3cf353fcc1f48"
},
{
"id": 36546,
"name": "Vienna Capitals",
"hash_image": "94b5bfc5a5c8f5cfce88f9ab26d945129b1ee04be62a4b3ae5ce8f74ea645d71"
},
{
"id": 36691,
"name": "Graz 99ers",
"hash_image": "a4a5914a7d8240b963576a13b829b277c7bca2352ed29a6ee7072bed27927d00"
},
{
"id": 37509,
"name": "VEU Feldkirch",
"hash_image": "40d1f24f8b037b20317a9a17b8cdc812a85c5495715b160e75750f0eff533e84"
},
{
"id": 37580,
"name": "Dornbirn Bulldogs",
"hash_image": "acb849a35d23571d0f2a372316cb1bfafecfa511c33b6ab8c5d00a011cba7437"
},
{
"id": 38142,
"name": "Olimpija Ljubljana",
"hash_image": "9af0be2899d487546d60d6f1f558b6d00dcc260eab0daf8f427a02ba5e82bada"
},
{
"id": 38220,
"name": "HK Acroni Jesenice",
"hash_image": "224a0a2b32d8bce7aa3c0ea1774b22448572365e462c0c452f43672963e1220d"
},
{
"id": 38263,
"name": "iClinic Bratislava Capitals",
"hash_image": "5487d06ec8a305164a005453db3794a27342169e70ee2e2d373fd3a26440c183"
}
]
}
]