Skip to content

About

A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepL Free Local API

A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.

Due to this, you can rest assured this will likely never break, and basically can't be detected, as it is quite literally running a headless web browser for it.

Expected Input JSON

[POST, application/json, http://127.0.0.1:5000/translate]

{
  "text": "hello!",
  "lang": "fr"
}

Expected Output JSON

{
    "translated_text": "Bonjour !",
    "error": ""
}

Example Library

See DeepL.cs for an example of a library, which also gives an example of all of the supported target language strings.

Note

First request of a different language will take up to 2 seconds, any after with the same language will be fast. Changing language has significant delay. This is due to how this works base-level, as it literally will have to click the language dropdown, and click the language button. It checks if you are translating the same language that is already selected, and if so, ignores this step, making it much faster for repeated output language use.

Requirements Install Command For Those New To Python

pip install -r requirements.txt

About

A workaround way to get a DeepL translation API locally while not needing a API key at all. Emulates chromium headlessly and makes a local web api.

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages