Skip to main content
To activate support for languages in Beta, your API request needs to specify the enable_beta_languages option. Note: this option should be true for JSON-encoded requests, and 1 for URL-encoded requests. Here are some examples how to do this in plain HTTP, as a cURL command, and using our client libraries.
  • HTTP Request
  • cURL
  • Python
  • Node.JS
  • PHP
  • C#
  • Java
  • Ruby
Example request
POST /v2/translate HTTP/2
Host: api.deepl.com
Authorization: DeepL-Auth-Key [yourAuthKey] 
User-Agent: YourApp/1.2.3
Content-Length: 45
Content-Type: application/json

{
  "text": ["Hello, world!"],
  "target_lang":"ace",
  "enable_beta_languages": true
  }
All examples should return “Hello, world!” translated into Acehnese (ace), one of the new languages: “Hai, donya!”.
Example response
{
  "translations": [
    {
      "detected_source_language": "EN",
      "text": "Hai, donya!"
    }
  ]
}