Teams
This endpoint allows you to retrieve the 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.
You can get the image of the team by calling the following url: https://images.sportdevs.com/{hash_image}.png
Use Cases
Get teamshttps://floorball.sportdevs.com/teams
Get team based on the namehttps://floorball.sportdevs.com/teams?name=like.*Real*
Get team based on the idhttps://floorball.sportdevs.com/teams?id=eq.{id}
Get teams from a specific country_idhttps://floorball.sportdevs.com/teams?country_id=eq.{country_id}
Get teams from a specific category_idhttps://floorball.sportdevs.com/teams?category_id=eq.{category_id}
Get teams from a specific arena_idhttps://floorball.sportdevs.com/teams?arena_id=eq.{arena_id}
Get team from a specific primary_league_idhttps://floorball.sportdevs.com/teams?primary_league_id=eq.{primary_league_id}
Query Parameters
- id integer
Default value:
eq.51750
The id of the team
- country_id integer
Default value:
eq.91
The id of the country
- class_id integer
Default value:
eq.119
The id of the class
- tournament_id integer
Default value:
eq.1175
The id of the tournament
- primary_league_id integer
Default value:
eq.3504
The id of the primary league
- arena_id integer
Default value:
eq.9242
The id of the arena
- 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
- id integer
The id of the team
Note: This is a Primary Key.
- name text
The name of the team
- short_name text
The short name of the team
- full_name text
The full name of the team
- gender character
Possible values:
<= 1 characters
The gender of the team
- name_code text
The name code of the team
- national boolean
If the team is national
- type integer
The type of the team
- color_primary character varying
Possible values:
<= 7 characters
The primary color of the team
- color_secondary character varying
Possible values:
<= 7 characters
The secondary color of the team
- color_text character varying
Possible values:
<= 7 characters
The text color of the team
- hash_image character varying
Possible values:
<= 64 characters
The name of the image
- country_id integer
The id of the country
Note: This is a Foreign Key to
countries.id
. - country_name text
The name of the country
- country_hash_image character varying
Possible values:
<= 64 characters
The name image of the country
- class_id integer
The id of the class
Note: This is a Foreign Key to
classes.id
. - class_name text
The name of the class
- class_hash_image character varying
Possible values:
<= 64 characters
The name image of the class
- tournament_id integer
The id of the tournament
Note: This is a Foreign Key to
seasons-by-tournament.tournament_id
. - tournament_name text
The name of the tournament
- primary_league_id integer
The id of the primary league
Note: This is a Foreign Key to
leagues.id
. - primary_league_name text
The name of the primary league
- primary_league_hash_image character varying
Possible values:
<= 64 characters
The name image of the primary league
- arena_id integer
The id of the arena
Note: This is a Foreign Key to
arenas.id
. - arena_name text
The name of the arena
- arena_hash_image character varying
Possible values:
<= 64 characters
The name image of the arena
[
{
"id": 51750,
"name": "Nokian KrP",
"short_name": "Nokian KrP",
"full_name": "Nokian KrP",
"gender": "M",
"name_code": "NOK",
"national": false,
"type": 0,
"color_primary": "#52b030",
"color_secondary": "#52b030",
"color_text": "#ffffff",
"hash_image": "d312ee1fa90bb5222f34e447c3cfa91754e82fc553313bfe4f66bee08f292380",
"country_id": 91,
"country_name": "Finland",
"country_hash_image": "68915d5a1b08021e1fbbcdfa910e526c6c87c414972e55c4419bd336b1d32e80",
"class_id": 119,
"class_name": "Finland",
"class_hash_image": "b9a09df232e5c16a7cddd7afb7aa27d9b6073a80daf0fcbcc752d19e19427622",
"tournament_id": 1175,
"tournament_name": "F-Liiga",
"primary_league_id": 3504,
"primary_league_name": "F-Liiga",
"primary_league_hash_image": "5ce020a7c4af1b7c0f7d7490052ec2f7d1f05136aaf6896b9cbebd756e746392",
"arena_id": 9242,
"arena_name": "Raholan Liikuntakeskus",
"arena_hash_image": "ab8702aafcf9fef61dc849c83b192f38d11425ac64fc66b13a8bd2ec29e4544f"
}
]