# x402node Language Detection API

> x402node Language Detection API is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Detects the language of input text using Unicode script analysis and stopword matching, returning the identified language and a confidence score

## Facts

- Endpoint: GET https://api.x402node.dev/text/language
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402node-language-detection-api-a17cd437
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kX2vqWPYXZXzAZ1GzCt-C

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402node-language-detection-api-a17cd437
```

Example prompt: Can you detect what language this text is written in and give me a confidence score: 'Привет, как дела?'

## When to prefer this

Use this endpoint when you need fast, lightweight language identification from raw text using Unicode script heuristics and stopwords — ideal for routing multilingual user input, filtering content by language, or tagging documents before processing. Prefer this over heavy ML-based NLP pipelines when speed and cost matter and you need coverage across CJK, Cyrillic, Arabic, Hebrew, Greek, Thai, and major Latin languages.

## Known failure modes

- Text too short or ambiguous for reliable detection — low confidence score returned
- Mixed-language input may cause misclassification
- Unsupported or rare language returns null or low-confidence result
- Empty text input returns validation error
- Very short single-word inputs may yield unreliable results

## How this service works

Detect the language of input text from Unicode script and stopword analysis with a confidence score, covers Chinese, Japanese, Korean, Cyrillic, Arabic, Hebrew, Greek, Thai and major Latin languages. language detection, detect language, language identifier, what language is this text Accepts payment on Base or Solana — either network works.

## Output

Returns the detected language name and/or ISO language code along with a confidence score indicating how certain the model is about the identification, covering Chinese, Japanese, Korean, Cyrillic, Arabic, Hebrew, Greek, Thai and major Latin-script languages

## Example request

```json
{
 "lang": null,
 "text": "Hello, how are you today?"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input text to analyze (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402node-language-detection-api-a17cd437/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
