Referees
This endpoint allows you to retrieve the referees.
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 referees based on the idhttps://rugby.sportdevs.com/referees?id=eq.{id}
Get referees from a specific country_idhttps://rugby.sportdevs.com/referees?country_id=eq.{country_id}
Query Parameters
- id integer
Default value:
eq.1566
The id of the referee
- country_id integer
Default value:
eq.19
The id of the country
- 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 referee
Note: This is a Primary Key.
- name text
The name of the referee
- yellow_cards integer
The number of yellow cards given by the referee
- red_cards integer
The number of red cards given by the referee
- yellow_red_cards integer
The number of yellow-red cards given by the referee
- matches_count integer
The number of games played by the referee
- 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
[
{
"id": 1566,
"name": "Mike Adamson",
"yellow_cards": 47,
"red_cards": 10,
"yellow_red_cards": 0,
"matches_count": 36,
"hash_image": "01e3d3bb01889a2d911622b29f509bcafc1495b320b0fd1cdc2c575fd543ed16",
"country_id": 19,
"country_name": "Scotland",
"country_hash_image": "9a581e14467065a2d2f6b2f85e6eeadd90538cf54d483cfe92312fbc01b5d2d7"
}
]