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://aussie-rules.sportdevs.com/referees?id=eq.{id}
Get referees from a specific country_idhttps://aussie-rules.sportdevs.com/referees?country_id=eq.{country_id}
Query Parameters
- id integer
Default value:
eq.1755
The id of the referee
- country_id integer
Default value:
eq.26
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
- 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": 1755,
"name": "Jeff Dalgleish",
"hash_image": "e9bee1b4dbf07d61b49604a5ef4217f00c6e97976b3c0e4b392187f19ffa9e61",
"country_id": 26,
"country_name": "Australia",
"country_hash_image": "86936315fce40c126916c0c980e24be16cd8fd390243c6740f58c62d08cea336"
}
]