# extract-forms-as-json

> extract-forms-as-json is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Fetches a web page and extracts all HTML form elements, returning them as a structured JSON array with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/forms/json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-forms-as-json-82960b93
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2p_NjfGCj6HBN96fiVS3d

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 extract-forms-as-json-82960b93
```

Example prompt: Can you pull all the HTML forms from https://example.com/contact and give them to me as JSON so I can see what fields they contain?

## When to prefer this

Choose this endpoint when you need a lightweight, serverless extraction of HTML form elements from a page without spinning up a headless browser. Ideal for pipelines that need structured JSON output of forms specifically, rather than full-page scraping. Best when the target forms are in static or server-rendered HTML. Prefer this over general-purpose scrapers when you only need form data and want predictable JSON structure at low cost.

## Known failure modes

- URL is unreachable or returns a non-200 status, resulting in a fetch error
- Page has no forms, returning an empty array with count 0
- JavaScript-rendered forms are missed since no browser is used
- Malformed or highly non-standard HTML may cause incomplete form parsing
- Rate limiting or access restrictions on the target URL block the fetch

## How this service works

Extract the page's forms as json: fetches the URL, pulls every forms element and returns them as a JSON array, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.

## Output

A JSON array of all form elements found on the fetched page, each entry representing a form with its fields and attributes, plus a total count of forms found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-forms-as-json-82960b93/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from page.intel.rallylive.ca](https://www.zero.xyz/host/page.intel.rallylive.ca/llms.txt)
