API reference
Access
All methods below use GET. Base URL: https://lastasylum.gg/api/v1. Create a key in Keys with a paid subscription; the trial does not include API access. Keep keys out of URLs and public browser code.
curl -H "X-API-Key: $LA_API_KEY" https://lastasylum.gg/api/v1/quota
The quota is shared by the account and all its keys. /quota does not consume it. A request accepted with a valid key may consume quota even if lookup or data retrieval then fails. Daily reset is at 00:00 UTC; read current limits from /quota. A perMin value of 0 disables the minute limit.
Keep player and alliance IDs as strings. Times are Unix seconds except alliance roster[].joined (Unix milliseconds); donation day uses YYYYMMDD. null, missing fields and empty arrays do not prove a zero value. asOf describes the overall profile; individual seen times may differ. Online status and last login time are not provided. No update frequency is guaranteed. Dates of data (asOf, seen, disbanded, history and detected events) have day precision: Unix timestamps at 00:00 UTC. Histories contain the last value of each day. Snapshot dates in API bodies and headers use the same precision. Game event times, alliance join times and quota resets retain their original precision.
| Field | Meaning |
|---|---|
Authorization / X-API-Key | Bearer la_… or X-API-Key: la_…; use one header. |
limits.perDay / limits.perMin / limits.used | /quota: daily limit / minute limit / used today. |
reset / X-RateLimit-Reset | Daily reset time, Unix seconds. |
X-RateLimit-Limit / X-RateLimit-Remaining | Daily limit / remaining after this request. |
JSON example (fictional data)
{
"limits": {
"perDay": 1000,
"perMin": 60,
"used": 12
},
"reset": 1793664000
}