List officials
GET/v1/officials
GET
/v1/officials
const url = 'https://api.ligr.live/rest/v1/officials?providerName=RB&limit=200&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ligr.live/rest/v1/officials?providerName=RB&limit=200&offset=0' \ --header 'Authorization: Bearer <token>'Return a page of your organization’s match officials, sorted by id. Filter by data provider to find the officials that a provider supplies.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”providerName
string
Only return officials from this data provider
providerIds
string
Only return officials with these ids at the data provider. A comma-separated list of up to 100 ids. Needs providerName.
limit
number format: double
The maximum number of officials to return
offset
number format: double
The number of officials to skip
Responses
Section titled “Responses”Ok
Media typeapplication/json
object
officials
required
Array<object>
A match official, such as a referee or an umpire.
object
id
required
Entity identifier
integer format: int32
firstName
required
Default Player first name
string
lastName
required
Default Player first name
string
gender
string
countryCode
string
dataProvider
object
name
required
string
id
required
string
total
required
number format: double
returned
required
number format: double
Example
{ "officials": [ { "countryCode": "AUS", "dataProvider": { "name": "RB" } } ]}Request is invalid
Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Official not found
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key has made too many requests
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}