Download a tournament match's files
GET
/api/public/tournament-match/{id}/log
const url = 'https://foxleague.ai/api/public/tournament-match/example/log?kind=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/public/tournament-match/example/log?kind=example'Downloads the files of a tournament or challenge match whose broadcast has ended as an attachment, asked by its public id (matches[].id of GET /api/tournaments/{id}), for developers who debug their team: kind=rcg the recording, kind=rcl the match server’s command log. Responses may be cached for a day.
Who: anyone.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
The match’s public id (matches[].id of the tournament): 22 URL-safe characters.
Query Parameters
Section titled “Query Parameters ” kind
required
string
rcg for the recording or rcl for the match server’s command log.
Responses
Section titled “ Responses ”Success or a refusal: read success (the refusals are in the description).
Media type application/octet-stream
Array<integer>
kind is not rcg or rcl.
No such public id, its broadcast has not ended yet, it has no recording or the requested file does not exist.
A server read failed. The body is empty.