# Level-Two Headings HTML Fragment Extractor

> Level-Two Headings HTML Fragment Extractor 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-18).

Extracts H2 heading elements and their HTML fragments from a given public webpage URL or supplied HTML string, filtered by search term and optional attribute matching.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-h2-html?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/level-two-headings-html-fragment-extractor-e1923afd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z9hutYnxxVvWnfc9JFdL6

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 level-two-headings-html-fragment-extractor-e1923afd -d '<json body>'
```

Example prompt: Pull all H2 headings from https://example.com/product-guide that contain the word 'installation', and show me the ones where the id attribute equals 'install-steps'.

## When to prefer this

Choose this endpoint when you need to extract H2-level headings specifically from a static public webpage or a supplied HTML string, with optional keyword and attribute filtering. It is ideal for document structure analysis, content audits, or feeding heading data into downstream pipelines. Prefer it over generic scrapers when you need heading-scoped extraction with attribute-level precision and per-call cost control at $0.01 USDC.

## Known failure modes

- URL is inaccessible or returns a non-200 status — no content parsed
- Page requires JavaScript rendering — static parser returns empty or incomplete results
- No H2 headings match the provided term or attribute filters — empty result
- HTML input exceeds 100,000 character limit — request rejected
- Attribute pattern does not match allowed format — validation error
- URL exceeds 2048 character limit — request rejected

## How this service works

Level-two headings — HTML fragment extraction: HTML fragment extraction for Level-two headings. 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 the matched H2 heading HTML fragments from the parsed page or supplied HTML, including the element's text content and attributes, filtered by the specified search term and optionally by a specific attribute name and value. Results are bounded to one extraction result 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><h2 id=\"sample\" data-kind=\"example\">Example product guide</h2></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/level-two-headings-html-fragment-extractor-e1923afd/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)
