Make your first request
Call the hero list from the browser, from a terminal and from code. No key and no sign-up.
1 Pick your base URL
Every address starts with the base URL. The home page shows it with a switch and a Copy button.
- Host switch. Primary or Mirror. Both serve the same API.
- Base URL. What every request starts with.
- Copy. Copies the base URL.
- Live table. Real numbers from the API, with the request that produced them written underneath.
2 Open it in the browser
Paste this into the address bar. You get the newest heroes as JSON.
https://arena.fastapicloud.dev/api/heroes?size=5
3 Call it from a terminal
The same request with curl.
curl "https://arena.fastapicloud.dev/api/heroes?size=5"
4 Call it from code
Rows sit in data.records, and each row's own fields are under data. A code of 0 means success.
const res = await fetch("https://arena.fastapicloud.dev/api/heroes?size=5");
const { data } = await res.json();
for (const row of data.records) {
console.log(row.data.hero_id, row.data.hero.data.name);
}