Teams Seasons
This endpoint allows you to retrieve the seasons from teams.
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 team_idhttps://cricket.sportdevs.com/teams-seasons?team_id=eq.{team_id}
Query Parameters
- team_id integer
Default value:
eq.1811
The id of the team
- 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
- team_id integer
The id of the team
Note: This is a Primary Key.
- team_name text
The name of the team
- team_hash_image character varying
Possible values:
<= 64 characters
The hash image of the team
- tournaments jsonb
The tournaments of the team playing
[
{
"team_id": 1811,
"team_name": "Lahore Qalandars",
"team_hash_image": "900bcb08eb9324a0dd579c0bbda3655d52aa847ec3246803114d42100de2e788",
"tournaments": [
{
"seasons": [
{
"season_id": 9608,
"start_time": "2021-10-15",
"season_name": "Premier League 21/22"
},
{
"season_id": 9704,
"start_time": "2019-08-29",
"season_name": "Premier League 19/20"
},
{
"season_id": 9669,
"start_time": "2020-12-03",
"season_name": "Premier League 20/21"
},
{
"season_id": 9734,
"start_time": "2018-09-28",
"season_name": "Premier League 18/19"
},
{
"season_id": 9568,
"start_time": "2022-09-30",
"season_name": "Premier League 22/23"
},
{
"season_id": 9780,
"start_time": "2017-09-12",
"season_name": "Premier League 17/18"
},
{
"season_id": 9544,
"start_time": "2023-09-15",
"season_name": "Premier League 23/24"
},
{
"season_id": 49317,
"start_time": "2024-09-13",
"season_name": "Premier League 24/25"
}
],
"tournament_id": 946,
"tournament_name": "Pakistan Super League, Regular Season"
}
]
}
]