Skip to main content
POST
/
features
/
language-detection
cURL
curl --request POST \
  --url https://api.hobbo.ai/features/language-detection \
  --header 'Content-Type: application/json' \
  --data '
{
  "review_text": "<string>",
  "review_id": "<string>"
}
'
{
  "lang": "<string>"
}

Body

application/json

Language detection parameters

review_text
string
required

The text to detect the language for. Can be plain text, mixed languages, transliterated text, or code-switched content.

review_id
string | null

Optional identifier for tracking the language detection request

Response

Language detected successfully

lang
string

language code (e.g., 'en', 'es', 'fr', 'hi') representing the detected primary language of the input text