docs/en/apiservice.md
Navigation Page
Synchronizes with the text content displayed in the main window.
Synchronizes with the text content displayed in the translation history.
Word lookup page. This page is triggered when clicking a word for lookup in /page/mainui.
A consolidated page combining the three pages mentioned above. When clicking a word for lookup in the /page/mainui sub-section of this window, it will not open a new lookup window but will instead display the results in the /page/dictionary sub-section of the current window.
Translation interface
OCR interface
TTS interface
The query parameter text must be specified.
If the parameter id (translator ID) is specified, that translator will be used for translation. Otherwise, the fastest available translation API will be returned.
Returns application/json, including the translator ID id, name name, and translation result result.
The query parameter word must be specified.
If the parameter id (the ID of the dictionary) is specified, it will return the query result of that dictionary as an application/json object, containing the dictionary ID id, dictionary name name, and HTML content result. If the query fails, an empty object will be returned.
Otherwise, it will query all dictionaries and return event/text-stream, where each event is a JSON object containing the dictionary ID id, dictionary name name, and HTML content result.
The query parameter text must be specified.
Returns Mecab's parsing result for text.
The query parameter text must be specified.
Returns audio binary data.
Use POST method to send a JSON request containing an image field with base64 encoded image data.
List all currently available dictionaries
List all currently available translation tools
Parameter text must be specified
Continuously outputs all extracted original texts.
Continuously outputs all translation results.