Sign inSign up

zu1k/deepl

By zu1k

Updated over 4 years ago

deepl free api

Image
79

10K+

zu1k/deepl repository overview

DeepL Free API

Start an instance

docker run -itd -p 8080:80 zu1k/deepl

API

Request
  • Method: POST
  • Path: /translate
  • Content-Type: application/json
{
    "text": "text to be translated",
    "source_lang": "auto",
    "target_lang": "ZH"
}

language supported:

  • DE: 德语
  • EN: 英语
  • ES: 西班牙语
  • FR: 法语
  • IT: 意大利语
  • JA: 日语
  • NL: 荷兰语
  • PL: 波兰语
  • PT: 葡萄牙语
  • RU: 俄语
  • ZH: 中文
  • BG: 保加利亚语
  • CS: 捷克语
  • DA: 丹麦语
  • EL: 希腊语
  • ET: 爱沙尼亚语
  • FI: 芬兰语
  • HU: 匈牙利语
  • LT: 立陶宛语
  • LV: 拉脱维亚语
  • RO: 罗马尼亚语
  • SK: 斯洛伐克语
  • SL: 斯洛文尼亚语
  • SV: 瑞典语
Response

Content-Type: application/json

{
    "code": 200,
    "msg": "only if there is an error",
    "data": "translate result"
}

code:

  • 200: ok
  • 500: internal error
  • 404: what are you doing?

msg: if the code is not 200

data: if the code is 200

https://github.com/zu1k

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

over 4 years ago

docker pull zu1k/deepl