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://floorball.sportdevs.com/teams-seasons?team_id=eq.{team_id}
Query Parameters
- team_id integer
Default value:
eq.1
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": 1,
"team_name": "Al-Nahda",
"team_hash_image": "dd3bbd1b99d5b7394ba8bfb6909cb56d352556fcee23f6b8438b7f81246c148e",
"tournaments": [
{
"seasons": [
{
"season_id": 2883,
"season_name": "Omani League 15/16"
},
{
"season_id": 2910,
"season_name": "Omani League 14/15"
},
{
"season_id": 2944,
"season_name": "Omani League 13/14"
},
{
"season_id": 2977,
"season_name": "Omani League 12/13"
},
{
"season_id": 3016,
"season_name": "Omani League 11/12"
},
{
"season_id": 2506,
"season_name": "Omani League 22/23"
},
{
"season_id": 2552,
"season_name": "Omani League 20/21"
},
{
"season_id": 2524,
"season_name": "Omani League 21/22"
},
{
"season_id": 2840,
"season_name": "Omani League 16/17"
},
{
"season_id": 2707,
"season_name": "Omani League 19/20"
},
{
"season_id": 2770,
"season_name": "Omani League 18/19"
},
{
"season_id": 2793,
"season_name": "Omani League 17/18"
},
{
"season_id": 2340,
"season_name": "Omani League 23/24"
}
],
"tournament_id": 1,
"tournament_name": "Omani League"
}
]
}
]