Players
This endpoint allows you to retrieve the players.
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 15 minutes.
Recommended Calls: Limit calls to 1 every 15 minutes.
You can get the image of the player by calling the following url: https://images.sportdevs.com/{hash_image}.png
Use Cases
Get playershttps://cricket.sportdevs.com/players
Get players based on the namehttps://cricket.sportdevs.com/players?name=like.*Cristiano*
Get players based on the idhttps://cricket.sportdevs.com/players?id=eq.{id}
Get players from a specific team_idhttps://cricket.sportdevs.com/players?team_id=eq.{team_id}
Query Parameters
- id integer
Default value:
eq.79770
The id of the player
- team_id integer
Default value:
eq.47787
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 player
Note: This is a Primary Key.
- full_name text
The name of the player
- first_name text
The first name of the player
- last_name text
The last name of the player
- nickname text
The short name of the player
- player_position text
The position of the player
- player_jersey_number text
The jersey number of the player
- player_height integer
The height of the player
- preferred_foot text
The preferred foot of the 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 text
The name image of the country
- shirt_number integer
The shirt number of the player
- date_of_birth timestamp with time zone
The date of the player's birth
- market_value integer
The proposed market value of the player
EUR
- market_currency text
The proposed market currency
- hash_image character varying
Possible values:
<= 64 characters
The name of the image
- 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
- retired_status boolean
Retired
- cricket_info_id integer
The info id of the player
Note: This is a Foreign Key to
players-cricket-info.id
.
[
{
"id": 79770,
"full_name": "Vishmi Gunaratne",
"nickname": "V Gunaratne",
"player_position": "BM",
"country_id": 164,
"country_name": "Sri Lanka",
"country_hash_image": "c820736841e811c96d30b14eb998feb6bc2c9d0764b7731267438dc7d6bb5b59",
"date_of_birth": "2005-08-22T00:00:00+00:00",
"hash_image": "865d7c0970cda666c70fc057646b420fd0621f30672cf45b179d5e4d6153d14a",
"team_id": 47787,
"team_name": "Sri Lanka Women",
"team_hash_image": "85e2a26c0bd0aac37dcf4a4fb0e7499786fc5e690f913740d2faa1b034b3a276",
"cricket_info_id": 2081
}
]