# extract-headings-as-text

> extract-headings-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 URL and returns all heading elements (h1–h6) as plain-text lines with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/headings/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-headings-as-text-c5e724de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7pIwb4DLMiO2lgnPtnVa2

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-headings-as-text-c5e724de
```

Example prompt: Can you pull all the headings from this page — https://example.com/blog/article — and give them back to me as plain text with a count of how many there are?

## When to prefer this

Choose this endpoint when you need a clean, plain-text list of a page's headings quickly and cheaply ($0.01/call) without spinning up a browser or writing a scraper. It is ideal for agents and pipelines that need structured page outline data — such as SEO audits, content summarization preprocessing, or competitive analysis — and where the output format of plain text lines is sufficient. Prefer sibling endpoints if you need headings in Markdown format (e.g. extract-h6-as-markdown) or JSON.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty result
- Page has no heading elements — returns zero count with empty lines
- URL is behind a login or bot-detection wall — content may not be accessible
- Malformed or missing URL parameter — request fails with a validation error
- Page uses JavaScript-rendered headings — static fetch may miss dynamically injected headings

## How this service works

Extract the page's headings as text: fetches the URL, pulls every headings 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 list of all heading elements (h1 through h6) found on the fetched page, one heading per line, along with a total count of headings extracted. No HTML markup, no browser required.

## 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-headings-as-text-c5e724de/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)
