CloudTranslation’s Online Machine Translation API

中文版 | English Version

Version 0.7 (Last Updated: 2018-06-01)

Contents

Service Address

Communication Protocol & Request Methods

Response Format

Example

Request Parameters

Parameter Name Type Required/Optional Description
lang enumerate Required Translation direction, formatted as SrcLangCode_TgtLangCode. Currently, 16 source languages and 14 target languages are supported. See Annex I for details.
domain enumerate Optional Domain of translation. Currently, 8 domains are supported for different translation directions. General engine is used by default when domain is not specified. See Annex II for details.
src string Required Source text, UTF-8 encoded and URL escaped

Response Message

Annex I Supported Language Codes

Source Language Code Target Language Code
Simplified Chinese zh-cn Simplified Chinese zh-cn
Traditional Chinese zh-tw Traditional Chinese zh-tw
English en English en
Deutsch de Deutsch de
French fr French fr
Spanish es Spanish es
Portuguese pt Portuguese pt
Italian it Italian it
Russian ru Russian ru
Japanese ja Japanese ja
Indonesian id Indonesian id
Malaysian ms Malaysian ms
Vietnamese vi
Tibetan bo Tibetan bo
Uyghur ug Uyghur ug
Mongolian mn

Annex I Supported Domain Codes

Domain Code Supported Translation Direction
General (Default) Any source language to any target language
Medicine medicine zh-cn_en, en_zh-cn, de-en, en-de, fr-en, en-fr, es-en, en-es, pt-en, en-pt, it-en, en-it
Finance finance zh-cn_en, en_zh-cn, de-en, en-de, fr-en, en-fr, es-en, en-es, pt-en, en-pt, it-en, en-it
E-commerce ecommerce zh-cn_en, en_zh-cn
Oral Dialogue oral zh-cn_en, en_zh-cn, de-en, en-de, fr-en, en-fr, es-en, en-es, pt-en, en-pt, it-en, en-it, ru-en, en-ru, ja-en, en-ja
Telecommunication **** (Internal use only) zh-cn_en, en_zh-cn
Legal law de-en, en-de, fr-en, en-fr, es-en, en-es, pt-en, en-pt, it-en, en-it, ja-en, en-ja
News news de-en, en-de, fr-en, en-fr, es-en, en-es, pt-en, en-pt, it-en, en-it, ru-en, en-ru, ja-en, en-ja
News szd (Shenzhen Daily special engines) zh-cn_en, en_zh-cn
Software software de-en, en-de, fr-en, en-fr, es-en, en-es, pt-en, en-pt, it-en, en-it, ru-en, en-ru, ja-en, en-ja