# NetIntel Language Detection API

> NetIntel Language Detection API is a paid API for AI agents from netintel.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Analyzes text to detect its language, script, confidence level, and quality grade, including multilingual detection and alternative language candidates

## Facts

- Endpoint: POST https://netintel.dev/lang-detect/analyze
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-language-detection-api-905007b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dZcl8BES8RlMsfdzmMOgB

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 netintel-language-detection-api-905007b2 -d '<json body>'
```

Example prompt: Can you analyze this paragraph and tell me what language it's written in, how confident you are, and what script it uses? Here's the text: 'De zon scheen helder aan de hemel terwijl de kinderen buiten speelden in het park.'

## When to prefer this

Use this endpoint when you need rich language detection metadata beyond a simple language code — particularly when confidence scores, script identification, multilingual detection, and quality grading are needed. Prefer this over generic language detection libraries when you need a pay-per-call cloud API with no subscription, structured JSON output, and alternative language candidates for downstream decision-making.

## Known failure modes

- Empty or extremely short text may return low confidence or ambiguous results
- Text with mixed languages may return is_multilingual=true with lower confidence on primary language
- Unsupported or rare scripts may yield low scores and fallback alternatives
- Payment failure (402) if USDC balance is insufficient or x402 wallet not configured
- Malformed request body returns 400 error

## How this service works

Detect the language of any text input using stopword-set matching and Unicode script analysis — returns the detected language, ISO code, a high/medium/low confidence level, and top alternative languages so agents can route multilingual content, trigger translation workflows, and classify text without a paid NLP API.

## Output

Returns a JSON object with: detected language name and ISO code, script type (e.g. Latin, Cyrillic), confidence level (high/medium/low), quality grade (A-F), numeric score (0-100), word count, character length, a flag indicating if the text is multilingual, an array of findings, and a ranked list of alternative language candidates with codes and scores.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to detect the language of (1-10000 characters)"
      }
     },
     "required": [
      "text"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "detected_language": {
       "type": "string"
      },
      "language_code": {
       "type": "string"
      },
      "confidence": {
       "type": "string"
      },
      "script": {
       "type": "string"
      },
      "is_multilingual": {
       "type": "boolean"
      },
      "alternatives": {
       "type": "array"
      },
      "text_length": {
       "type": "number"
      },
      "word_count": {
       "type": "number"
      },
      "score": {
       "type": "number"
      },
      "grade": {
       "type": "string"
      },
      "findings": {
       "type": "array"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "grade": "A",
  "score": 100,
  "script": "Latin",
  "findings": [],
  "confidence": "high",
  "word_count": 41,
  "text_length": 214,
  "alternatives": [
   {
    "code": "pl",
    "score": 0.05,
    "language": "Polish"
   },
   {
    "code": "cs",
    "score": 0.05,
    "language": "Czech"
   },
   {
    "code": "pt",
    "score": 0.02,
    "language": "Portuguese"
   }
  ],
  "language_code": "en",
  "is_multilingual": false,
  "detected_language": "English"
 }
}
```

## More

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