DeepL 翻译接口

将 DeepL 的网页功能转换为类似官方文档的 API 接口

典型用例

Documentation

EXAMPLE REQUEST

Host: YOUR_HOST
User-Agent: YourApp
Accept: */*
Content-Length: 54
Content-Type: application/x-www-form-urlencoded

text=Hello, world&target_lang=DE```

EXAMPLE RESPONSE

{
 "translations": [{
  "detected_source_language":"EN",
  "text":"Hallo, Welt!"
 }]
}

* Language supports in progress

TODO

  • Target language
  • Language detection
  • Speed optimization
  • Translation for long strings (Len > 5000)