List competitions
GET/v1/competitions
GET
/v1/competitions
const url = 'https://api.ligr.live/rest/v1/competitions?sport=football&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/competitions?sport=football&providerName=RB&limit=200&offset=0' \ --header 'Authorization: Bearer <token>'Return a list of competitions for the organization. Filter by sport.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”sport
string
Allows filtering by specific sport
providerName
string
Only return competitions from this data provider
providerIds
string
Only return competitions with these ids at the data provider. A comma-separated list of up to 100 ids. Needs providerName.
limit
number format: double
offset
number format: double
Responses
Section titled “Responses”Ok
Media typeapplication/json
object
competitions
required
Array<object>
object
id
required
Entity identifier
integer format: int32
name
required
Default Entity name
string
gfxName
required
Name predominantly display in graphics
string
sport
required
string
dataProvider
object
name
required
string
id
required
string
total
required
integer format: int32
returned
required
integer format: int32
Example
{ "competitions": [ { "id": 24, "name": "UEFA Champions League", "gfxName": "Champions League", "sport": "football" } ], "total": 24, "returned": 24}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"}Competition 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"}