Get a match (v2)
GET/v2/matches/{matchId}
const url = 'https://api.ligr.live/rest/v2/matches/1';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/v2/matches/1 \ --header 'Authorization: Bearer <token>'Return the match with the given ID.
Accepts the include query parameter with codes cp, v, c, o, p, s, one level deep.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Entity identifier
The match identifier
Query Parameters
Section titled “Query Parameters”Comma seperated string of entity abbreviations Allows optional population of nested entities c = competition v = venue t = teams o = overlays p = players s = streams cp = competitors e.g. ‘c,v,t,o,p,cp’
Comma seperated string of nested entity abbreviations to include in request
Responses
Section titled “Responses”Ok
object
Entity identifier
Match name
Entity identifier
The liveStatus of the match as defined by the period
Entity identifier
object
The match format: singles, doubles, teams or group. It is one value for the match.
Each row in competitors has its own entityType. For example, a doubles match has
competitorsType: doubles and four entityType: player rows. A group match has player rows.
object
Entity identifier
Match name
Entity identifier
The liveStatus of the match as defined by the period
Entity identifier
object
The match format: singles, doubles, teams or group. It is one value for the match.
Each row in competitors has its own entityType. For example, a doubles match has
competitorsType: doubles and four entityType: player rows. A group match has player rows.
object
Entity identifier
Default Entity name
Name predominantly display in graphics
object
object
Entity identifier
Entity identifier
Seconds to delay graphic updates
Stringified UUIDv4. See RFC 4112
Open this URL with an authenticated dashboard session after setup.
Read-only monitoring page of this overlay on the overlay host of this environment. Open it to see the graphics that are on air. It does not take control of the overlay.
object
Entity identifier
Default Entity name
Name predominantly display in graphics
object
object
Entity identifier
Entity identifier
Default Player first name
Default Player first name
The player’s slot in the team’s formation layout, numbered from the goalkeeper through to the forwards. Null when no formation slot is assigned.
The player’s position in the team’s lineup ordering as managed in the control room. Null when no explicit lineup order is set.
object
Entity identifier
object
Entity identifier
object
Entity identifier
Default Entity name
Name predominantly display in graphics
Name predominantly display in graphics
Abbreviation
Entity identifier
Entity identifier
CDN URL of the team logo, or of the club logo when the team has none. Present only on the team routes.
Coaches and other staff who are not players. Graphics show the manager entry as the coach.
If no entry has the manager role, graphics show the first entry.
A coach or other staff member of a team.
object
Role of a team staff member. Graphics show the manager as the coach.
object
object
Entity identifier
Default Player first name
Default Player first name
object
Example
{ "sport": "football", "liveStatus": "live", "finishedStatus": "finished", "dataProvider": { "name": "RB" }, "competitorsType": "singles"}Request is invalid
object
object
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
object
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
object
Examplegenerated
{ "message": "example"}Match not found
object
Examplegenerated
{ "message": "example"}Api key has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}