# Canonical URL Declarations — Element Count

> Canonical URL Declarations — 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-11-05).

Counts the number of canonical URL declaration elements on a given public HTTPS page or supplied HTML snippet via static parsing.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-canonical-count?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/canonical-url-declarations-element-count-08c32f81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qEhtBap3iEO2bSKKJPt2Z

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 canonical-url-declarations-element-count-08c32f81 -d '<json body>'
```

Example prompt: Can you count how many canonical URL declaration elements are on https://www.example.com/product-page? I want to know if there are duplicate or missing canonicals.

## When to prefer this

Choose this endpoint when you need a fast, low-cost static parse to count canonical URL elements on a public page or in raw HTML — especially for SEO audits, pre-publish checks, or automated quality gates. It is not suitable for JavaScript-rendered pages, authenticated pages, or when you need the actual canonical href values rather than a count.

## Known failure modes

- URL is not publicly accessible or returns a non-200 HTTP status
- HTML exceeds the 100,000 character maximum length
- URL exceeds 2,048 character limit
- Page requires JavaScript rendering to expose canonical tags (not supported)
- Page is behind authentication or a login wall (not supported)
- Network timeout or unreachable host

## How this service works

Canonical URL declarations — Element count: Element count for Canonical URL declarations. 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 canonical URL declaration elements were found on the parsed page or in the supplied HTML. The count reflects static HTML parsing without JavaScript rendering, login, or access bypass.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "default": "",
   "maxLength": 2048
  },
  "html": {
   "type": "string",
   "default": "<!doctype html><html><head></head><body><link rel=\"canonical\" href=\"https://www.iana.org/help/example-domains\" id=\"sample\"></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/canonical-url-declarations-element-count-08c32f81/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)
