# HALOWERK sprach – Canonical Declared Document Language Check

> HALOWERK sprach – Canonical Declared Document Language Check is a paid API for AI agents from sprach.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-18).

Checks the declared document language on the canonical object of a webpage and returns the finding.

## Facts

- Endpoint: POST https://sprach.halowerk.com/v1/pruef/sprach/lang/canonical?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-sprach-canonical-declared-document-language-check-1dbafd3d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TxxXi2UuxbBRGQnLfspVG

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 halowerk-sprach-canonical-declared-document-language-check-1dbafd3d -d '<json body>'
```

Example prompt: Check what document language is declared on the canonical page at https://example.com/de/about and tell me if it's correctly set to German.

## When to prefer this

Use this endpoint when you need to programmatically verify the declared document language specifically on the canonical version of a webpage, especially for SEO audits, internationalization QA, or automated multilingual site monitoring. Prefer this over generic scraping tools when you need a structured, normalized finding about the lang declaration rather than raw HTML.

## Known failure modes

- Target URL is not publicly accessible (returns connection error or non-2xx HTTP status)
- Canonical element not found on the page (no finding possible)
- URL exceeds maximum length of 2048 characters
- CSS selector matches no element or is ambiguous
- Invalid or malformed URL provided in the ziel field
- Page uses JavaScript rendering that prevents static language-tag detection
- Rate limiting or payment failure resulting in 402 response

## How this service works

Prüft am Objekt canonical den Befund deklarierte Dokumentsprache.

## Output

The endpoint returns a finding (Befund) about the declared document language on the canonical object of the target URL. This typically includes the detected language tag or value, and whether a language declaration is present and valid, enabling the caller to determine correctness of language metadata for SEO and internationalization purposes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ziel": {
   "oneOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1,
     "description": "Öffentliche HTTP(S)-Adresse; bei DNS-Befunden Domain oder öffentliche IP."
    },
    {
     "type": "object",
     "required": [
      "adresse"
     ],
     "properties": {
      "adresse": {
       "type": "string",
       "maxLength": 2048,
       "minLength": 1
      },
      "selektor": {
       "type": "string",
       "maxLength": 240,
       "minLength": 1,
       "description": "CSS-Selektor: genau ein Objekt, sonst erster Treffer des Objektfilters."
      },
      "vergleich": {
       "type": "string",
       "maxLength": 2048,
       "description": "Öffentliche Vergleichsadresse für Link-, Sitemap- oder Sprachbefunde."
      },
      "user_agent": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{1,80}$"
      },
      "dkim_selektor": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{1,63}$"
      }
     },
     "additionalProperties": false
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-sprach-canonical-declared-document-language-check-1dbafd3d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sprach.halowerk.com](https://www.zero.xyz/host/sprach.halowerk.com/llms.txt)
