# Level-two Headings — Distinct Attribute Values Extractor

> Level-two Headings — Distinct Attribute Values 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-10-17).

Extracts distinct values of a specified HTML attribute from all H2 heading elements on a given web page or HTML snippet.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-h2-attribute-values?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/level-two-headings-distinct-attribute-values-extractor-3eae4e7e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ggpy6-8pdE2RG5tgxhwwk

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-distinct-attribute-values-extractor-3eae4e7e -d '<json body>'
```

Example prompt: Can you pull all the distinct values of the 'data-kind' attribute from H2 headings on https://example.com/docs — I want to see every unique value used, filtering for headings related to 'guide'?

## When to prefer this

Choose this endpoint when you need to enumerate distinct values of a specific HTML attribute (e.g. id, class, data-*) exclusively from H2 heading elements on a static page. It is ideal for SEO audits, accessibility checks, CMS consistency reviews, or any workflow requiring structured extraction of heading metadata without JavaScript rendering. Prefer this over generic scrapers when you only care about H2-level attribute data and want a cheap, fast, bounded result.

## Known failure modes

- URL is inaccessible or returns non-200 status — no data returned
- Page requires JavaScript rendering — static parser cannot execute JS, headings may be missing
- No H2 elements found on the page — empty result set
- Attribute specified does not exist on any H2 element — empty distinct values list
- HTML input exceeds 100,000 character limit — request rejected
- Attribute name fails regex pattern validation — request rejected
- Term or attribute value filter yields no matching headings — empty result

## How this service works

Level-two headings — Distinct attribute values: Distinct attribute values 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 distinct attribute values result.

## Output

A bounded set of distinct values for the specified HTML attribute found across all H2 heading elements on the page, deduplicated and filtered according to the provided term and attribute value constraints.

## 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-distinct-attribute-values-extractor-3eae4e7e/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)
