# extract-h1-as-text

> extract-h1-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 web page and returns all H1 heading elements as plain text lines with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/h1/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-h1-as-text-0743940d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mP5UncSXejmnHs-uEvQhy

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-text-0743940d
```

Example prompt: Can you pull all the H1 headings from https://example.com and give me them as plain text lines?

## When to prefer this

Choose this endpoint when you need a lightweight, structured extraction of only H1 headings from a page without spinning up a browser or full-page scraper. It is ideal for SEO audits, content pipelines, and agent workflows that need just the primary heading text cheaply ($0.01/page) and reliably. Prefer this over full-page scrapers when you only need H1 data and want clean plain-text output rather than raw HTML.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty result
- Page has no H1 elements — returns count of 0 and empty lines
- URL requires JavaScript rendering — since no browser is used, JS-rendered H1s may not be captured
- Malformed or missing URL parameter — returns a validation error
- Rate limiting or payment failure — call not processed

## How this service works

Extract the page's h1 as text: fetches the URL, pulls every h1 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

Returns all H1 elements found on the fetched page as plain text lines, one per H1 element, along with a count of how many H1 tags were found. No HTML markup is included in the output.

## 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-text-0743940d/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)
