The event log is Network for tokens. Reads need permission to read players. Server routes use /orgs/<org>/servers/<server>/...; the same routes without the server segment cover all servers (/orgs/<org>/logs).
| Route | Returns |
|---|---|
.../logs | Events, newest first, with cursor paging |
.../logs/histogram | Events per time bucket split by type: {from, to, step_ms, origin, total, buckets: [{t, n, by}]} |
.../logs/fields | Fields the matching events carry with top values, from the newest 5,000 events |
.../logs.csv, .../logs.jsonl | The same rows as a file (owner or admin role; 6 exports an hour; up to 1,000,000 rows) |
/orgs/<org>/logs/<ref>/related | Rows that belong together (a listing and its sale, a ban and its revocation); ref is 16 hex characters |
/orgs/<org>/flags | Abuse flags with their evidence rows |
/orgs/<org>/servers/<server>/staff-activity | Punishments per staff member (a moderator's token sees only their own row) |
Filters
preset, types, player, counterparty, currency, amount_min, amount_max, source, subject, flagged, prop.<key>, limit and cursor. For anything richer pass where, a JSON list of clauses:
[{"f":"type","op":"is","v":"eco_transfer"},{"f":"amount","op":"gte","v":100000},{"f":"prop.method","op":"is","v":"command","not":true}]f is a base field (type, source, subject, currency, amount, actor, counterparty, player, server, group) or prop.<key>. op is is, in, exists, prefix, contains, between, gt, gte, lt or lte; not negates. Player values are pseudonymous ids.
curl -G -H "Authorization: Bearer $TOKEN" "https://serverstats.cc/api/v1/orgs/$ORG/servers/$SRV/logs" \
--data-urlencode preset=payments --data-urlencode amount_min=1000 --data-urlencode currency=money --data-urlencode limit=50Amounts are integers in minor units of the in-game currency named in currency; the response lists each currency's scale. Stored punishment reasons are never returned.
Other server routes
| Route | Returns |
|---|---|
.../sources | Detected plugins per data channel with 24-hour counts, currencies, the signed config revision |
.../sources/<source>/preview | A preview for one source |
.../data-settings | Thresholds and data settings |
.../gamemode | The server's gamemode and suggestions |
.../template | The resolved dashboard template: pages, modules, which have data |
.../domain-query?q=<JSON> | Up to 12 dashboard queries in one call |
/catalog/gamemodes?game= | The gamemode registry |
/catalog/templates/<id> | A dashboard template |
curl -G -H "Authorization: Bearer $TOKEN" "https://serverstats.cc/api/v1/orgs/$ORG/servers/$SRV/domain-query" \
--data-urlencode 'q={"range":"7d","queries":[{"id":"volume","q":{"from":"events","types":["eco_transfer"],"measure":"sum_amount","series":"time"}}]}'