List of supported languages
Written by
Updated at November 2, 2024
Warning
Support for v1 is discontinued as of February 2019. The methods listed below will be deprecated. Please use v2.
Get a list of translation directions supported by the service.
When using the Translate API, provide your authentication credentials in the Authorization
header of each request.
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 |
This is a required parameter. Your folder ID. |
Response
The response is returned in JSON format.
{
"languages": [
{"language": <language_code>},
...
{"language": <language_code>}
]
}
Examples
Request example
export FOLDER_ID=<folder_ID>
export TOKEN=<IAM_token>
curl \
--request POST \
--header "Authorization: Bearer ${TOKEN}" \
--data "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"}
]
}