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://tennis.sportdevs.com/teams-seasons?team_id=eq.{team_id}
Query Parameters
- team_id integer
Default value:
eq.1128
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": 1128,
"team_name": "Leylah Fernandez",
"team_hash_image": "743247ca6a5067885f4aa96fef65ddb27ac04bd54913d0f370fe0483ae49f177",
"tournaments": [
{
"seasons": [
{
"season_id": 5626,
"start_time": "2016-08-27",
"season_name": "National First Division 16/17"
},
{
"season_id": 5281,
"start_time": "2023-08-25",
"season_name": "Championship 23/24"
},
{
"season_id": 5310,
"start_time": "2022-09-02",
"season_name": "National First Division 22/23"
},
{
"season_id": 5542,
"start_time": "2019-08-17",
"season_name": "National First Division 19/20"
},
{
"season_id": 5574,
"start_time": "2018-08-18",
"season_name": "National First Division 18/19"
},
{
"season_id": 5719,
"start_time": "2014-08-22",
"season_name": "National First Division 14/15"
},
{
"season_id": 5361,
"start_time": "2020-11-27",
"season_name": "National First Division 20/21"
},
{
"season_id": 5596,
"start_time": "2017-08-19",
"season_name": "National First Division 17/18"
},
{
"season_id": 5345,
"start_time": "2021-08-21",
"season_name": "National First Division 21/22"
},
{
"season_id": 5671,
"start_time": "2015-08-22",
"season_name": "National First Division 15/16"
},
{
"season_id": 49364,
"start_time": "2024-08-23",
"season_name": "Championship 24/25"
}
],
"tournament_id": 569,
"tournament_name": "French Open, Paris, France"
}
]
}
]