# HALOWERK pfad – Redirect Chain Length Check (Anchor)

> HALOWERK pfad – Redirect Chain Length Check (Anchor) is a paid API for AI agents from pfad.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-23).

Checks the redirect chain length for an anchor (link) object at a given URL, returning a finding about how many hops the redirect chain contains.

## Facts

- Endpoint: POST https://pfad.halowerk.com/v1/pruef/pfad/kette/anker?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-pfad-redirect-chain-length-check-anchor-b57831bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pia_eGSsAokGztf5Cu5qw

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-pfad-redirect-chain-length-check-anchor-b57831bd -d '<json body>'
```

Example prompt: Can you check how long the redirect chain is for the anchor links on https://example.com/page — I need to know if any of them are going through more hops than they should?

## When to prefer this

Use this endpoint when you specifically need to measure the redirect chain length for anchor elements on a webpage — particularly for SEO audits, link hygiene checks, or technical quality assurance workflows. Prefer this over generic HTTP redirect checkers when you need to target a specific anchor element via CSS selector on a page, or when you need a structured finding suitable for automated quality pipelines. This is distinct from sibling endpoints that check redirect loops, unreachable targets, or anchor text length.

## Known failure modes

- Target URL is unreachable or returns a non-2xx status — endpoint returns an error finding
- CSS selector matches no elements or is ambiguous — first match is used or error returned
- URL exceeds maximum length of 2048 characters — validation error
- Redirect chain forms an infinite loop — may return a loop-detected error or truncated chain
- Private/internal IP addresses or non-public URLs are rejected
- Invalid user_agent pattern causes input validation failure

## How this service works

Prüft am Objekt anker den Befund Länge der Weiterleitungskette.

## Output

Returns a structured finding indicating the length (number of hops) of the redirect chain encountered when following the target anchor/link at the specified URL. Includes the chain depth count and status of the anchor object, allowing the caller to determine whether the redirect chain is within acceptable bounds.

## 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-pfad-redirect-chain-length-check-anchor-b57831bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pfad.halowerk.com](https://www.zero.xyz/host/pfad.halowerk.com/llms.txt)
