Seated teams of a tournament
const url = 'https://foxleague.ai/api/tournaments/1/lobby';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/tournaments/1/lobbyReturns every seated team ordered by seed, with its wallet, team name, badge, rating, recent form and the rating and formation of the squad it entered with. Recent form counts a tournament match once its broadcast ends.
Who: anyone.
Refusals:
Tournament not found: no tournament has this id.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The tournament id.
Responses
Section titled “ Responses ”Success or a refusal: read success (the refusals are in the description).
object
A machine-readable reason next to error, set only where the caller must act differently. tx_pending: the payment was not refused but could not be verified yet; keep the transaction hash and confirm again with the same hash, never pay twice.
The answer. Present when success is true.
object
The seated teams by seed.
One seated team as the lobby shows it.
object
Team badge: an IPFS URI or an older inline image; null when the team has none. In a developer tournament: the path of the developer team’s logo; null when it has none.
Developer tournament only: the name of the player’s verified developer team. null otherwise.
The player’s current rating.
Formation of the squad the team entered with; 4-4-2 when unknown.
Seat id; standings rows refer to it as participant_id.
Up to five latest results, newest first: W, D or L. A tournament match counts once its broadcast ends.
Average rating of the squad the team entered with, one decimal. 0 for a developer team.
The team name; Team #<user_id> when the player has no team.
User id of the player.
Wallet of the player.
The tournament id.
Why the request was refused, in plain words. Present when success is false.
true when the request did what it asked. false is a refusal: read error.
Example
{ "data": { "participants": [ { "badge": "ipfs://bafkreij7ufrdl3erbfqfoeqh5av2ricphkqdlmttns4lrwbqcab", "dev_team_name": null, "elo_rating": 1284, "formation": "4-3-3", "id": 2251, "recent_form": [ "W", "W", "D", "L", "W" ], "squad_ovr": 61.4, "team_name": "Harbor Foxes", "user_id": 57, "wallet_address": "erd15feryxhrdz9m6y09mr8wrerwzgj6f8ntxvhxyrdlm5aahn0t09nl4ujy86" }, { "badge": "ipfs://bafkrei6bs5e4rynnefjqxirhxo77zbka74ztj2wyuhvauvzhmas", "dev_team_name": null, "elo_rating": 1131, "formation": "4-4-2", "id": 2254, "recent_form": [ "L", "D" ], "squad_ovr": 55.9, "team_name": "Riverside Rovers", "user_id": 92, "wallet_address": "erd1f7kfgpqxgmvdpsdj05s6grka6gfputqftf78r57xr0v3zxupyu5v3u70sv" }, { "badge": null, "dev_team_name": null, "elo_rating": 1000, "formation": "4-4-2", "id": 2257, "recent_form": [], "squad_ovr": 52, "team_name": "Team #104", "user_id": 104, "wallet_address": "erd1ug68eu5y0mydn8fhfsgawxel2w2me46vk59hp4aupc4jy8wx9s3zt3gmse" } ], "tournament_id": 412 }, "success": true}