# Forms — Element Count

> Forms — 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-16).

Counts form elements on a public webpage or supplied HTML using static parsing, returning a bounded element count result.

## Facts

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

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 forms-element-count-6a8f81d2 -d '<json body>'
```

Example prompt: Can you count how many form elements are on https://example.com/signup — specifically look for forms with the attribute 'id' equal to 'signup-form' and the term 'email'?

## When to prefer this

Choose this endpoint when you need a fast, lightweight count of form elements on a public webpage or raw HTML without needing full JavaScript rendering. It is ideal for auditing form presence, validating HTML structure, or checking how many forms match a specific attribute or term in a static context. Prefer alternatives if the page requires JavaScript execution, authentication, or dynamic rendering to reveal its forms.

## Known failure modes

- URL is not publicly accessible or returns a non-200 status — parsing will fail or return zero results
- JavaScript-rendered forms will not be counted as only static HTML is parsed
- HTML exceeds 100,000 character limit — request will be rejected
- URL exceeds 2,048 character limit — request rejected
- Login-protected or paywalled pages cannot be accessed
- Malformed HTML may cause inaccurate counts

## How this service works

Forms — Element count: Element count for Forms. 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

A bounded element count result indicating how many form elements were found on the page or in the supplied HTML, based on static parsing with the specified attribute, attribute value, and term filters.

## Request schema (JSON Schema)

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