The Little Throne API
The realm's auction house, its items and its players, as JSON. Build price trackers, market sheets, flipping tools, guild sites and addons on live data.
Getting started
- Ask for access: your name, an email and what you'll build. Keep the private status link you're given.
- We read every request. Once you're approved, your status link shows your key, once, with a few free calls on it.
- Buy calls on the same page whenever you need more. Every data call costs one.
Base address
https://api.littlethrone.com/v1
Your key
Send it in the X-API-Key header on every call. It works from servers and from browsers alike (any origin may call). Keep it out of public code: anyone holding it spends your calls.
const r = await fetch('https://api.littlethrone.com/v1/listings?item=iron_bar', {
headers: { 'X-API-Key': 'lt_your_key_here' }
});
const data = await r.json();
console.log(data.count, 'listings,', data.qty, 'iron bars listed; cheapest', data.listings[0]?.price_each, 'gold');
Pricing
5¢ a call, prepaid in packs through Stripe. Your balance is in every answer as calls_left.
| Pack | Calls | Price |
|---|---|---|
| Starter | 100 | $5 |
| Builder | 400 | $20 |
| Studio | 2,000 | $100 |
Tip: the market moves at the pace of the players. Ask once a minute or so and keep the answer, rather than on every page view.
Endpoints
Every call below answers JSON with ok: true and your calls_left. Gold prices are whole numbers. Times are milliseconds since 1970 (UTC).
What's for sale right now, cheapest first, with each seller's public card.
| Parameter | |
|---|---|
item | Only this item (an id from /v1/items), e.g. copper_ore |
seller | Only this seller's listings (a player id, p…) |
town | Only listings held in this town (0 to 5) |
sort | price (default), newest or qty |
limit | Up to 500 (default 100) |
{ "ok": true, "calls_left": 241, "count": 2, "qty": 10,
"listings": [
{ "id": "L14x", "item": "logs", "item_name": "Oak logs", "qty": 5, "price_each": 7, "total": 35, "town": 2,
"listed_at": 1796500000000, "expires_at": 1796586400000,
"seller": { "id": "p3f9c2a71b0d4e6a8", "name": "Wren", "level": 212, "combat": 14, "gear": 61,
"skills": { "woodcutting": 31, "mining": 22, "...": 1 }, "seen": 1796500300000 } } ] }Every item on the market: how many listings, how many listed, lowest and highest asked, and the last week's sales (quantity, gold, low, high, average).
One item's summary, plus its sales day by day (low, high, gold, quantity) for the last week.
{ "ok": true, "item": "iron_bar", "item_name": "Iron bar", "listings": 6, "qty_listed": 84, "lowest": 18, "highest": 26,
"sold_7d": { "qty": 310, "gold": 6020, "low": 16, "high": 24, "average": 19.42 },
"history": [ { "day": 20427, "low": 17, "high": 22, "gold": 980, "qty": 51 } ], "calls_left": 240 }Every item in the game: id, name, kind and its shop value. It changes only with game updates, so keep a copy.
The realm's players who've played in the last two weeks: public cards only (name, total level, combat, gear score, skill levels, last seen). Never gold, bags or emails.
name | Names containing this |
id | One player by id |
Your key's balance and how many calls it has made.
The price list and packs.
Errors
| Status | Means |
|---|---|
| 400 | A parameter is wrong; the answer's error says which. |
| 401 | No key, or a key we don't know. |
| 402 | No calls left. Buy a pack from your status link. |
| 403 | The key has been revoked. |
| 429 | Too many calls too fast. Slow down and try again. |
Terms
- Access is by request. We may refuse any request.
- We may revoke any key at any time, for any reason, without notice and without refund of calls left on it.
- Calls are prepaid and not refundable. Prices may change; calls you've bought keep their price.
- Don't resell raw access, flood the API, or use it to harass players. Show players' public cards only as the API gives them.
- The data is the game's as it is, with no promise of being up or right at every moment.
Questions: hello@littlethrone.com