Skip to content

update DeeplTranslator to use POST request with authorization header#303

Open
voothi wants to merge 1 commit intonidhaloff:masterfrom
voothi:20260209095224-deepl-api-update
Open

update DeeplTranslator to use POST request with authorization header#303
voothi wants to merge 1 commit intonidhaloff:masterfrom
voothi:20260209095224-deepl-api-update

Conversation

@voothi
Copy link

@voothi voothi commented Feb 9, 2026

Description

This PR updates the DeeplTranslator to support the recent breaking changes in the DeepL API (effective March 2025).

Changes

  • Changed request method from GET to POST.
  • Moved authentication from query parameters to the Authorization header using the DeepL-Auth-Key scheme.
  • Moved parameters (text, source_lang, target_lang) to the request body.

Motivation

DeepL has deprecated GET requests for translation and the use of auth_key as a query parameter. See: DeepL Breaking Changes Notice.

Fixes #299

@nothead31
@cboutaud

@voothi
Copy link
Author

voothi commented Feb 9, 2026

I have also released a new version v1.0.1 of my wrapper utility which incorporates these changes. It can be used for end-to-end testing in real-world scenarios (e.g., GoldenDict integration).
Link: https://github.com/voothi/20241122093311-deep-translator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeepL translate requests changed from get to post

1 participant