DeepL: API Design β Translation & Document Endpoints
Docs-backedREST API at api-free.deepl.com (free) or api.deepl.com (pro). Text translation: POST to /v2/translate with text, target_lang, and optional source_lang, formality, context, and glossary_id. Supports multiple text segments in a single request (array of strings). Response returns translations with detected source language. Document translation is async: POST document to /v2/document, poll status, retrieve translated document β preserving original formatting. Glossary management: create glossaries mapping sourceβtarget terms for consistent translation. Usage endpoint reports character consumption. The API is clean and purpose-built β no unnecessary complexity. XML and HTML tag handling preserves markup in translations. Split sentence control enables fine-grained segmentation.