# HALOWERK laufwerk – Compare Cumulative Layout Shift

> HALOWERK laufwerk – Compare Cumulative Layout Shift is a paid API for AI agents from lauf.halowerk.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-11-17).

Compares the Cumulative Layout Shift (CLS) score between a baseline URL and a candidate URL, optionally enforcing a maximum allowed score regression.

## Facts

- Endpoint: POST https://lauf.halowerk.com/v1/quality/compare-cumulative-layout-shift?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-laufwerk-compare-cumulative-layout-shift-bce51111
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mL7nv_sIRTk1KYcwLlP7g

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-laufwerk-compare-cumulative-layout-shift-bce51111 -d '<json body>'
```

Example prompt: Compare the Cumulative Layout Shift score of https://example.com (baseline) against https://example.com/v2 (candidate), and flag it if the CLS regresses by more than 0.05.

## When to prefer this

Use this endpoint when you need an automated, paid, objective comparison of Cumulative Layout Shift between two specific URLs — especially for CI/CD regression gating, A/B test validation, or pre-deploy quality checks. Prefer this over manual Lighthouse runs when you need a programmatic pass/fail signal with a configurable regression tolerance.

## Known failure modes

- Invalid or unreachable URL returns an error (URL must start with https://, 10–2048 chars)
- Candidate or baseline page renders nothing measurable — CLS score may be zero or null
- Allowed score regression out of range (must be 0–1) returns a validation error
- Network timeout if either URL is slow to load
- Payment not completed via x402 results in HTTP 402 response

## How this service works

HALOWERK laufwerk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.

## Output

A JSON response containing the CLS scores for both the baseline and candidate URLs, a comparison indicating whether the candidate regressed relative to the baseline, and whether the regression exceeded the allowed threshold if one was specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "baseline_url": {
   "type": "string",
   "pattern": "^https://[^@\\s]+$",
   "maxLength": 2048,
   "minLength": 10
  },
  "candidate_url": {
   "type": "string",
   "pattern": "^https://[^@\\s]+$",
   "maxLength": 2048,
   "minLength": 10
  },
  "allowed_score_regression": {
   "type": "number",
   "maximum": 1,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-laufwerk-compare-cumulative-layout-shift-bce51111/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lauf.halowerk.com](https://www.zero.xyz/host/lauf.halowerk.com/llms.txt)
