Sample Bot API
Docs menu

Status

Is the ER:LC API down?

Checks PRC's ER:LC API right now and says whether it is answering.

GEThttps://api.samplebot.app/v1/erlc-status

Prefer a button to click? This tool also works in your browser at samplebot.app/tools/erlc-status.

Parameters

None. Just call it.

Example request

curl

curl "https://api.samplebot.app/v1/erlc-status" \
  -H "Authorization: Bearer $SAMPLE_API_KEY"

JavaScript (Node 18+)

const res = await fetch("https://api.samplebot.app/v1/erlc-status", {
  headers: { Authorization: `Bearer ${process.env.SAMPLE_API_KEY}` },
});
const { ok, data, text, error } = await res.json();
if (!ok) throw new Error(error.message);
console.log(data);

Python

import os, requests

res = requests.get(
    "https://api.samplebot.app/v1/erlc-status",
    params={},
    headers={"Authorization": f"Bearer {os.environ['SAMPLE_API_KEY']}"},
)
print(res.json()["data"])

Example reply

This is the real reply to the example request (a saved one, since the answer changes over time). Long lists are shortened here.

{
  "ok": true,
  "tool": "erlc-status",
  "data": {
    "state": "up",
    "label": "The ER:LC API is up",
    "latencyMs": 182,
    "checkedAt": "2026-11-11T20:00:00.000Z"
  },
  "text": "The ER:LC API is up (182 ms, checked 2026-11-11T20:00:00.000Z)."
}

Using it in your app

Read data for the values, or post text as it is: it is already formatted for Discord. Check ok first: when it is false, error.message says what went wrong in words you can show your users. Keep your key on your server, never in a web page or a Roblox game.