DocsTranslation APISupported languages

    🌍 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

    FieldTypeDescription
    messagestringResponse message, usually "success"
    codeintStatus code, 0 means success
    dataarrayList of supported languages
    └─ idintUnique ID of the language
    └─ languagestringName of the language
    └─ svcCodestringLanguage code used in /translate API
    └─ sourceint1 if this language can be used as source language
    └─ targetint1 if this language can be used as target language
    └─ supportedint1 if this language is supported
    └─ created_atstringTimestamp when this language entry was created
    └─ updated_atstringTimestamp when this language entry was last updated
    └─ namestringName 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 and target 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.