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
langattribute. 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://aussie-rules.sportdevs.com/coaches?id=eq.{id}
Get coach from a specific country_idhttps://aussie-rules.sportdevs.com/coaches?country_id=eq.{country_id}
Get coach from a specific team_idhttps://aussie-rules.sportdevs.com/coaches?team_id=eq.{team_id}
Query Parameters
- id integer
Default value:
eq.5969The id of the coach
- country_id integer
Default value:
eq.26The id of the country
- team_id integer
Default value:
eq.50653The id of the team
- offset string
Default value:
0Limiting and Pagination
- limit string
Default value:
50Limiting and Pagination
- lang string
Default value:
enMulti-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 charactersThe 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 charactersThe 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 charactersThe 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 charactersThe 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 charactersThe hash image of the class
[
{
"id": 5969,
"name": "Brett Ratten",
"nickname": "B. Ratten",
"nationality": "AUS",
"nationality_iso2": "AU",
"date_of_birth": "1971-07-11T00:00:00+00:00",
"hash_image": "245d240e528fdc70f74f7165ea47e8ea6a862ef04777bc1fb5447dfe100818d6",
"country_id": 26,
"country_name": "Australia",
"country_hash_image": "86936315fce40c126916c0c980e24be16cd8fd390243c6740f58c62d08cea336",
"team_id": 50653,
"team_name": "St Kilda Saints",
"team_hash_image": "26555501e4932ada2adb995b160b815a3179f9cb710d762ada9626addfa5f507",
"class_id": 26,
"class_name": "Australia",
"class_hash_image": "86936315fce40c126916c0c980e24be16cd8fd390243c6740f58c62d08cea336"
}
]