Text Translation
POST https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=es
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
Key | Datatype | Required | Description |
---|---|---|---|
api-version | string | ||
to | string | Language to translate to |
Request Body
{"0"=>{"Text"=>"Hello, what is your name?"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
[{"detectedLanguage":{"language":"en","score":1},"translations":[{"text":"Hola, ¿cómo te llamas?","to":"es"}]}]