Retrieves the image translation task status and translated images for one or more previously submitted images. Note: Please wait 5 minutes after task creation before calling this API, and retry at intervals over 10 seconds to avoid rate limiting. Applicable only for sellers that sell across EU.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
The image translation task IDs for retrieving translation results. Max count: 20
Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The requested translation tasks and the corresponding results. Each task corresponds to the translation of 1 image into 1 target language.
object
The original image to be translated.
object
The URI of the original image.
The URL of the original image.
The ID to identify the image translation task.
The target language to translate the image into. Possible values:
- de-DE
- en-IE
- es-ES
- fr-FR
- it-IT
The translation result. Possible values:
- PROCESSING: Translation is underway and has not yet completed.
- COMPLETED: Translation has completed and results are ready.
- FAILED: Translation did not complete due to an error.
The reason why the translation task failed. Possible values:
- Invalid image URI.
- Internal processing error, please try calling this endpoint again.
- This image can’t be translated. Try a different image.
The translated image.
object
The URI of the translated image.
The URL of the translated image.
Example
{ "code": 0, "data": { "translation_tasks": [ { "original_image": { "uri": "tos-useast2a-i-tulkllf4y5-euttp/748e39ecff38453ab8396a36a53dbb92", "url": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/sample.jpeg" }, "id": "764c6e87eedcea90399a0dafcd572b71", "target_language": "it-IT", "status": "COMPLETED", "fail_reason": "This image can't be translated. Try a different image.", "translated_image": { "uri": "tos-maliva-i-o3syd03w52-us/53b55d6e8cdf1f315affa7e70b45707d", "url": "https://p16-oec-sg.ibyteimg.com/tos-alisg-i-aphluv4xwc-sg/sample.jpeg" } } ] }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}