# HALOWERK sprach – HTML-Element Declared Document Language Check

> HALOWERK sprach – HTML-Element 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-23).

Checks the declared document language on an HTML element of a given web page and returns the found language value.

## Facts

- Endpoint: POST https://sprach.halowerk.com/v1/pruef/sprach/lang/html-element?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-html-element-declared-document-language-check-d851a31c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RgSEtjzXPKLFY-wkMGzkV

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-html-element-declared-document-language-check-d851a31c -d '<json body>'
```

Example prompt: Can you check what language is declared in the HTML element of https://example.com — I want to know if the lang attribute is set correctly on the page?

## When to prefer this

Use this endpoint when you need to specifically verify the lang attribute declared on the root HTML element of a webpage, as opposed to language declarations in hreflang tags, meta descriptions, sitemaps, or text blocks. It is the right choice for HTML-level language auditing, accessibility compliance checks (WCAG), and SEO validation where the html[lang] attribute is the primary concern.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status
- Target page has no HTML element or no lang attribute present
- CSS selector matches no element or more than one element
- URL is not a public HTTP/HTTPS address
- Input URL exceeds maximum length of 2048 characters
- Page content is not valid HTML
- Network timeout when fetching the target URL

## How this service works

Prüft am Objekt html-element den Befund deklarierte Dokumentsprache.

## Output

Returns the language value declared in the lang attribute of the HTML element for the given URL, along with a finding status indicating whether a valid language declaration was found, missing, or malformed.

## 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-html-element-declared-document-language-check-d851a31c/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)
