# Definition Descriptions — Element Count

> Definition Descriptions — Element Count 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).

Counts HTML definition description (<dd>) elements on a web page or supplied HTML that match a given term and optional attribute filter.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-definition-text-count?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/definition-descriptions-element-count-b2f4b470
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LZ731gfPc6SDP6uHpGuU_

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 definition-descriptions-element-count-b2f4b470 -d '<json body>'
```

Example prompt: Count how many definition description elements on https://example.com/glossary contain the term 'product' and have the attribute 'id' equal to 'sample'.

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.01 USDC) static count of HTML definition description elements matching a term and optional attribute filter on a public page or supplied HTML. Prefer it over full-page scrapers when you only need an element count, not full content extraction. Not suitable for JavaScript-rendered pages, authenticated pages, or non-dd HTML elements.

## Known failure modes

- URL is unreachable or returns non-200 status — count result will be zero or error
- JavaScript-rendered content is not counted — only static HTML is parsed
- HTML exceeds 100,000 character limit — request rejected
- Attribute pattern doesn't match schema regex — validation error
- Term is empty or missing — request rejected (minLength:1)
- Page requires login or access bypass — content not accessible, count may be zero

## How this service works

Definition descriptions — Element count: Element count for Definition descriptions. 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 element count result.

## Output

Returns a bounded integer count of how many <dd> (definition description) HTML elements on the target page or supplied HTML match the specified term and optional attribute/attribute-value filter. One result per call at $0.01 USDC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><dd id=\"sample\" data-kind=\"example\">Example product guide</dd></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/definition-descriptions-element-count-b2f4b470/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)
