# extract-comments-as-text

> extract-comments-as-text 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 extracts all HTML comment nodes, returning them as plain text lines with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/comments/text?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-comments-as-text-291e7c44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gUBkql6ngLi5HiHQB8a2H

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-comments-as-text-291e7c44
```

Example prompt: Can you fetch https://example.com and pull out all the HTML comment nodes as plain text lines, with a count of how many there are?

## When to prefer this

Choose this endpoint when you need a lightweight, no-browser extraction of HTML comment nodes from a page as plain text with a count — ideal for pipelines that need raw line-by-line output without JSON structure overhead. Prefer this over the JSON/CSV/Markdown siblings when downstream processing expects plain text or you are logging/displaying results directly.

## Known failure modes

- URL is unreachable or returns a non-200 status — endpoint may return an error or empty result
- Page has no HTML comments — returns count of zero with empty lines
- Invalid or missing URL input — schema validation error returned
- Page blocks headless/server-side fetches — may return empty or partial content
- Rate limiting or payment failure — x402 payment required error

## How this service works

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

## Output

A plain-text response containing each HTML comment found on the fetched page as a separate line, along with a total count of comment elements 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-comments-as-text-291e7c44/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)
