# extract-main-as-csv

> extract-main-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 <main> HTML elements, returning their content as CSV rows with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/main/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-main-as-csv-58cc4fa2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q6Etv00CSrpDNoAWZm7pZ

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-main-as-csv-58cc4fa2
```

Example prompt: Fetch the main content section from https://example.com and give me everything inside the <main> element as a CSV with a row count.

## When to prefer this

Choose this endpoint when you need the primary content area of a webpage (<main> element) in a structured, tabular CSV format ready for downstream data pipelines, spreadsheets, or agent workflows. Prefer this over text or JSON variants when your pipeline expects CSV rows. Use it when you don't have a browser available and need lightweight, serverless extraction at $0.01 per page.

## Known failure modes

- Page returns non-200 HTTP status — extraction fails with an error response
- Page has no <main> element — returns empty CSV with zero count
- Target URL is unreachable or times out — request error returned
- Page blocks server-side fetching (bot protection) — may return empty or error
- Malformed URL passed — request cannot be fulfilled

## How this service works

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

Returns CSV-formatted rows containing the text and content of all <main> HTML elements found on the fetched page, along with a count of how many main elements were extracted. No browser or JavaScript rendering is 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-main-as-csv-58cc4fa2/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)
