Skip to content

erlc-api.py Documentation

erlc-api.py v3 is a lightweight sync and async wrapper for the ER:LC PRC API. It uses flat clients, simple aliases, typed dataclasses by default, raw JSON escape hatches, dashboard bundle helpers, flexible commands, default-on process-local rate limiting, command policy guardrails, and explicit lazy utility modules.

I Want To...

I want to... Go to
Install the package Installation and Extras
Understand how the library works How It Works
Make my first API call Getting Started
Choose sync vs async How It Works — Sync vs Async
See every API method Endpoint Reference
Look up a model's fields Models Reference
Send a moderation command Commands Reference
Understand rate limits Rate Limits, Retries, and Reliability
Handle an error Errors and Troubleshooting
Set up webhook verification Webhooks Reference
Build a Discord bot Quickstart: Discord.py
Build a web dashboard Quickstart: Web Backend
Migrate from v2 Migration to v3
Browse all utilities Utilities Reference
Test without hitting the API Testing and Mocking
  1. Installation and Extras
  2. How It Works
  3. Clients and Authentication
  4. Endpoint Reference
  5. Models Reference
  6. Commands Reference
  7. Utilities Reference
  8. Getting Started
  9. Quickstart: Web Backend
  10. Quickstart: Discord.py
  11. Migration to v3

Start

  • Installation and Extras: install commands, extras, supported Python versions, and package/import naming.
  • How It Works: request flow, server keys, typed responses, sync vs async, rate limits, and utility loading.
  • Getting Started: first sync and async calls, commands, multi-server overrides, and common mistakes.
  • FAQ: quick answers for package naming, raw JSON, utilities, and removed v1 behavior.

API Reference

  • Clients and Authentication: constructors, lifecycle, headers, server_key=, global_key=, validation, and raw requests.
  • Endpoint Reference: every flat endpoint method, PRC path, return type, options, examples, and common mistakes.
  • Endpoint Usage Cookbook: task-oriented endpoint recipes for dashboards, logs, queue views, commands, and raw JSON.
  • Models Reference: dataclass fields, helpers, .raw, .extra, .to_dict(), and player identifier parsing.
  • Typed vs Raw Responses: when to use typed dataclasses and when to inspect exact PRC JSON.
  • Commands Reference: plain strings, cmd, dry-run, normalization, validation, and command error behavior.
  • Function List: compact import and method inventory.
  • Permission Levels: ordered enum helpers while preserving raw permission strings.

Utilities And Operations

Reliability, Security, And Testing

Migration


Next Page: Installation and Extras