# Page Header Blocks — HTML Fragment Extraction

> Page Header Blocks — HTML Fragment Extraction is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-22).

Extracts header block HTML fragments from a webpage URL or supplied HTML, matching by term, attribute, and attribute value.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-headers-html?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/page-header-blocks-html-fragment-extraction-5798b80d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_23gw0I5G-VZIYeQ9YpbuC

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 page-header-blocks-html-fragment-extraction-5798b80d -d '<json body>'
```

Example prompt: Can you extract the header block HTML fragment from https://example.com/product-guide where the element has an id attribute equal to 'main-header', searching for the term 'product'?

## When to prefer this

Choose this endpoint when you need to extract a specific header block HTML fragment from a static webpage or provided HTML string, identified by a known attribute name and value, without needing JavaScript rendering, login, or full-page scraping. It is well-suited for targeted header element extraction in a cost-effective single-operation call at $0.01 USDC.

## Known failure modes

- URL is inaccessible or returns a non-200 status — no HTML extracted
- No header element found matching the specified attribute and attribute value — empty or null result
- Supplied HTML exceeds 100,000 character limit — request rejected
- Term parameter missing or too short (minLength 1) — validation error
- Attribute name contains invalid characters — pattern validation failure
- JavaScript-rendered content not present since only static parsing is performed

## How this service works

Page header blocks — HTML fragment extraction: HTML fragment extraction for Page header blocks. One public HTTPS page or supplied HTML; static parsing, no JavaScript rendering, login or access bypass. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded html fragment extraction result.

## Output

Returns a bounded HTML fragment for the matched page header block element. The result includes the extracted HTML snippet corresponding to the element identified by the specified attribute, attribute value, and term. Cost is 0.01 USDC per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><header id=\"sample\" data-kind=\"example\">Example product guide</header></body></html>",
   "maxLength": 100000
  },
  "term": {
   "type": "string",
   "default": "product",
   "maxLength": 100,
   "minLength": 1
  },
  "attribute": {
   "type": "string",
   "default": "id",
   "pattern": "^[a-zA-Z][a-zA-Z0-9:_-]{0,49}$",
   "maxLength": 50
  },
  "previous_texts": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 1000
   },
   "default": [
    "Older example"
   ],
   "maxItems": 200,
   "minItems": 0
  },
  "attribute_value": {
   "type": "string",
   "default": "sample",
   "maxLength": 200
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/page-header-blocks-html-fragment-extraction-5798b80d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
