Translate API v2, REST: Translation.listLanguages
Written by
Updated at May 26, 2023
Retrieves the list of supported languages.
HTTP request
POST https://translate.api.cloud.yandex.net/translate/v2/languages
Body parameters
{
"folderId": "string"
}
Field | Description |
---|---|
folderId | string ID of the folder to which you have access. Required for authorization with a user account (see UserAccount resource). Don't specify this field if you make the request on behalf of a service account. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"languages": [
{
"code": "string",
"name": "string"
}
]
}
Field | Description |
---|---|
languages[] | object List of supported languages. |
languages[]. code |
string The language code. Specified in ISO 639-1 format (for example, |
languages[]. name |
string The name of the language (for example, |