Lowest listed price per rarity
const url = 'https://foxleague.ai/api/marketplace/floor-prices';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/marketplace/floor-pricesFor each rarity with cards on sale, the lowest listed price and how many cards are listed, cheapest rarity first. The answer is refreshed at most every 5 seconds.
Who: anyone.
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.
The lowest listed price of one rarity.
object
Cards of this rarity listed with a price.
The lowest listed price, whole FOXSY.
Common, Uncommon, Rare, Epic or Legendary.
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": [ { "count": 41, "floor_price": 300, "rarity": "Common" }, { "count": 17, "floor_price": 650, "rarity": "Uncommon" }, { "count": 6, "floor_price": 1500, "rarity": "Rare" } ], "success": true}A server read failed. The body is empty.