Get a match summary
GET/v2/matches/{matchId}/summary
const url = 'https://api.ligr.live/rest/v2/matches/1/summary';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/summary \ --header 'Authorization: Bearer <token>'Return team-level match and period stats, score, clock, and period state for a match.
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”Language code for period names (defaults to en)
Responses
Section titled “Responses”Ok
object
Entity identifier
object
object
object
object
object
Literal unions (rather than the internal enums from ‘@/types/Period’) so the REST contract stands alone and tsoa model names can’t collide with identically-named enums elsewhere in the program (e.g. aws-sdk’s PeriodType).
Period duration in milliseconds
object
Construct a type with a set of properties K of type T
object
Construct a type with a set of properties K of type T
object
object
Construct a type with a set of properties K of type T
object
Construct a type with a set of properties K of type T
object
Example
{ "sport": "football", "periods": [ { "type": "regular", "status": "live", "finishType": "default" } ]}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"}