# extract-h5-as-json

> extract-h5-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 extracts all H5 heading elements, returning them as a structured JSON array with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/h5/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-h5-as-json-899be8bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qovVrjifTwTH9Oer1lxoh

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-h5-as-json-899be8bf
```

Example prompt: Can you pull all the H5 headings from this page — https://example.com/article — and give them to me as a JSON list?

## When to prefer this

Use this endpoint when you need to specifically extract H5-level headings from a web page in a structured JSON format without spinning up a browser. It is ideal for content auditing pipelines, heading hierarchy analysis, and agent workflows that need a targeted, single-element-type extraction at low cost ($0.01/page). Prefer this over full-page scraping tools when only H5 elements are needed, to keep costs and payload size minimal.

## Known failure modes

- URL is unreachable or returns a non-200 status — empty array or error response returned
- Page has no H5 elements — returns array with count of 0
- Invalid or malformed URL provided — request fails with validation error
- Page is JavaScript-rendered (SPA) — H5 elements injected by JS may not be captured since no browser is used
- Rate limiting or firewall on target site blocks the fetch — returns fetch error

## How this service works

Extract the page's h5 as json: fetches the URL, pulls every h5 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 H5 element text strings found on the fetched page, along with a count of how many H5 elements were discovered. No browser rendering is required; the response is structured and machine-readable.

## 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-h5-as-json-899be8bf/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)
