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://football.sportdevs.com/coaches?id=eq.{id}
Get coach from a specific country_idhttps://football.sportdevs.com/coaches?country_id=eq.{country_id}
Get coach from a specific team_idhttps://football.sportdevs.com/coaches?team_id=eq.{team_id}
Query Parameters
- id integer
Default value:
eq.6
The id of the coach
- country_id integer
Default value:
eq.13
The id of the country
- team_id integer
Default value:
eq.11
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
- default_formation text
The default formation by the coach
- nationality text
The nationality of the coach
- nationality_iso2 character varying
Possible values:
<= 2 characters
The alpha2 of the nationality
- total_matches integer
The number of total matches by the coach
- wins_matches integer
The number of wins by the coach
- draws_matches integer
The number of draws by the coach
- losses_matches integer
The number of losses by the coach
- goals_scored_matches integer
The number of goals scored in matches managed by the coach
- goals_conceded_matches integer
The number of goals conceded in matches managed by the coach
- total_points_matches integer
The number of total points gained by the coach
- 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
- former_player_id integer
The id of the coach as a former player
- 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": 6,
"name": "Dean Brennan",
"nickname": "D. Brennan",
"default_formation": "4-2-3-1",
"nationality": "IRL",
"nationality_iso2": "IE",
"total_matches": 149,
"wins_matches": 69,
"draws_matches": 30,
"losses_matches": 50,
"goals_scored_matches": 245,
"goals_conceded_matches": 240,
"total_points_matches": 237,
"date_of_birth": "1980-06-17T00:00:00+00:00",
"hash_image": "d720e7828acaf3a50fbc7a37543a59f594f9b54993fc4d7cf507e7c01069bb6f",
"country_id": 13,
"country_name": "Ireland",
"country_hash_image": "f078492902275dd3cfc4e676148aea2ee4f88b88e4886f6628d3bfdb6eb5df20",
"team_id": 11,
"team_name": "Barnet",
"team_hash_image": "9467cf6f244dcbeac4454d881bb58ce163546fd4376ee9cefdf36f66b3ff290d",
"class_id": 13,
"class_name": "Ireland",
"class_hash_image": "f078492902275dd3cfc4e676148aea2ee4f88b88e4886f6628d3bfdb6eb5df20"
}
]