Skip to content

Custom Translation API

A GET request will be sent to the filled API address with application/www-urlencode data:

text: Text/string to be translated

source_language: Source language code zh,en,ja,ko,ru,de,fr,tr,th,vi,ar,hi,hu,es,pt,it/string

target_language: Target language code zh,en,ja,ko,ru,de,fr,tr,th,vi,ar,hi,hu,es,pt,it/string

Expect JSON format data to be returned from the interface:

{

    code:0=Success, a number >0 represents failure , msg:ok=Success, others are the reason for failure, text:Translated text

}

For a free translation API based on cloudflare and m2m100, see: https://github.com/jianchang512/translate-api