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://aussie-rules.sportdevs.com/teams-by-league?league_id=eq.{league_id}
Query Parameters
- league_id integer
Default value:
eq.3506
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": 3506,
"league_name": "AFL",
"league_hash_image": "719f6d97918185e32a06e2edcda10c4d2f1e39442a5763540155f543bc794a03",
"teams": [
{
"id": 2225,
"name": "Collingwood Magpies",
"hash_image": "e1ca0a2c202717781b0bdd84654e00c8e05fc5a9ddebc92148eb895baa7770d9"
},
{
"id": 2278,
"name": "Carlton Blues",
"hash_image": "44ebb687ead6c939c128cdb803395d9487fc712715012302ea74648f48bcae71"
},
{
"id": 2295,
"name": "Essendon Bombers",
"hash_image": "ce74a1d352143ea68ff90f1032947302ed952a7abaf012dec563fd1932eb9b6d"
},
{
"id": 50632,
"name": "Geelong Cats",
"hash_image": "c59ea05d78ed9c8b2b4335ae26d352d6f22be7ebf62ebfeff3792807c0fae636"
},
{
"id": 50636,
"name": "Brisbane Lions",
"hash_image": "306509e2855d7418cac42157dec6d5d4a88e803995f1d2197845044de93c749b"
},
{
"id": 50637,
"name": "Port Adelaide Power",
"hash_image": "2b9eb51124d7807afa4d6966d9b16666bf6fe57eb5965a3cb68035095c6db645"
},
{
"id": 50638,
"name": "Sydney Swans",
"hash_image": "c0363fe3f998c8ab8b59c60251fc924ae83360f702cc44a31b46cf77816100de"
},
{
"id": 50639,
"name": "Adelaide Crows",
"hash_image": "b51df2e1e5fa69a7c706a8bb499a4168b5281de0460edaf49d385600a0151985"
},
{
"id": 50641,
"name": "Richmond Tigers",
"hash_image": "e500d9528e1cbfe929d862444f18202c7bf530c1c6fb7fc029fd10492e4286f6"
},
{
"id": 50646,
"name": "Hawthorn Hawks",
"hash_image": "cc5b8247debeedb8d55b3901756dc0ff76261ba9cda6e0342cd082f83be58d50"
},
{
"id": 50652,
"name": "Fremantle Dockers",
"hash_image": "a50f813edbf71a0df910aabbf81ccb012b9a52ca6ec17cd696d40921e337c0ea"
},
{
"id": 50653,
"name": "St Kilda Saints",
"hash_image": "26555501e4932ada2adb995b160b815a3179f9cb710d762ada9626addfa5f507"
},
{
"id": 50654,
"name": "Melbourne Demons",
"hash_image": "4fd986e06131075b601d2b0aa3af649a4fad3c7b74b65c01ff943b38721bb251"
},
{
"id": 50666,
"name": "Western Bulldogs",
"hash_image": "841fcbaa23306bd72d1953a1968653af2feba484d49bb7b58c0a38dc8c8bffab"
},
{
"id": 50670,
"name": "GWS Giants",
"hash_image": "fa1a940851b7b5c805db88f9fdb1a3ecf66611bdd1d9d0e9b168e3aeae03186a"
},
{
"id": 50672,
"name": "West Coast Eagles",
"hash_image": "48c94a92b3af5bc86cf82a47fcb0b6f5b276f4fd053d85e1f3c114ab64485e92"
},
{
"id": 50684,
"name": "North Melbourne",
"hash_image": "b434ebcc7385102521ad7b97e73d5b633475247881e62bd6a3830639fee85335"
},
{
"id": 50685,
"name": "Gold Coast Suns",
"hash_image": "4e4c8a556e3c30be5d2f0fc185c9cb86544ccdb7882690bdfaa286069b973fff"
}
]
}
]