Coaches
This endpoint allows you to retrieve the coaches.
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 several times a day.
Recommended Calls: Limit calls to 1 per hour.
You can get the image of the coach by calling the following url: https://images.sportdevs.com/{hash_image}.png
Use Cases
Get coach based on the idhttps://basketball.sportdevs.com/coaches?id=eq.{id}
Get coach from a specific country_idhttps://basketball.sportdevs.com/coaches?country_id=eq.{country_id}
Get coach from a specific team_idhttps://basketball.sportdevs.com/coaches?team_id=eq.{team_id}
Query Parameters
- id integer
Default value:
eq.671
The id of the coach
- country_id integer
Default value:
eq.52
The id of the country
- team_id integer
Default value:
eq.1114
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
- id integer
The id of the coach
Note: This is a Primary Key.
- name text
The name of the coach
- nickname text
The short name of the coach
- nationality text
The nationality of the coach
- nationality_iso2 character varying
Possible values:
<= 2 characters
The alpha2 of the nationality
- date_of_birth timestamp with time zone
The date of the coach's birth
- 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
- team_id integer
The id of the team
Note: This is a Foreign Key to
teams.id
. - team_name text
The name of the team
- team_hash_image character varying
Possible values:
<= 64 characters
The name image of the team
- class_id integer
The id of the class
- class_name text
The name of the class
- class_hash_image character varying
Possible values:
<= 64 characters
The hash image of the class
[
{
"id": 671,
"name": "Anton Gavel",
"nickname": "A. Gavel",
"nationality": "SVK",
"nationality_iso2": "SK",
"date_of_birth": "1984-08-24T00:00:00+00:00",
"hash_image": "1a8ab74c86f0095e428fe3d4d346817c4a1bead3227cc0d3aec6193e7ed39255",
"country_id": 52,
"country_name": "Slovakia",
"country_hash_image": "1ae55232c15b65f071015b34ba493dc4c0057cef485968cf2193536e5a19d92a",
"team_id": 1114,
"team_name": "Ratiopharm Ulm",
"team_hash_image": "b9bb41b2450031631cc473ae13e3f9270df70de3e959d5caa7fc93fc463b27fb",
"class_id": 52,
"class_name": "Slovakia",
"class_hash_image": "1ae55232c15b65f071015b34ba493dc4c0057cef485968cf2193536e5a19d92a"
}
]