osrs-data-hub
Collection log

The guild’s collection log, and who has an item

GET
/collection-log

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.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

item?string

Who has it: a part of an item name, case-insensitive, 2 to 64 characters (shadow finds Tumeken's shadow). Fills items, at most 30 of them, the most holders first.

accounts?string

Comma-separated account ids: only these, up to 10 with a user key, 50 with a service key, each one the guild board could list (the key reads its events or hiscores and it isn’t hidden from the guild), else 404. Default: every such account.

limit?string

Board rows, 1 to 500. Default 100.

Match^\d{1,16}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/collection-log?item=Tumeken"
{  "data": {    "board": [      {        "account": {          "id": "string",          "name": "string"        },        "logged": 0,        "gained_30d": 0,        "seen": 0,        "latest": {          "item": "string",          "item_id": 0,          "logged_at": "2019-08-24T14:15:22Z"        }      }    ],    "recent": [      {        "account": {          "id": "string",          "name": "string"        },        "item": "string",        "item_id": 0,        "kill_count": 0,        "value_gp": 0,        "logged_at": "2019-08-24T14:15:22Z",        "source": "string"      }    ],    "items": [      {        "item": "string",        "item_id": 0,        "holders": [          {            "account": {              "id": "string",              "name": "string"            },            "logged_at": "2019-08-24T14:15:22Z",            "kill_count": 0          }        ]      }    ]  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z",    "searchable": 0,    "truncated": true  }}