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://rugby.sportdevs.com/players
Get players based on the namehttps://rugby.sportdevs.com/players?name=like.*Cristiano*
Get players based on the idhttps://rugby.sportdevs.com/players?id=eq.{id}
Get players from a specific team_idhttps://rugby.sportdevs.com/players?team_id=eq.{team_id}
Query Parameters
- id integer
Default value:
eq.576639
The id of the player
- team_id integer
Default value:
eq.46818
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
- 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
[
{
"id": 576639,
"full_name": "Matthew Rees",
"nickname": "M. Rees",
"hash_image": "ec7bd18991f2dcb9b96227411b68ddbb5ef41e2819faf63beaaacb5be5000155",
"team_id": 46818,
"team_name": "Cardiff Rugby",
"team_hash_image": "c946297bfe56ac7d10c9d2f03b5f3b61a6e6e0b32bcd999a2c87f784b183c121"
}
]