osrs-data-hub
Histories

One day of an account

GET
/accounts/{id}/day

What the account did on a date, or on up to 7 dates (from/to), in one call: sessions (activity), gains (stats), events counted by type with the most valuable and the collection log slots (events), and places: the trail as stays at named places, with the time spent at each (location_history). Each section is what its own endpoint serves for the same instants and is left out when the key can’t read its category; the account 404s when the key reads none of them. A date is a calendar date in the key creator’s time zone (their settings; UTC for a service key), as timezone says. Default: today, up to now. A date that hasn’t started yet is a 400. The MCP tool day_summary answers with this.

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

date?string

One date (YYYY-MM-DD) in the key creator’s time zone (UTC for a service key). Default: today. Not with from/to.

Formatdate
from?string

The first date of a range, with to: at most 7 dates.

Formatdate
to?string

The last date of the range, included.

Formatdate

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/accounts/4fT9kQ2mXa7B/day?date=2026-11-02"
{  "data": {    "account": {      "id": "string",      "name": "string"    },    "timezone": "string",    "dates": {      "from": "2019-08-24",      "to": "2019-08-24"    },    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z",    "sessions": {      "count": 0,      "total_ms": 0,      "list": [        {          "started_at": "2019-08-24T14:15:22Z",          "ended_at": "2019-08-24T14:15:22Z",          "duration_ms": 0,          "worlds": [            0          ]        }      ]    },    "gains": {      "total": 0,      "skills": [        {          "skill": "string",          "xp": 0        }      ]    },    "events": {      "count": 0,      "by_type": {        "property1": 0,        "property2": 0      },      "top": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "type": "string",          "account": {            "id": "string",            "name": "string"          },          "occurred_at": "2019-08-24T14:15:22Z",          "received_at": "2019-08-24T14:15:22Z",          "value_gp": 0,          "item_id": 0,          "npc_id": 0,          "skill": "string",          "level": 0,          "tier": "string",          "points": 0,          "special_world": true,          "data": {            "property1": null,            "property2": null          },          "title": "string",          "line": "string"        }      ],      "collection_log": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "type": "string",          "account": {            "id": "string",            "name": "string"          },          "occurred_at": "2019-08-24T14:15:22Z",          "received_at": "2019-08-24T14:15:22Z",          "value_gp": 0,          "item_id": 0,          "npc_id": 0,          "skill": "string",          "level": 0,          "tier": "string",          "points": 0,          "special_world": true,          "data": {            "property1": null,            "property2": null          },          "title": "string",          "line": "string"        }      ],      "truncated": true    },    "places": {      "stays": 0,      "teleports": 0,      "list": [        {          "name": "string",          "region": 0,          "ms": 0,          "visits": 1        }      ],      "truncated": true    }  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z"  }}