Players By Team
This endpoint allows you to retrieve the players from a specific team.
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.
Use Cases
Get players from a specific team_idhttps://futsal.sportdevs.com/players-by-team?team_id=eq.{team_id}
Query Parameters
- team_id integer
Default value:
eq.2224
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
- 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 hash image of the team
- players jsonb
The players
[
{
"team_id": 2224,
"team_name": "FC Barcelona",
"team_hash_image": "ae4ac1726c7beef9e9e9623060a7ee5c41db2be48aa1a1ab22a21e53708f43da",
"players": [
{
"id": 39783,
"name": "Sergio Lozano",
"position": "",
"country_id": 18,
"hash_image": "19a6dc0156d8ac9fa9235381841e6b05674452270ff36195b3af03553c57384c",
"short_name": "S. Lozano",
"country_name": "Spain",
"date_of_birth": "1988-11-09T00:00:00+00:00",
"player_height": 181,
"country_hash_image": "ce344a418127968f2bd07ada86c8cf3808eea524c399a02c0c2c0ebbe0f5467c"
},
{
"id": 40229,
"name": "Adolfo Fernández",
"position": "M",
"country_id": 18,
"hash_image": "061f0a0f85e42c8cf5a10c0baedee4718492b9e80fc725c4a4ceaaa7c0fca7fe",
"short_name": "A. Fernández",
"country_name": "Spain",
"shirt_number": 8,
"date_of_birth": "1993-05-19T00:00:00+00:00",
"player_height": 170,
"preferred_foot": "Right",
"country_hash_image": "ce344a418127968f2bd07ada86c8cf3808eea524c399a02c0c2c0ebbe0f5467c",
"player_jersey_number": "8"
},
{
"id": 40874,
"name": "Sergio González",
"position": "F",
"country_id": 18,
"hash_image": "f65678baa0b4748a744948b250f27cf8e09a151ac1cccfec8e477a22ef93e88b",
"short_name": "S. González",
"country_name": "Spain",
"shirt_number": 16,
"date_of_birth": "1997-06-30T00:00:00+00:00",
"country_hash_image": "ce344a418127968f2bd07ada86c8cf3808eea524c399a02c0c2c0ebbe0f5467c",
"player_jersey_number": "16"
}
]
}
]