🌍 Get Supported Languages
This API returns the list of languages currently supported for translation, including their language codes and whether they can be used as source or target languages.
📋 Basic Information
- Method:
GET
- Path:
https://api.bluente.com/api/20250924/blu_translate/supported_languages
- Authentication: Required —
Authorization: Bearer $BLUENTE_API_KEY
📝 Request Parameters
- Query Parameters: None
- Request Body: None
💡 Example
curl -X GET "https://api.bluente.com/api/20250924/blu_translate/supported_languages" \
-H "Authorization: Bearer $BLUENTE_API_KEY" \
-H "Accept: application/json"
or
fetch("https://api.bluente.com/api/20250924/blu_translate/supported_languages", {
method: "GET",
headers: {
"Authorization": "Bearer $BLUENTE_API_KEY",
"Accept": "application/json"
}
});
✅ Success Response Example
{
"message": "success",
"code": 0,
"data": [
{
"id": 10193,
"language": "Albanian",
"svcCode": "sq",
"source": 1,
"target": 1,
"supported": 1,
"created_at": "2023-11-02 09:15:39",
"updated_at": "2023-11-30 08:27:04",
"name": "Albanian"
},
{
"id": 10194,
"language": "Arabic",
"svcCode": "ar",
"source": 1,
"target": 1,
"supported": 1,
"created_at": "2023-11-02 09:20:11",
"updated_at": "2023-11-30 08:30:45",
"name": "Arabic"
}
]
}
📊 Response Fields
Field | Type | Description |
---|---|---|
message | string | Response message, usually "success" |
code | int | Status code, 0 means success |
data | array | List of supported languages |
└─ id | int | Unique ID of the language |
└─ language | string | Name of the language |
└─ svcCode | string | Language code used in /translate API |
└─ source | int | 1 if this language can be used as source language |
└─ target | int | 1 if this language can be used as target language |
└─ supported | int | 1 if this language is supported |
└─ created_at | string | Timestamp when this language entry was created |
└─ updated_at | string | Timestamp when this language entry was last updated |
└─ name | string | Name of the language (duplicate of language ) |
❌ Error Response Example
{
"message": "internal server error",
"code": 500
}
📌 Notes
- Use the
svcCode
field when calling the/translate
API. - Fields
source
andtarget
indicate whether the language can be used as a source or target language. - Cache this API response on the client side to reduce redundant requests.