API Documentation

Language Detection

Free powerful language detection JSON API from more than 400 languages.

GET Detection

Detection

Language detection service. It accepts text and returns result with detected language code and score.

GET https://api.happi.dev/v1/language

Parameters

API Key * Text
You can also send your API key using the header x-happi-key.

Get your free API key here

text * string
Headers
                                    
JSON Response
                                    

Response Definition

{
  "success": boolean,
  "text": {
    "data": text,
    "length": integer
  },
  "length": integer,
  "langs": [
    {
      "code": text,
      "name": text,
      "confidence": numeric,
      "url": text
    }
  ]
}

Error Response

Check http response code
{
  "success": boolean,
  "error": text
}
Title Messsage