Text Translation

POST https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=es

Official documentation

This section covers how to translate text (in the Body) to a specified language (query parameter).

You can find the abbreviations for languages at Language Support.

Request Params

KeyDatatypeRequiredDescription
api-versionstring
tostringLanguage to translate to

Request Body

{"0"=>{"Text"=>"Hello, what is your name?"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

[{"detectedLanguage":{"language":"en","score":1},"translations":[{"text":"Hola, ¿cómo te llamas?","to":"es"}]}]