Work in progress
This documentation page is currently work in progress.
Not all existing DecAPI endpoints are documented here yet. For the currently active documentation, please visit docs.decapi.me.
Welcome to DecAPI's documentation
Here you will find documentation for DecAPI's endpoints and some examples on how to use them.
If you would like to contribute to the documentation, take a look at the GitHub repository.
Questions and support
If you have any questions or need support, feel free to join the Discord server and ask in the #support
channel.
For other ways of contacting me personally, see the contact page.
Localization / translations
DecAPI now has some basic localization support for certain endpoints. Primarily it's only used for /twitch
endpoints.
To use the localization options, use the two-letter language code defined in ISO 639-1 in the GET
parameter lang. The default value is en
(English) and you would (for example) use de
for German, or no
for Norwegian. English is also used as a "fallback" if a language isn't supported for certain types of messages.
Keep in mind that the translations are provided by volunteers. If you'd like to translate something into another language, take a look at the 'lang' directory on GitHub for examples. Feel free to visit the Discord server if you need assistance getting started.
Translation examples
- Example #1: Accountage with precision 7 and language set to Norwegian - https://decapi.me/twitch/accountage/decicus?precision=7&lang=no
- Example #2: Accountage with only language set to Norwegian - https://decapi.me/twitch/accountage/decicus?lang=no
Currently support languages
You should always check 'lang' directory on GitHub for the most up-to-date list of supported languages, but here's a quick overview:
Language code | Language name |
---|---|
en |
English - Default |
cs |
Czech |
de |
German |
es |
Spanish |
fr |
French |
ko |
Korean |
nl |
Dutch |
no |
Norwegian |
pt |
Portuguese |
ro |
Romanian |
ru |
Russian |
tr |
Turkish |