# extract-h4-as-csv

> extract-h4-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 webpage and extracts all H4 heading elements, returning them as CSV rows with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/h4/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-h4-as-csv-9cf0fe2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0PLqIqnDm9l9ct7FJSOeo

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-h4-as-csv-9cf0fe2d
```

Example prompt: Can you extract all the H4 headings from this page — https://example.com/docs — and give me the results as a CSV?

## When to prefer this

Choose this endpoint when you specifically need H4-level headings extracted from a webpage in a CSV format ready for pipelines or spreadsheets. It is ideal for lightweight, no-browser scraping tasks focused on a single heading level. Prefer it over general-purpose scrapers when you want clean, structured CSV output with a count, and when H4 is the relevant semantic level for your content audit, competitive analysis, or document structure mapping.

## Known failure modes

- URL is unreachable or returns a non-200 status — extraction fails with an error
- Page has no H4 elements — returns empty CSV with a count of zero
- URL points to a non-HTML resource (e.g. PDF, image) — H4 parsing yields no results
- Malformed or invalid URL provided — request fails immediately
- Page requires JavaScript rendering to display H4 elements — server-side fetch misses dynamic content
- Payment not included or insufficient — returns 402 Payment Required

## How this service works

Extract the page's h4 as csv: fetches the URL, pulls every h4 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 where each H4 heading text found on the fetched page is a separate row, along with a count of the total number of H4 elements found. The output is structured for direct use in data pipelines, spreadsheets, or downstream processing without requiring a browser.

## 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-h4-as-csv-9cf0fe2d/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)
