# extract-headings-as-csv

> extract-headings-as-csv 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 heading elements (h1–h6) returning them as CSV rows with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/headings/csv?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-csv-43432633
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cfRw-SEt5GvlIRRjoL3J_

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-csv-43432633
```

Example prompt: Can you extract all the headings from https://example.com and give me the results as a CSV with the heading level, text, and a total count?

## When to prefer this

Choose this endpoint when you need a structured, machine-readable CSV of all heading elements from a single web page without running a browser. It is ideal for SEO audits, content pipeline ingestion, page outline extraction, or any agent workflow where only heading data is needed and CSV output simplifies downstream processing. Prefer it over full-page scrapers when you want lightweight, heading-only structured output at low cost ($0.01/call).

## Known failure modes

- URL is unreachable or returns a non-200 status — empty result or error response
- Page has no heading elements — CSV returned with zero rows and count of 0
- URL is malformed or missing — request validation error
- Page is JavaScript-rendered and requires a browser — headings may be missing from static fetch
- Payment not completed — x402 payment required response before content is returned

## How this service works

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

## Output

A CSV-formatted response containing one row per heading found on the page, with columns indicating the heading tag level (e.g. h1, h2, h3) and the heading text content, plus a count of total headings 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-headings-as-csv-43432633/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)
