Little Throne

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.

Ask for a key

Getting started

  1. Ask for access: your name, an email and what you'll build. Keep the private status link you're given.
  2. We read every request. Once you're approved, your status link shows your key, once, with a few free calls on it.
  3. 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.

PackCallsPrice
Starter100$5
Builder400$20
Studio2,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).

GET/v1/listings1 call

What's for sale right now, cheapest first, with each seller's public card.

Parameter
itemOnly this item (an id from /v1/items), e.g. copper_ore
sellerOnly this seller's listings (a player id, p…)
townOnly listings held in this town (0 to 5)
sortprice (default), newest or qty
limitUp 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 } } ] }
GET/v1/market1 call

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).

GET/v1/market/item?id=item1 call

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 }
GET/v1/items1 call

Every item in the game: id, name, kind and its shop value. It changes only with game updates, so keep a copy.

GET/v1/players1 call

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.

nameNames containing this
idOne player by id
GET/v1/me1 call

Your key's balance and how many calls it has made.

GET/v1free

The price list and packs.

Errors

StatusMeans
400A parameter is wrong; the answer's error says which.
401No key, or a key we don't know.
402No calls left. Buy a pack from your status link.
403The key has been revoked.
429Too many calls too fast. Slow down and try again.

Terms

Questions: hello@littlethrone.com