# Html Meta Refresh Parse

> Html Meta Refresh Parse is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Parses the delay and target URL from an HTML meta-refresh tag in a supplied web response, returning normalized evidence, the computed finding, and a pass/advisory status.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/html-meta-refresh-parse
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-meta-refresh-parse-f9c04424
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YMOL5Y25oHH_miG9D6Ich

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 html-meta-refresh-parse-f9c04424 -d '<json body>'
```

Example prompt: Before I cache or follow this page response, parse the HTML content for any meta-refresh tag — here's the HTML and the base URL https://example.com — and tell me the delay and target URL if one exists.

## When to prefer this

Choose this endpoint when an AI agent or automated pipeline needs to safely handle untrusted HTML responses before caching, redirecting, or retrying — specifically to detect and validate meta-refresh redirect instructions embedded in page content. It is stateless, deterministic, and requires no API key, making it ideal for security-conscious agent workflows that need to inspect web responses at low cost ($0.001 USDC per call) without side effects.

## Known failure modes

- No meta-refresh tag found in content — returns advisory or pass status with empty target
- Malformed meta-refresh content attribute — returns advisory status with partial evidence
- Content exceeds 8192 character limit — request rejected
- base_url is missing or invalid — target URL cannot be resolved to absolute form
- HTML content is not valid or parseable — returns advisory with limited evidence

## How this service works

Html Meta Refresh Parse: Html Meta Refresh Parse parses bounded meta-refresh delay and target URL from bounded caller-supplied values without an external provider. Call Html Meta Refresh Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Html Meta Refresh Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memor…

## Output

Returns a versioned deterministic JSON object containing: the parsed refresh delay (in seconds), the resolved target URL (absolute, computed against the base URL), normalized evidence from the HTML, the computed finding, and an explicit pass or advisory status indicating whether the meta-refresh is present and well-formed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "content": {
   "type": "string",
   "maxLength": 8192,
   "description": "Content supplied to Html Meta Refresh Parse; used only for this bounded calculation and processed in memory without retention."
  },
  "base_url": {
   "type": "string",
   "maxLength": 8192,
   "description": "Base URL supplied to Html Meta Refresh Parse; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "target_url": "https://example.com/login",
   "delay_seconds": 5
  },
  "schema": "delx/util-html-meta-refresh-parse/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "8cbdc3fe25d5d5f8eab265aca7deadc5d12d56ba7d562d20bea5478d4c992b47",
   "external_calls": 0
  },
  "operation": "web_reliability:html_meta_refresh_parse"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-meta-refresh-parse-f9c04424/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
