{
  "service": "detect_language",
  "displayName": "Detect Language",
  "categories": [
    "AI",
    "Data"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "DETECT_LANGUAGE_API_KEY",
      "description": "Detect Language uses this API key in the Authorization bearer header. Sign up and get the key from your Detect Language account: https://detectlanguage.com/users/sign_up."
    }
  ],
  "homepageUrl": "https://detectlanguage.com/",
  "actions": [
    {
      "id": "detect_language.detect_text",
      "service": "detect_language",
      "name": "detect_text",
      "description": "Detect the language of a single text string with confidence scores.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "description": "The UTF-8 text to detect.",
            "pattern": "\\S"
          }
        },
        "additionalProperties": false,
        "description": "Input parameters for detecting the language of one text string."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "detections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "description": "The detected ISO language code."
                },
                "score": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1,
                  "description": "The confidence score between 0 and 1."
                }
              },
              "additionalProperties": false,
              "description": "One language candidate returned by Detect Language."
            },
            "description": "Language candidates ordered by confidence."
          }
        },
        "additionalProperties": false,
        "description": "Detect Language single-text detection result."
      }
    },
    {
      "id": "detect_language.detect_texts",
      "service": "detect_language",
      "name": "detect_texts",
      "description": "Detect languages for multiple text strings in one batch request.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "texts": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "The UTF-8 text to detect.",
              "pattern": "\\S"
            },
            "description": "The UTF-8 texts to detect, preserving output order.",
            "minItems": 1
          }
        },
        "additionalProperties": false,
        "description": "Input parameters for detecting languages for multiple texts."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "description": "The detected ISO language code."
                  },
                  "score": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1,
                    "description": "The confidence score between 0 and 1."
                  }
                },
                "additionalProperties": false,
                "description": "One language candidate returned by Detect Language."
              },
              "description": "Language candidates ordered by confidence for one input text."
            },
            "description": "Language candidate arrays ordered to match the input texts."
          }
        },
        "additionalProperties": false,
        "description": "Detect Language batch detection result."
      }
    },
    {
      "id": "detect_language.get_account_status",
      "service": "detect_language",
      "name": "get_account_status",
      "description": "Get the current Detect Language account usage, limits, plan, and status.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Input parameters for retrieving Detect Language account status."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "The UTC date reported by Detect Language."
          },
          "requests": {
            "type": "integer",
            "description": "The number of requests sent today."
          },
          "bytes": {
            "type": "integer",
            "description": "The number of text bytes sent today."
          },
          "plan": {
            "type": "string",
            "description": "The Detect Language plan code."
          },
          "planExpires": {
            "anyOf": [
              {
                "type": "string",
                "description": "The plan expiration date when one is set."
              },
              {
                "type": "null"
              }
            ]
          },
          "dailyRequestsLimit": {
            "type": "integer",
            "description": "The daily request limit."
          },
          "dailyBytesLimit": {
            "type": "integer",
            "description": "The daily text-byte limit."
          },
          "status": {
            "type": "string",
            "description": "The Detect Language account status."
          }
        },
        "additionalProperties": false,
        "description": "Detect Language account status."
      }
    },
    {
      "id": "detect_language.list_languages",
      "service": "detect_language",
      "name": "list_languages",
      "description": "List languages supported by Detect Language.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Input parameters for listing Detect Language supported languages."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "languages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "The ISO language code."
                },
                "name": {
                  "type": "string",
                  "description": "The display name of the language."
                }
              },
              "additionalProperties": false,
              "description": "One supported language returned by Detect Language."
            },
            "description": "The supported languages returned by Detect Language."
          }
        },
        "additionalProperties": false,
        "description": "Detect Language supported languages."
      }
    }
  ]
}
