List of supported languages

Get a list of translation directions supported by the service.

Request

POST https://translate.api.cloud.yandex.net/translate/v1/languages

Parameters in the request body

The maximum size of the POST request body is 30 KB.

Parameter Description
folderId Required parameter.
ID of your folder.
For more information about how to find the folder ID, see the section Authorization in the API.

Response

The response is returned in JSON format.

{
   "languages": [
        {"language": <language code>},
        ...
        {"language": <language code>}
   ]
} 

Examples

Sample request

export FOLDER_ID=<folder id>
export TOKEN=<IAM-token>
curl -X POST \
     -H "Authorization: Bearer ${TOKEN}" \
     -d "folderId=${FOLDER_ID}" \
     "https://translate.api.cloud.yandex.net/translate/v1/languages"

Response example

The response is returned in JSON format.

{
   "languages": [
        {"language": "az"},
        ...
        {"language": "ja"}
   ]
}