Seasons By League
This endpoint allows you to retrieve the seasons 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 seasons from a specific league_idhttps://aussie-rules.sportdevs.com/seasons-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 text
The hash image of the league
- seasons jsonb
The seasons
[
{
"league_id": 3506,
"league_name": "AFL",
"league_hash_image": "719f6d97918185e32a06e2edcda10c4d2f1e39442a5763540155f543bc794a03",
"seasons": [
{
"id": 12452,
"name": "AFL 2023",
"year": "2023"
},
{
"id": 13360,
"name": "AFL 2022",
"year": "2022"
},
{
"id": 15148,
"name": "AFL 2021",
"year": "2021"
},
{
"id": 16339,
"name": "AFL 2020",
"year": "2020"
},
{
"id": 17205,
"name": "AFL 2019",
"year": "2019"
},
{
"id": 17951,
"name": "AFL 2018",
"year": "2018"
},
{
"id": 18563,
"name": "AFL 2017",
"year": "2017"
},
{
"id": 19212,
"name": "AFL 2016",
"year": "2016"
},
{
"id": 19789,
"name": "AFL 2015",
"year": "2015"
},
{
"id": 20258,
"name": "AFL 2014",
"year": "2014"
},
{
"id": 20470,
"name": "AFL 2013",
"year": "2013"
},
{
"id": 20645,
"name": "AFL 2012",
"year": "2012"
},
{
"id": 21210,
"name": "AFL 2011",
"year": "2011"
},
{
"id": 21573,
"name": "AFL 2010",
"year": "2010"
},
{
"id": 21891,
"name": "AFL 2009",
"year": "2009"
}
]
}
]