osrs-data-hub
Collection log

Collection log

GET
/accounts/{id}/collection-log

The account’s collection log page: total is "Collections Logged" from the official hiscores (hiscores), the whole log’s count; slots are the slots the hub saw logged since the account was paired (events), newest first, each with the kill count the plugin read and the loot source of the drop that came with it. groups counts every matching slot by source. The key needs one of the two categories on the account, else 404; the part it can’t read is null. Filter with source and since; limit cuts slots (default 100, at most 500) and meta.truncated says so.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from the hub’s API keys page.

In: header

Path Parameters

id*string

The account's public id (opaque, base62), as id in /accounts.

Match^[0-9A-Za-z]{1,64}$

Query Parameters

source?string

Only the slots that came with a drop from this source, case-insensitive (Zulrah). Slots without a source (pets, shop rewards) never match.

Length1 <= length <= 64
since?string

Only slots logged at or after this time (ISO-8601 date-time).

Formatdate-time
limit?string

Slots to list, newest first, 1 to 500. Default 100. groups still counts every slot that matched.

Match^\d{1,16}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/accounts/4fT9kQ2mXa7B/collection-log?source=Zulrah"
{  "data": {    "account": {      "id": "string",      "name": "string"    },    "total": {      "logged": 0,      "rank": 0,      "mode_rank": 0,      "mode": "regular",      "fetched_at": "2019-08-24T14:15:22Z",      "gained_30d": 0    },    "slots": [      {        "item": "string",        "item_id": 0,        "kill_count": 0,        "value_gp": 0,        "logged_at": "2019-08-24T14:15:22Z",        "source": "string"      }    ],    "groups": [      {        "source": "string",        "count": 1      }    ]  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z",    "count": 0,    "truncated": true  }}