# Link Labels — Text Length Ranking

> Link Labels — Text Length Ranking 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-19).

Ranks link label texts by length from a web page or supplied HTML, filtered by element attribute and compared against a reference term and previous texts

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-links-rank?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/link-labels-text-length-ranking-2dc64846
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_58EVZc4myxUA1Zl49kO9v

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-text-length-ranking-2dc64846 -d '<json body>'
```

Example prompt: Can you fetch https://example.com/products, find the link with id='nav-primary', and rank its label text by length against the term 'product guide' and my previous labels ['Shop now', 'Learn more']?

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.01 USDC) static parse of link label texts ranked by length from a public page or known HTML, especially when comparing labels against a reference term or tracking changes over previous text versions. Prefer this over general scraping when your goal is specifically text-length ranking of anchor elements filtered by an HTML attribute, and the target page does not require JavaScript rendering or authentication.

## Known failure modes

- URL is inaccessible, behind a login, or requires JavaScript rendering — static parsing only, so dynamic content won't be captured
- No links matching the specified attribute and attribute_value found on the page — empty result
- HTML input exceeds 100,000 character limit — request rejected
- term field empty or missing — validation error
- Malformed attribute pattern not matching regex — request rejected
- URL resolves to non-HTML content — parsing fails

## How this service works

Link labels — Text length ranking: Text length ranking 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 text length ranking result.

## Output

Returns a bounded text length ranking result containing the anchor/link label texts found matching the specified attribute and value, ranked by character length, with context comparing them to the supplied reference term and previous text entries.

## 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-text-length-ranking-2dc64846/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)
