Download a tournament match recording
const url = 'https://foxleague.ai/api/replay/tournament-match/example';const options = {method: 'GET'};
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://foxleague.ai/api/replay/tournament-match/exampleThe whole recording of a tournament or challenge match whose broadcast has ended, asked by its public id (matches[].id of GET /api/tournaments/{id}), for the match viewer. Sent with Cache-Control: public, max-age=86400: add ?r= with the end of the broadcast (broadcast_ended_at) to keep one copy per broadcast. Before the end of its broadcast the answer is 404 like an unknown id.
Who: anyone.
Authorizations
Section titled “Authorizations ”- None
- session
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The match’s public id (matches[].id of the tournament): 22 URL-safe characters.
Responses
Section titled “ Responses ”Success or a refusal: read success (the refusals are in the description).
No valid session. The body is plain text: Missing Authorization header, Invalid Authorization format, Invalid session token or Session expired or invalid. Sign in again.
Example
Session expired or invalidNo such public id; a match whose broadcast has not ended yet; a match without a recording.
The recording is no longer kept.
A server read failed. Nothing is sent.