title: Supported Languages description: Get a list of all supported languages with their codes using the v1 API
Supported Languages (v1)
Get a list of all supported languages with their codes using the v1 API.
Endpoint
GET /v1/supported-languages
Description
Get a list of all supported languages with their codes using the v1 API. TranslatePlus supports 100+ languages for translation.
Headers
X-API-KEY string (required)
: Your API key for authentication
Example Request
curl https://api.translateplus.io/v1/supported-languages \
-H "X-API-KEY: your_api_key"
import requests
url = "https://api.translateplus.io/v1/supported-languages"
headers = {
"X-API-KEY": "your_api_key"
}
response = requests.get(url, headers=headers)
print(response.json())
fetch('https://api.translateplus.io/v1/supported-languages', {
method: 'GET',
headers: {
'X-API-KEY': 'your_api_key'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
const https = require('https');
const options = {
hostname: new URL('https://api.translateplus.io').hostname,
path: '/v1/supported-languages',
method: 'GET',
headers: {
'X-API-KEY': 'your_api_key'
}
};
const req = https.request(options, (res) => {
let responseData = '';
res.on('data', (chunk) => {
responseData += chunk;
});
res.on('end', () => {
console.log(JSON.parse(responseData));
});
});
req.on('error', (error) => {
console.error('Error:', error);
});
req.end();
<?php
$url = 'https://api.translateplus.io/v1/supported-languages';
$apiKey = 'your_api_key';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-KEY: ' . $apiKey
]);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode === 200) {
$result = json_decode($response, true);
foreach ($result['languages'] as $language) {
echo $language['name'] . ' (' . $language['code'] . ')' . "\n";
}
} else {
echo 'Error: ' . $response;
}
Success Response (200 OK)
{
"languages": [
{
"code": "en",
"name": "English"
},
{
"code": "fr",
"name": "French"
},
{
"code": "es",
"name": "Spanish"
}
]
}
Response Fields
| Field | Type | Description |
|-------|------|-------------|
| languages | array | List of supported languages |
| languages[].code | string | Language code (e.g., "en", "fr") |
| languages[].name | string | Language name (e.g., "English", "French") |
Error Responses
See Error Handling for common error responses.
Migration to v2
We recommend migrating to the v2 Supported Languages endpoint which provides enhanced features and better error handling.