Gains leaderboards
The guild page’s gains leaderboards over the accounts whose stats the key may read: the top 10 per skill. Default period=day.
Authorization
bearerAuth An API key from the hub’s API keys page.
In: header
Query Parameters
One skill, case-insensitive (overall works). Without it: Overall first, then every skill anyone gained XP in.
1 <= lengthday = since local midnight in the key creator’s time zone; week/month = the last 7/30 days. Default day.
Value in
- "day"
- "week"
- "month"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/leaderboards/gains"{ "data": { "period": "day", "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "leaderboards": [ { "skill": "string", "entries": [ { "rank": 1, "account": { "id": "string", "name": "string" }, "gain": 0 } ] } ] }, "meta": { "generated_at": "2019-08-24T14:15:22Z" }}The guild’s collection log, and who has an item GET
The guild’s collection log page over every account whose `events` or `hiscores` the key reads and that isn’t hidden from the guild: the `board` (most logged first), the 12 newest slots across them, and with `item`, who has it: every matching item someone logged, with its holders, first logged first. `meta.searchable` counts the accounts whose slots were searched (those whose `events` the key reads), so an answer can say “none of the 23 accounts that share their log”. `accounts` narrows it to those ids (up to 10 with a user key, 50 with a service key); one the board couldn’t list makes the whole request 404.
Loot leaderboard GET
The period’s most valuable drops over the accounts whose `events` the key may read: `loot` and `pk_loot` events with a value, not on a special world, highest `value_gp` first. Each entry’s `event` is exactly what `/events` serves (with `data.location` removed the same way), though it can appear here a few seconds before the `/events` cursor serves it. Default `period=day`, `limit=10` (at most 50).