# extract-main-as-markdown

> extract-main-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 URL and extracts all HTML <main> elements, returning their content as a Markdown list with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/main/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-main-as-markdown-13f60322
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U200AvbDCTxjhcFP8KXmP

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-markdown-13f60322
```

Example prompt: Can you grab the main content from https://example.com/article and return it as markdown so I can summarize it?

## When to prefer this

Choose this endpoint when you need to extract only the primary <main> HTML element content from a page in Markdown format, without running a browser. It is ideal for agent pipelines that need clean, structured Markdown output from a single URL at low cost ($0.01/call). Prefer it over full-page scrapers when you specifically want main-section content, and over JSON variants when downstream tools expect Markdown.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty result
- Page has no <main> element — returns an empty list with count of zero
- Page requires JavaScript rendering — content may be missing since no browser is used
- Rate limiting or payment failure — call is not executed and returns payment error
- Malformed URL input — request fails with a validation error

## How this service works

Extract the page's main as markdown: fetches the URL, pulls every main 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 all content found within <main> HTML elements on the fetched page, along with a count of how many main elements were found. The response is structured for easy consumption by agents and downstream pipelines.

## 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-markdown-13f60322/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)
