Boss kill leaderboards
Boss kills gained over the last 7 (period=week, default) or 30 days (month), as the guild page ranks them, over the accounts whose hiscores the key may read and that aren’t hidden from the guild. Kills are the rises between hiscore readings; an account’s first reading counts none. boss narrows it to one board.
Authorization
bearerAuth An API key from the hub’s API keys page.
In: header
Query Parameters
One boss, as the hiscores name it, case-insensitive (zulrah). Without it: every boss anyone gained kills of.
1 <= length <= 64week = the last 7 days, month = the last 30. Default week.
Value in
- "week"
- "month"
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/leaderboards/kills?boss=Zulrah"{ "data": { "period": "week", "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "leaderboards": [ { "boss": "string", "entries": [ { "rank": 1, "account": { "id": "string", "name": "string" }, "kills": 1 } ] } ] }, "meta": { "generated_at": "2019-08-24T14:15:22Z" }}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).
Is this Discord account a member? GET
**Service keys only.** For a guild service that signs people in with Discord itself and lets the hub decide who may come in: one Discord user id in, one verdict out. No category is needed. A service key always gets a 200. `member` is true when a hub user with that Discord id exists and is active, with their display `name` and `is_admin`, the hub’s admin flag (for the service’s own admin pages; it widens nothing the key reads). Otherwise `member` and `is_admin` are false and `name` is null: an id the hub doesn’t know and a user who left the guild or was removed look exactly alike. An id that isn’t 15 to 22 digits is a 400, never a 404. For a user key the endpoint doesn’t exist: it gets the 404 of an unknown path, which is also what a hub from before this endpoint answers any key. There is no list and no lookup by name.