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://football.sportdevs.com/teams
Get team based on the namehttps://football.sportdevs.com/teams?name=like.*Real*
Get team based on the idhttps://football.sportdevs.com/teams?id=eq.{id}
Get teams from a specific country_idhttps://football.sportdevs.com/teams?country_id=eq.{country_id}
Get teams from a specific category_idhttps://football.sportdevs.com/teams?category_id=eq.{category_id}
Get teams from a specific arena_idhttps://football.sportdevs.com/teams?arena_id=eq.{arena_id}
Get teams from a specific coach_idhttps://football.sportdevs.com/teams?coach_id=eq.{coach_id}
Get team from a specific primary_league_idhttps://football.sportdevs.com/teams?primary_league_id=eq.{primary_league_id}
Query Parameters
- id integer
Default value:
eq.6991
The id of the team
- country_id integer
Default value:
eq.3
The id of the country
- class_id integer
Default value:
eq.200
The id of the class
- tournament_id integer
Default value:
eq.17
The id of the tournament
- primary_league_id integer
Default value:
eq.21
The id of the primary league
- arena_id integer
Default value:
eq.2884
The id of the arena
- coach_id integer
Default value:
eq.2147
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
- parent_team_id integer
The id of the parent team
Note: This is a Foreign Key to
teams.id
. - parent_team_name text
The name of the parent team
- parent_team_hash_image character varying
Possible values:
<= 64 characters
The name image of the parent team
[
{
"id": 6991,
"name": "FC Augsburg",
"short_name": "Augsburg",
"full_name": "FC Augsburg",
"gender": "M",
"name_code": "FCA",
"national": false,
"type": 0,
"color_primary": "#ffffff",
"color_secondary": "#cd1719",
"color_text": "#cd1719",
"foundation_date": "1907-08-08T00:00:00+00:00",
"hash_image": "789f8231f3f88a85903b8a2afc913c3ae162c096112a3e7c2fed5fab2b0004cf",
"country_id": 3,
"country_name": "Germany",
"country_hash_image": "6814ef46f686990cf4e946f966167b0507e1d642c44e51f61bffb0bba2d4672b",
"class_id": 200,
"class_name": "Germany",
"class_hash_image": "8dc65a0ba0c8455385c2f08140c46c4027c9c5de48ce087321fe1abb3c5a7506",
"tournament_id": 17,
"tournament_name": "Bundesliga",
"primary_league_id": 21,
"primary_league_name": "Bundesliga",
"primary_league_hash_image": "635b98992213dce76b4aa360a9ebeac0dfeae4c1d7d6cc8f645565eaea065994",
"arena_id": 2884,
"arena_name": "WWK ARENA",
"arena_hash_image": "ffeab67cd4249734beb20c0c9efe1e30e883842a910d820498294b3a39a24b42",
"coach_id": 2147,
"coach_name": "Jess Thorup",
"coach_hash_image": "b43f7d1be5bcc0558942da97e24a5fe033f9e4d5bcee6d066aa4a21e34b12b98"
}
]