# extract-h2-as-text

> extract-h2-as-text 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 webpage and extracts all H2 heading elements, returning them as plain text lines with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/h2/text?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-h2-as-text-499670a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tnGHP66QYff2nclTQzAMP

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-h2-as-text-499670a0
```

Example prompt: Can you grab all the H2 headings from https://example.com/blog and give them to me as plain text lines?

## When to prefer this

Choose this endpoint when you need a lightweight, no-browser extraction of only H2 headings from a page in plain text format. Ideal for agent pipelines that need structured heading data without the overhead of full-page HTML parsing, and when plain text output (rather than JSON or CSV) best suits the downstream step.

## Known failure modes

- URL is unreachable or returns a non-200 status — no H2s returned
- Page has no H2 elements — returns empty result with count of zero
- Payment not processed — request blocked before execution
- URL is behind authentication or a bot wall — fetch fails or returns login page content
- Malformed or missing URL parameter — returns error

## How this service works

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

## Output

A plain text response containing each H2 element found on the page listed as individual lines, along with a count of how many H2 elements were extracted.

## 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-h2-as-text-499670a0/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)
