Method: languages Stay organized with collections Save and categorize content based on your preferences.
Returns a list of supported languages for translation.
HTTP request
GET https://translation.googleapis.com/language/translate/v2/languages
The URL usesGoogle API HTTP annotation syntax.
Query parameters
| Parameters | |
|---|---|
target |
The target language code for the results. If specified, then the language names are returned in the |
model |
The supported languages for a particular translation model. For Cloud Translation - Basic, the value can be |
key |
A valid API key to handle requests for this API. If you are using OAuth 2.0 service account credentials (recommended), do not supply this parameter. |
Response body
If successful, the response body contains data with the following structure:
| JSON representation | |
|---|---|
{"data":{object( | |
| Fields | |
|---|---|
data |
A list of supported language responses. This list will contain an entry for each language supported by the Translation API. |
Authorization
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-translationhttps://www.googleapis.com/auth/cloud-platform
For more information, see theAuth Guide.
GetSupportedLanguagesResponseList
A response list contains a list of separate supported language responses.
| JSON representation | |
|---|---|
{"languages":[{object( | |
| Fields | |
|---|---|
languages[] |
The set of supported languages. |
GetSupportedLanguagesResponseLanguage
A single supported language response corresponds to information related to one supported language.
| JSON representation | |
|---|---|
{"language":string,"name":string,} | |
| Fields | |
|---|---|
language |
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') |
name |
Human readable name of the language localized to the target language. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-30 UTC.