Page cover image

Introduction

Welcome to the developer home of the DeepL API!

Get an API Key and Get Started

New user? Follow these quick steps to get started with the DeepL API.

Step 1: Sign up for the DeepL API at https://www.deepl.com/en/pro#developer

After logging in, you will find your API keys at https://www.deepl.com/en/your-account/keys

Step 2: Test your API key with a request.

Here are a few simple options that you can start with. Choose any one, making sure to replace {YOUR_API_KEY}with the API key you just obtained.

If you signed up for a free API account, replace https://api.deepl.com with https://api-free.deepl.com.

Open a terminal. Then:

Set the API key
export API_KEY={YOUR_API_KEY}
Sample request
curl -X POST https://api.deepl.com/v2/translate \
  --header "Content-Type: application/json" \
  --header "Authorization: DeepL-Auth-Key $API_KEY" \
  --data '{
    "text": ["Hello world!"], 
    "target_lang": "DE"
}'
Sample response
{
  "translations": [
    {
      "detected_source_language": "EN",
      "text": "Hallo, Welt!"
    }
  ]
}

Step 3: Keep building with our client libraries and how-to guides.

Our client libraries let you use the API with six popular programming languages - Python, JavaScript, C#, PHP, Java, and Ruby.

You can also explore our guides, quick examples, and community-contributed code samples and libraries.

Start Developing

  • Cookbook - Explore short tutorials, projects, and use cases for the DeepL API.

  • Guides - Discover longer examples and guides for using the DeepL API.

  • Your first API request - Get started quickly with DeepL.

Community and Support


Have feedback about our docs? We'd love to hear from you. Please share your thoughts in our developer community in Discord.

Last updated