Available languages
Returns list of all available languages.
Note
List of all supported languages with their respective codes can be found in our Supported Languages section.
Request type: POST
API Endpoint
https://api.translized.com/language/available
Parameters
None
Example requests
- cURL
- Javascript Fetch
- Javascript Axios
curl -X POST -H "Content-Type: application/json" \
-H "api-token: 42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6" \
https://api.translized.com/language/available
fetch('https://api.translized.com/language/available', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error(error));
const response = await axios.post(
'https://api.translized.com/language/available',
{
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
}
);
const data = response.result;
Example response
{
"result": [
{
"code": "hy",
"label": "Armenian"
},
{
"code": "az",
"label": "Azerbaijani"
},
{
"code": "be",
"label": "Belarusian"
},
{
"code": "zh",
"label": "Chinese"
}
]
}