# Forms — Term Context Excerpts

> Forms — Term Context Excerpts 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).

Extracts contextual text excerpts surrounding a specified term from HTML form elements on a web page or supplied HTML.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-web-forms-contexts?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-term-context-excerpts-4c23a9c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zVrfuyf5cHgYkvvJpcOyE

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-term-context-excerpts-4c23a9c4 -d '<json body>'
```

Example prompt: Find where the word 'shipping' appears in context within the checkout form (id='checkout-form') on https://example.com/checkout — pull out the surrounding text snippets from those form elements.

## When to prefer this

Choose this endpoint when you need to find and extract contextual text snippets around a specific term within HTML form elements, using static HTML parsing without JavaScript execution. It is purpose-built for forms (not arbitrary page content) and is cost-efficient at $0.01 per call. Prefer it over general web scrapers when the target content is specifically inside form tags and you need term-in-context excerpts rather than full-page extraction.

## Known failure modes

- URL is unreachable or returns a non-200 status — no content extracted
- Page requires JavaScript rendering — static parser returns empty or incomplete results
- Term not found in any form element — returns empty excerpts
- HTML exceeds 100,000 character limit — request rejected
- Term parameter missing or too short — validation error
- Attribute pattern does not match allowed format — validation error

## How this service works

Forms — Term context excerpts: Term context excerpts 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 term context excerpts result.

## Output

Returns bounded text excerpts showing the surrounding context for each occurrence of the specified term within HTML form elements on the target page or supplied HTML, limited to one result set 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><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-term-context-excerpts-4c23a9c4/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)
