API
The lookup is available as a free JSON API. No key needed — please keep it reasonable: requests are rate-limited per IP.
Endpoint
GET https://id.jakublgr.com/api/lookup?q=…
POST https://id.jakublgr.com/api/lookup {"q": "…"}Parameters
qAnything the lookup box accepts: an ID, a mention, an invite, message, template or Discord CDN link.Response
ok is true on success, with the result in result. type says what was found; data depends on the type; notes are machine-readable codes with an English text.
Example: /api/lookup?q=discord.gg/discord-developers
{
"ok": true,
"result": {
"id": "613425648685547541",
"type": "invite",
"snowflake": {
"id": "613425648685547541",
"timestamp_ms": 1566322474465,
"created_iso": "2019-08-20T17:34:34Z",
"worker_id": 1, "process_id": 0, "increment": 0
},
"data": {
"code": "discord-developers",
"name": "Discord Developers",
"member_count": 311567,
"online_count": 80409,
"icon": "https://cdn.discordapp.com/icons/…",
"…": "…"
},
"notes": []
}
}Errors
Invalid input returns HTTP 400 with ok false and an error message. Too many requests return HTTP 503 — wait a second and retry.
Webhook URLs contain a secret token: send them with POST and a JSON body {"q": "https://discord.com/api/webhooks/…"} instead of putting them in a URL.
CORS is enabled for GET, so you can call it straight from a browser.
curl "https://id.jakublgr.com/api/lookup?q=80351110224678912"
fetch("https://id.jakublgr.com/api/lookup?q=" + encodeURIComponent("<@80351110224678912>"))
.then((r) => r.json())
.then((j) => console.log(j.result.type, j.result.data));