Returns a list of supported languages for translation.

HTTP request

GET https://api-gl.lingvanex.com/language/translate/v2/languages

Get languages Post languages

Query parameters

Parameters
targetstring

The target language code for the results. If specified, then the language names are returned in the name field of the response, localized in the target language. If you do not supply a target language, then the name field is omitted from the response and only the language codes are returned.
modelstring

Not optional, does not affect anything.
keystring

A valid API key to handle requests for this API.

Response body

If successful, the response body contains data with the following structure:

{
  "data": {
    object(GetSupportedLanguagesResponseList)
  },
}
Fields
dataobject(GetSupportedLanguagesResponseList)

A list of supported language responses. This list will contain an entry for each language supported by the Translation API.

GetSupportedLanguagesResponseList

A response list contains a list of separate supported language responses.

{
  "languages": [
    {
      object(GetSupportedLanguagesResponseLanguage)
    }
  ],
}
Fields
languages[]array (GetSupportedLanguagesResponseLanguage)
The set of supported languages.

GetSupportedLanguagesResponseLanguage

A single supported language response corresponds to information related to one supported language.

{
  "language": string,
  "name": string,
}
Fields
languagestring

Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')
namestring

Human readable name of the language localized to the target language.