Skip to content

DeepL

=this.img = ("[Website](" + this.url + ")") | = ("[Source](" + this.source + ")") | = ("[Documentation](" + this.docs + ")")
= ("> " + this.desc-short)

API🔗

API requests can be used to detect the language of a text and/or translate it. The free plan allows for 500 000 characters of translation per month, sign-up requires a credit card for identification.

Upon subscription the API key can be found in the DeepL account.

The API documentation details how to detect and translate a text through HTTP requests, for example

1
2
3
4
curl -X POST 'https://api-free.deepl.com/v2/translate' \
--header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \
--data-urlencode 'text=Hello, world!' \
--data-urlencode 'target_lang=DE'

with a response in JSON format,

1
{"translations":[{"detected_source_language":"EN","text":"Hallo, Welt!"}]}

Translating documents is also possible.

Implementations