← Back to directory

Detect the language of a text (75 languages, offline) (Tanod)

https://tanod.dev/v1/text/language

Overview

The most likely language (ISO 639-1 and 639-3 code, name, confidence) and 3 alternatives, from an offline ensemble of lingua (Apache-2.0) and langid.py (BSD-2-Clause) over 75 languages; `reliable` is true only with at least 20 letters and confidence 0.6 or more. Body: `{"text": "Bonjour, je voudrais réserver une table pour deux personnes ce soir."}`. Short text is often flagged unreliable; text with no letters is a 422 no_text (not charged). Price: USD 0.001. Free: 10 utilpee

Protocol x402 (POST)
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category language
Provider tanod
Source bazaar
Indexed 2026-10-07 22:29:17

Health

Status healthy
Latency (p50) 405ms
Uptime (30d) 97.0%
Reliability Score 93.5/100
Last Checked 2026-10-31 07:04:49
Last Healthy 2026-10-31 07:04:49
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "text": "Bonjour, je voudrais réserver une table pour deux personnes ce soir." }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "alternatives": [ { "code": "en", "confidence": 0, "iso639_3": "eng", "name": "English" }, { "code": "cy", "confidence": 0, "iso639_3": "cym", "name": "Welsh" }, { "code": "nl", "confidence": 0, "iso639_3": "nld", "name": "Dutch" } ], "chars_analyzed": 68, "language": { "code": "fr", "confidence": 1, "iso639_3": "fra", "name": "French" }, "languages_supported": 75, "letters": 56, "note": "confidence is the mean of two detectors' scores; below 0.6, or under 20 letters, the answer is flagged unreliable", "reliable": true, "source": { "library": "lingua-language-detector 2.1.1 (low-accuracy mode) + langid.py 1.1.6", "license": "Apache-2.0 / BSD-2-Clause", "url": "https://github.com/pemistahl/lingua-py ; https://github.com/saffsd/langid.py" } }, "type": "json" }