Logo API Cache Service

Unified High‑Performance
API Caching Layer

Offload repetitive upstream calls, smooth out rate limits, and serve consistent low‑latency data to all internal services. Centralized scheduling spreads load & avoids bursts. Fine‑grained token permissions keep access tight.

Quick Start

GET /erlc/server
Header: X-API-Token: TOKEN

# Force refresh (needs 'fresh' perm)
GET /erlc/server?fresh=1

POST /roblox/username_to_id
{
  "usernames": ["scobra_scope"],
  "excludeBannedUsers": true
}

Responses are raw upstream JSON (or binary) with caching handled transparently. Command POSTs are queued & retried on 429 automatically.

Current Endpoints

Live registry derived directly from server configuration.

PathPermissionMethodCache ModeTTLInterval

Public Statistics

These endpoints are public (no token), cached for 600 seconds, and rate-limited to 20 requests/min per IP. Responses are plain text numbers.

PathMethodDescription
/stats/playercountGETCurrent ERLC player count (derived from /erlc/server/players)
/stats/ALBM/membercountGETDiscord member count for the Alabama Roleplay guild
/stats/AHP/membercountGETDiscord member count for the Alabama Highway Patrol Department
/stats/AFD/membercountGETDiscord member count for the Alabama Fire Department
/stats/APD/membercountGETDiscord member count for the Alabama Police Department
/stats/FBI/membercountGETDiscord member count for the FBI Department
/stats/DOT/membercountGETDiscord member count for the DOT Department
Example Usage