# Articles Element Count

> Articles 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-21).

Counts HTML elements within article content on a public webpage or supplied HTML, using a configurable term and attribute filter.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-articles-count?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/articles-element-count-db2903f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j_m4R5-wTDDVSin3RpUMh

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 articles-element-count-db2903f2 -d '<json body>'
```

Example prompt: Count how many article elements with the attribute 'data-kind' equal to 'example' appear on https://example.com/blog — use static HTML parsing, no JavaScript rendering needed.

## When to prefer this

Choose this endpoint when you need a lightweight, fast, static count of HTML elements on a public webpage or known HTML string, filtered by attribute and value. It is ideal for monitoring element counts, auditing CMS output, or checking page structure without needing full JavaScript rendering or dynamic content support. At $0.01 USDC per call it is cost-effective for frequent or batch checks against static HTML content.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — count result may be zero or an error is returned
- Page requires JavaScript rendering to load content — elements added dynamically will not be counted
- Supplied HTML exceeds 100,000 character limit — request rejected
- Term or attribute pattern does not match schema constraints — validation error returned
- URL redirects to a login page or paywalled content — parsed HTML will not contain expected elements

## How this service works

Articles — Element count: Element count for Articles. 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 single bounded integer count representing the number of HTML elements on the parsed page or supplied HTML that match the specified term, attribute, and attribute value filters. No JavaScript rendering is performed; parsing is static only.

## Request schema (JSON Schema)

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