# Link Labels — Distinct Value Extraction

> Link Labels — Distinct Value 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-10-23).

Extracts unique/distinct values of a specified HTML attribute from anchor (link) elements on a webpage or supplied HTML snippet, filtered by a search term.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-links-unique?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/link-labels-distinct-value-extraction-11a3c449
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nFHnDkIhVEqq7hgvAHIWh

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 link-labels-distinct-value-extraction-11a3c449 -d '<json body>'
```

Example prompt: Can you extract all the distinct 'id' attribute values from anchor tags on https://example.com that match the term 'product', and skip any you've already seen like 'Older example'?

## When to prefer this

Use this endpoint when you need to collect and deduplicate specific HTML attribute values from anchor/link elements on a static page, particularly when you want to filter by a keyword term and exclude previously seen values. It is ideal for inventory audits of link metadata, navigation analysis, or building unique identifier lists from web pages without needing JavaScript rendering or authentication bypass.

## Known failure modes

- URL is inaccessible, behind a login wall, or returns non-200 status — no content to parse
- JavaScript-rendered content not present since only static HTML is parsed
- No anchor elements matching the term or attribute found — returns empty result
- HTML input exceeds 100,000 character limit — request rejected
- Attribute name does not match pattern ^[a-zA-Z][a-zA-Z0-9:_-]{0,49}$ — validation error
- Term field empty or missing — minLength of 1 enforced

## How this service works

Link labels — Distinct value extraction: Distinct value extraction for Link labels. 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 value extraction result.

## Output

Returns a deduplicated list of distinct values for the specified HTML attribute found on anchor/link elements matching the given search term, extracted via static HTML parsing from either the provided URL or supplied HTML markup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><a href=\"https://www.iana.org/\" id=\"sample\">Example product guide</a></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/link-labels-distinct-value-extraction-11a3c449/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)
