Text translation
To translate text, you can use the/translate
endpoint, which also supports translation of XML and HTML content.
We included text translation examples for our client libraries, too, just to give you an idea of what they look like.
If you chose a free API plan, replace
https://api.deepl.com
with https://api-free.deepl.com
.Example request
Example response
Text improvement
To improve text, you can use the/write/rephrase
endpoint. We included an example below.
The text improvement endpoint (DeepL API for Write) is currently only available to Pro API subscribers via the v2 endpoint.
Write API example: cURL
Example cURL request
Example response