osrs-data-hub
XP and gains

XP series of one account

GET
/accounts/{id}/xp

XP per skill over time (stats). Defaults: Overall, the last 7 days, resolution=auto.

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

skills?string

Comma-separated skill names, case-insensitive (attack,defence, overall); at most 30. Default: Overall. An unknown skill is a 400.

resolution?string

Bucket size. auto (default): 5m up to 7 days, 1h up to 90 days, 1d beyond. The hub picks a coarser one when the range would have more than 5000 points, or starts before the 5-minute tier’s retention.

Value in

  • "auto"
  • "5m"
  • "1h"
  • "1d"
from?string

Start of the range (ISO-8601 date-time). Default: to − 7 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/xp"
{  "data": {    "account": {      "id": "string",      "name": "string"    },    "resolution": "5m",    "from": "2019-08-24T14:15:22Z",    "to": "2019-08-24T14:15:22Z",    "series": [      {        "skill": "string",        "points": [          [            "2019-08-24T14:15:22Z",            0          ]        ]      }    ]  },  "meta": {    "generated_at": "2019-08-24T14:15:22Z"  }}