Chuyển tới nội dung chính

Dịch hàng loạt văn bản/HTML

Tổng quan API​

  • Kết quả dịch hàng loạt

URL API​

Tham số yêu cầu​

Body​

TrườngLoạiGiải thíchBắt buộc
formatstringGiá trị tùy chọn: text,html
Giá trị mặc định: text
sai
fromLangstringSource language, two-letter language code(ISO 639-1 standard), default value: auto
sai
toLangstringTarget language, two-letter language code(ISO 639-1 standard)
đúng
sourceTextMapobjectKey-value pair format
key is the unique identifier of the text to be translated, can be used to correspond to source text,
value is the text to be translated.
eg.: { "1": "男士T恤衫", "2": "夏季裙子"}
đúng
scenestringTranslation scene, optional values:
title(product title)
description(product detailed description)
chat(for the communication scenario with e-commerce buyers and sellers)
other(other common scenarios)
đúng

Xác thực bảo mật​

mẹo

Vui lòng vào Console-API Keys để tạo apikey của bạn.

Hãy thêm apikey vào header của yêu cầu. Vui lòng tham khảo ví dụ bên dưới.

Ví dụ yêu cầu​

Ví dụ phản hồi​

Loading...