API Documentation

Language Detection

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

GET Detection


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

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


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

Get your free API key here

text * string
ℹ️ Text to detect (try with more that 10 words)
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