XP series of several accounts
The same series for several accounts at once, in request order (stats): up to 10 accounts with a user key, 50 with a service key. An account the key can’t read makes the whole request 404, exactly like an unknown id.
Authorization
bearerAuth An API key from the hub’s API keys page.
In: header
Query Parameters
Comma-separated account ids: 1 to 10 with a user key, 1 to 50 with a service key. Each must be one whose stats the key may read, else 404.
Comma-separated skill names, case-insensitive (attack,defence, overall); at most 30. Default: Overall. An unknown skill is a 400.
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"
Start of the range (ISO-8601 date-time). Default: to − 7 days.
date-timeEnd of the range (ISO-8601 date-time). Default: now.
date-timeResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/xp?accounts=string"{ "data": { "resolution": "5m", "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "accounts": [ { "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" }}