# Extract H2 Headings as Markdown

> Extract H2 Headings as Markdown 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 H2 elements as a Markdown list with a count, requiring no browser.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/h2/markdown?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-headings-as-markdown-9fad88d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nDQya_cp9e94D5wN2xPgl

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-headings-as-markdown-9fad88d5
```

Example prompt: Can you grab all the H2 headings from https://example.com/blog/intro-to-ai and return them as a Markdown list so I can see the article's structure?

## When to prefer this

Choose this endpoint when you need a quick, structured extraction of only H2 headings from a web page as Markdown, especially in agent pipelines or automated workflows where browser rendering is unavailable. Prefer it over general scraping tools when you specifically need H2-level structure (not H1, H3, or full content) at low cost ($0.01/page) with no setup required.

## Known failure modes

- URL is unreachable or returns a non-200 status — empty result or error response
- Page has no H2 elements — returns empty list with count of 0
- URL is behind authentication or bot protection — fetch fails
- Malformed or missing URL parameter — request validation error
- Network timeout fetching the remote page — timeout error

## How this service works

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

## Output

A Markdown-formatted list of every H2 element found on the fetched page, along with a count of how many H2 headings 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-headings-as-markdown-9fad88d5/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)
