discord-export

luxnet / edge · v1.0.0
bearer-gated API bot token stays server-side readiness → /healthz

Two Python exporters for Discord history, and a small read API that keeps the bot token on the server. The CLIs speak to Discord directly; the Worker is for callers that must not hold the token.

Endpoints

GET
/healthz
liveness + whether the bot token is set
GET
/v1/meta
version, allowed guilds, CLI flags, download checksums
GET
/download/dce_export.py
DCE wrapper: day/time filters, threads/, summary + log + errors
GET
/download/discord_export.py
standalone, stdlib only, no DCE binary
GET*
/v1/guilds
allowlisted guilds only
GET*
/v1/guilds/:id/channels
channels with type and parent category
GET*
/v1/guilds/:id/threads/active
active threads with their parent channel
GET*
/v1/channels/:id/messages
one page; limit ≤ 100; before / after / around, one at a time

Call it

curl -s -H "Authorization: Bearer $EXPORT_TOKEN" \
  https://discord.luxnet.cc/v1/guilds

curl -s -H "Authorization: Bearer $EXPORT_TOKEN" \
  "https://discord.luxnet.cc/v1/channels/<channel_id>/messages?limit=100"

Use the CLI

curl -sO https://discord.luxnet.cc/download/dce_export.py
sha256sum dce_export.py   # compare with /v1/meta → downloads
python3 dce_export.py --guild <id> --range t30 --format md \
  --days mon,fri --time-of-day 09:00-18:00 --out ./export