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://basketball.sportdevs.com/teams
Get team based on the namehttps://basketball.sportdevs.com/teams?name=like.*Real*
Get team based on the idhttps://basketball.sportdevs.com/teams?id=eq.{id}
Get teams from a specific country_idhttps://basketball.sportdevs.com/teams?country_id=eq.{country_id}
Get teams from a specific category_idhttps://basketball.sportdevs.com/teams?category_id=eq.{category_id}
Get teams from a specific arena_idhttps://basketball.sportdevs.com/teams?arena_id=eq.{arena_id}
Get teams from a specific coach_idhttps://basketball.sportdevs.com/teams?coach_id=eq.{coach_id}
Get team from a specific primary_league_idhttps://basketball.sportdevs.com/teams?primary_league_id=eq.{primary_league_id}
Query Parameters
- id integer
Default value:
eq.8419
The id of the team
- country_id integer
Default value:
eq.47
The id of the country
- class_id integer
Default value:
eq.59
The id of the class
- tournament_id integer
Default value:
eq.558
The id of the tournament
- primary_league_id integer
Default value:
eq.1905
The id of the primary league
- arena_id integer
Default value:
eq.3499
The id of the arena
- coach_id integer
Default value:
eq.2479
The id of the coach
- 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
- foundation_date timestamp with time zone
The foundation date 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
- coach_id integer
The id of the coach
Note: This is a Foreign Key to
coaches.id
. - coach_name text
The name of the coach
- coach_hash_image character varying
Possible values:
<= 64 characters
The name image of the coach
[
{
"id": 8419,
"name": "KK Mega MIS",
"short_name": "Mega",
"full_name": "KK Mega MIS",
"gender": "M",
"name_code": "MEGA",
"national": false,
"type": 0,
"color_primary": "#e50f6f",
"color_secondary": "#d5f36d",
"color_text": "#d5f36d",
"hash_image": "2b3c51d31d70e8708d808eaca52d012c20cfa51d708f890ab141d5b4f61b5e60",
"country_id": 47,
"country_name": "Serbia",
"country_hash_image": "667e1c97e3c6f471580a5caf2852f9f4f4f064e77a00d41f3802bdae5238690d",
"class_id": 59,
"class_name": "International",
"class_hash_image": "bd5f4713b0903aaea2391318cb752b0800ae963769cdce377213c3aa877fbc21",
"tournament_id": 558,
"tournament_name": "AdmiralBet KLS, Playoffs",
"primary_league_id": 1905,
"primary_league_name": "Radivoj Korać Cup",
"primary_league_hash_image": "80570e3a1027f93e917558799f85e40daeb0a74b78daa9e59b6669ecbf6684db",
"arena_id": 3499,
"arena_name": "Sports Hall Pinki",
"arena_hash_image": "c8116b8c02a2d399c0242f5cd4bcb2756f15598ef9285322d1a4cd3b3f199050",
"coach_id": 2479,
"coach_name": "Marko Barać",
"coach_hash_image": "97d9bb12ef13517592faeb2e7a0de77b7365c7b2c06c5a6b252b3e3e965653ec"
}
]