/v3/languages endpoint returns which languages each DeepL API resource supports, along with which optional features (formality, glossaries, tag handling, and more) are available per language. Rather than hardcoding a language list that goes stale, you can query it at startup or on a schedule and use the result to drive dropdowns, feature toggles, and validation in your integration.
This guide walks through the two endpoints you need, shows you how to combine them, and covers the practical patterns you’ll use most.
If you’re currently using the deprecated
GET /v2/languages endpoint, see the migration guide for the differences and how to update your code.What you’ll build
By the end of this guide, you’ll know how to:- Fetch the languages available for a specific DeepL resource
- Read per-language feature availability (e.g. formality, glossary support)
- Use
GET /v3/languages/resourcesto understand which language in a pair must support a feature - Filter languages by
usable_as_sourceandusable_as_targetto populate language selectors correctly
Prerequisites
- A DeepL API key. Find yours at deepl.com/your-account/keys.
- A way to make HTTP requests (curl, an HTTP client, or one of the DeepL SDKs).
Step 1: Fetch languages for a resource
CallGET /v3/languages with the resource query parameter set to the DeepL API resource you’re building for.
The supported resource values are: translate_text, translate_document, glossary, voice, write, style_rules, and translation_memory.
The following example fetches languages for text translation:
en and en-US are separate entries: en is only usable as a source language, while en-US is only usable as a target. Use usable_as_source and usable_as_target to filter the list correctly when populating your language selectors.
The features object lists which optional capabilities that language supports for the given resource. A feature key present in the object means the language supports that capability. The status field indicates whether that support is stable, beta, or early_access.
Step 2: Split source and target languages
Filter the response byusable_as_source and usable_as_target to build separate lists:
Example output
de), but only the target list will include regional variants like en-US and en-GB that aren’t usable as source languages.
Step 3: Check feature availability for a language pair
Thefeatures object on each language tells you what that language supports. But some features (like glossaries) require both the source and target language to support them. To understand which side of the pair must support a feature, call GET /v3/languages/resources.
needs_source_support, needs_target_support, or both must be true. If a field is absent, it defaults to false.
Combine this with the per-language features objects from Step 1 to determine whether a feature is available for a given language pair:
Step 4: Include beta languages (optional)
By default, the endpoint returns onlystable languages and features. To include beta languages and features, add include=beta to the query string:
include=external adds features provided by third-party service partners (relevant for the voice resource). Beta languages and features are subject to change; see Alpha and beta features before using them in production.
Caching the response
The supported language list changes infrequently. Fetching it on every translation request adds unnecessary latency. A practical approach:- Fetch both endpoints at application startup
- Cache the results in memory
- Refresh on a schedule (daily is usually sufficient) or when you receive an unexpected
400for a language code
Next steps
- See the supported languages table for a reference view of all currently stable languages
- Read the language release process to understand how DeepL codes new languages and what to expect when support is added
- If you use glossaries, check which language pairs support them using the pattern in Step 3, or see Glossaries for the full workflow