Event log

Search payments, trades, punishments and more with filters, histograms, field lists, cursors and CSV or JSON Lines export.

REST API referenceUpdated

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).

RouteReturns
.../logsEvents, newest first, with cursor paging
.../logs/histogramEvents per time bucket split by type: {from, to, step_ms, origin, total, buckets: [{t, n, by}]}
.../logs/fieldsFields the matching events carry with top values, from the newest 5,000 events
.../logs.csv, .../logs.jsonlThe same rows as a file (owner or admin role; 6 exports an hour; up to 1,000,000 rows)
/orgs/<org>/logs/<ref>/relatedRows that belong together (a listing and its sale, a ban and its revocation); ref is 16 hex characters
/orgs/<org>/flagsAbuse flags with their evidence rows
/orgs/<org>/servers/<server>/staff-activityPunishments 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:

json
[{"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.

bash
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=50

Amounts 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

RouteReturns
.../sourcesDetected plugins per data channel with 24-hour counts, currencies, the signed config revision
.../sources/<source>/previewA preview for one source
.../data-settingsThresholds and data settings
.../gamemodeThe server's gamemode and suggestions
.../templateThe 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
bash
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"}}]}'