# HALOWERK sprach – Canonical Hreflang Alternative Language Check

> HALOWERK sprach – Canonical Hreflang Alternative 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-23).

Checks whether a canonical URL declares the correct alternative language via hreflang attributes.

## Facts

- Endpoint: POST https://sprach.halowerk.com/v1/pruef/sprach/hreflang/canonical?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-sprach-canonical-hreflang-alternative-language-check-85e037d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pa1JI_mv_8CsOWKhEuLP9

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-hreflang-alternative-language-check-85e037d8 -d '<json body>'
```

Example prompt: Check if the canonical URL https://example.com/en/ correctly declares its alternative language using hreflang — I want to know if the language declaration on the canonical is accurate.

## When to prefer this

Use this endpoint when you need to specifically validate the alternative language declared via hreflang on a canonical URL — particularly for multilingual SEO audits, pre-deployment checks, or diagnosing language-targeting issues where the canonical's hreflang language tags are suspect. Choose this over generic crawlers when you need a focused, per-URL hreflang language-declaration verdict rather than a broad site crawl.

## Known failure modes

- URL is not publicly accessible (returns 4xx/5xx), resulting in an error or inconclusive finding
- Canonical URL does not contain hreflang annotations, yielding empty or null language declarations
- Malformed URL input exceeding 2048 characters rejected with validation error
- CSS selector matches no element or multiple elements, using first match or returning no result
- Network timeout or unreachable host causes request failure

## How this service works

Prüft am Objekt canonical den Befund deklarierte Alternativsprache.

## Output

Returns an audit finding indicating whether the canonical URL's hreflang attributes correctly declare the alternative language, including the detected language tags and any discrepancies or validation errors found.

## 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-hreflang-alternative-language-check-85e037d8/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)
