Skip to main content

Developer API

dzbot exposes a REST API that lets your own tools โ€” a Discord bot, a website, a dashboard, a script โ€” read and change your server's data. Build your own bot or website on dzbot instead of from scratch: dzbot already reads your server's logs and runs the players, their linked accounts, wallets, the shop, tickets and factions. The API is part of dzbot Pro.

Appsโ€‹

In the admin area under Developers you create an app for each bot or website. An app belongs to your organization, is switched on for the servers it works on, and has a rights ceiling: the access rights it may ever use. It holds:

  • API keys (dzk_โ€ฆ) โ€” for your bot or backend. A key belongs to one server and has its own rights within the ceiling. It is shown once; delete it to revoke it.
  • Sign in with dzbot โ€” players sign in on your server's dzbot page, link their game account there if needed, confirm what the app may do and come back to your website. The app acts with their rights and never more. Works even for a website without its own backend. With several servers, players can also sign in once on dzbot.de for all of them โ€” handy for a community site that lists every server with the player's status on each.
  • Webhooks โ€” kills, orders, tickets, wallet transactions and other events sent to your bot, signed with a secret, with retries and a delivery log for 7 days.

The same events also reach a browser live. A key or token can make 120 requests a minute, an app 600 together. Deleting an app stops all of its keys, sign-ins and webhooks at once.

Documentationโ€‹

The developer documentation lives on developers.dzbot.de:

Building with a coding agent such as Claude or Codex? Give it developers.dzbot.de/llms.txt: every developer page as markdown.

Public server dataโ€‹

How full the servers on dzbot.de/servers are โ€” players online and waiting, prime time, activity per quarter hour for the last week and per day for 90 days โ€” can be read by anyone, without a key and without a dzbot server. That includes the console servers that do not run dzbot. It is described on developers.dzbot.de/api/public.

Using this data means accepting the public data terms: credit dzbot.de where you show it, keep to the rate limit, and do not resell the data or offer it as your own.

The developer documentation is in English.