Method listLanguages

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, en).

languages[].
name
string

The name of the language (for example, English).