Integration Call
Similar to the desktop software "有道翻译官" (Youdao Translator Official)
API Call
/
andtranslate
are similar
/translate
GET
: Input translationPOST
$content
: Translate content immediately
/translate_force
GET
: Input translationPOST
$content
: Force translate content immediately
/translate_input
GET
: Input translation/translate_ocr
GET
: OCR screenshotPOST
$filepath
: Recognize image text and translate
/translate_crossword
GET
: Crossword translation/translate_mousehook
GET
: Open/close mouse hook/listenclipboard
GET
: Open/close clipboard listener/ocr
GET
: Screenshot OCRPOST
$filepath
: Recognize image text
/ocr_silence
GET
: Silent screenshot OCRPOST
: Recognize image text silently and copy to clipboard
/ocr_qrcode
GET
: Screenshot QR code recognitionPOST
: Recognize QR code in image
/open_window
GET
: Open main window/open_preference
GET
: Open preference window/open_history
GET
: Open history record page/forbiddenhotkey
GET
: Disable/enable global hotkey
Translation example:
shell
#parameter is the content to be translated
curl http://127.0.0.1:50020/translate -d "Hello world."
OCR Example:
shell
#parameter is a file path
curl http://127.0.0.1:50020/ocr -d "D:\\tmp\\stranslate.png"