# Navigation Blocks HTML Fragment Extraction

> Navigation 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-21).

Extracts HTML fragments from navigation blocks on a webpage or supplied HTML, matching by element attribute and search term without JavaScript rendering.

## Facts

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

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 navigation-blocks-html-fragment-extraction-aede06a6 -d '<json body>'
```

Example prompt: Can you extract the navigation block from https://example.com where the nav element has an id attribute set to 'main-menu'? I'm looking for anything related to 'products'.

## When to prefer this

Choose this endpoint when you need fast, cheap static HTML extraction of navigation blocks from public pages or raw HTML without needing a full browser or JavaScript execution. Ideal for auditing nav structures, sitemap analysis, or competitive research where the nav is server-rendered. Not suitable for SPAs or pages that build navigation dynamically via JavaScript.

## Known failure modes

- URL is unreachable or returns a non-200 status — extraction fails with an error
- Navigation block matching the specified attribute/value not found — returns empty or null result
- Supplied HTML exceeds 100,000 character limit — request rejected
- JavaScript-rendered navigation (client-side only) not captured since no JS rendering is performed
- Invalid attribute pattern (not matching ^[a-zA-Z][a-zA-Z0-9:_-]{0,49}$) causes validation error
- Term not found within the matched navigation block — may return empty match

## How this service works

Navigation blocks — HTML fragment extraction: HTML fragment extraction for Navigation 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

A bounded HTML fragment representing the matched navigation block element from the page or supplied HTML, extracted by static parsing without JavaScript rendering. Returns the raw HTML of the first matching navigation element found using the specified attribute, attribute value, and search term.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><nav id=\"sample\" data-kind=\"example\">Example product guide</nav></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/navigation-blocks-html-fragment-extraction-aede06a6/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)
