# DDG Language Detection API

> DDG Language Detection API is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Detects the natural language of a given text input and returns the identified language

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/language-detect?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ddg-language-detection-api-d6fb63c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bLjERisz11KwsjeEKrxU8

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 ddg-language-detection-api-d6fb63c4 -d '<json body>'
```

Example prompt: Can you detect what language this text is written in: 'Bonjour, comment allez-vous aujourd'hui?'

## When to prefer this

Choose this endpoint when you need a cheap ($0.001 USDC per call), machine-payable language detection step in an AI agent pipeline and want to pay per-call via x402 USDC rather than managing a full NLP provider subscription. It is well-suited for high-volume agentic workflows where autonomous micropayments are desirable.

## Known failure modes

- Empty or missing text body returns an error
- Text too short to reliably detect language may yield low-confidence or incorrect result
- Non-textual or binary input bodies may be rejected
- Payment not included or insufficient USDC amount via x402 returns 402 Payment Required
- Malformed JSON body returns a 400-level error

## How this service works

DDG agent-payable service request

## Output

Returns a JSON object with an 'ok' boolean and the detected language information for the provided text, including language name or language code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

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