# Language Detection API (franc, ISO 639-1/639-3)

> Language Detection API (franc, ISO 639-1/639-3) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Detects the language of a given text, returning ISO 639-1 and ISO 639-3 codes with English name and confidence candidates from 82 languages

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/language/detect?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-language-detection-api-franc-39e5a2e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ERGTfqLAQ-6t0PsPR2eXM

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 agent-data-tools-revmesh2074-workers-dev-language-detection-api-franc-39e5a2e0
```

Example prompt: What language is this text written in: 'Bonjour, je voudrais savoir comment annuler ma commande'? Give me the ISO code and how confident you are.

## When to prefer this

Choose this endpoint when you need fast, offline language identification without sending data to a heavy ML model — especially for routing, tagging, or preprocessing before translation. It covers 82 languages and returns both ISO 639-1 and ISO 639-3 codes with scored candidates, making it ideal for pipelines that need structured language metadata rather than just a label. Prefer it over LLM-based detection when latency or cost per call matters and the text is at least a sentence long.

## Known failure modes

- Very short or single-word inputs may yield low-confidence results or incorrect detection
- Heavily mixed-language text may produce unreliable top candidate
- Languages not among the 82 supported by franc will not be correctly identified
- Text with mostly numbers, symbols, or code may return low confidence
- Empty or whitespace-only text may return an error or null result

## How this service works

Detect language of a text: the language as an ISO 639-1 and 639-3 code with its English name, from 82 languages (franc), offline and fast. Use to route a message to the right translator, model or support team, or to tag content by language.

## Output

Returns a JSON object with the top detected language (ISO 639-1 code, ISO 639-3 code, English name), a boolean indicating detection confidence, an array of candidate languages each with name, ISO 639-3 code, and a numeric score, plus the character count of the input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "The text (up to 10,000 characters)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "language": {
   "type": "object",
   "properties": {
    "name": {
     "type": "string"
    },
    "iso6391": {
     "type": "string"
    },
    "iso6393": {
     "type": "string"
    }
   }
  },
  "confident": {
   "type": "boolean"
  },
  "candidates": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     },
     "score": {
      "type": "number"
     },
     "iso6393": {
      "type": "string"
     }
    }
   }
  },
  "characters": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-language-detection-api-franc-39e5a2e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
