# Button Labels — Text Length Ranking

> Button 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-17).

Ranks button label texts by character length from a webpage or supplied HTML, optionally filtered by a search term and element attribute.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-buttons-rank?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/button-labels-text-length-ranking-21ab99f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ecYcsoWJ_nO4gueB5eNjp

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 button-labels-text-length-ranking-21ab99f5 -d '<json body>'
```

Example prompt: Rank all the button labels on https://example.com by text length — look for buttons with the attribute id set to 'cta-main' and compare them against my previous labels 'Get Started' and 'Learn More'.

## When to prefer this

Choose this endpoint when you need a quick, static-parse extraction and length-based ranking of button label texts from a known URL or raw HTML snippet, especially when you want to filter by a specific HTML attribute and compare against historically used button texts. Prefer this over general web scrapers when the task is specifically about button label text length analysis without needing JavaScript rendering or login.

## Known failure modes

- URL is unreachable or returns a non-200 status — no button data extracted
- HTML exceeds 100,000 character limit — request rejected
- No buttons found matching the specified attribute/attribute value filter — empty ranking returned
- JavaScript-rendered buttons not captured — static parser only, dynamic content invisible
- Invalid attribute name pattern — request rejected with validation error
- Term string is empty or missing — minimum length of 1 character required

## How this service works

Button labels — Text length ranking: Text length ranking for Button 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

A bounded text length ranking result listing button label texts found on the page or in the supplied HTML, sorted by character length, optionally filtered by search term and attribute. Returns one ranking 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><button id=\"sample\" data-kind=\"example\">Example product guide</button></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/button-labels-text-length-ranking-21ab99f5/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)
