# extract-h1-as-json

> extract-h1-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-20).

Fetches a web page and returns all H1 heading elements as a structured JSON array with a count

## Facts

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

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-h1-as-json-31a6bdc6
```

Example prompt: Can you pull all the H1 headings from https://example.com and give them to me as JSON so I can see what the page's main heading says?

## When to prefer this

Choose this endpoint when you need a fast, structured, server-side extraction of H1 headings from a web page without spinning up a headless browser. It is ideal for SEO audits, content pipelines, and agent workflows that need only the H1 element in clean JSON format at low cost ($0.01/page). Prefer alternatives if you need other HTML elements, full-page content, or JavaScript-rendered pages.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty array
- Page has no H1 elements — returns an empty array with count 0
- JavaScript-rendered pages where H1 is injected client-side may not be captured since no browser is used
- Invalid or malformed URL input — likely results in an error response
- Rate limiting or access restrictions on the target page may prevent fetching

## How this service works

Extract the page's h1 as json: fetches the URL, pulls every h1 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 object containing an array of all H1 element text strings found on the page, along with a count of how many H1 elements were found. No browser rendering required — the fetch is server-side.

## 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-h1-as-json-31a6bdc6/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)
