osrs-data-hub
Histories

Play sessions

GET
/accounts/{id}/sessions

Play sessions overlapping the range, newest first (activity). Default: the last 30 days.

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

from?string

Start of the range (ISO-8601 date-time). Default: to − 30 days.

Formatdate-time
to?string

End of the range (ISO-8601 date-time). Default: now.

Formatdate-time

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/accounts/4fT9kQ2mXa7B/sessions"
{  "data": {    "account": {      "id": "string",      "name": "string"    },    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z",    "sessions": [      {        "id": "string",        "started_at": "2019-08-24T14:15:22Z",        "ended_at": "2019-08-24T14:15:22Z",        "last_seen_at": "2019-08-24T14:15:22Z",        "duration_ms": 0,        "worlds": [          0        ],        "end_reason": "logout"      }    ]  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z"  }}