# extract-comments-as-json

> extract-comments-as-json 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 a structured JSON array with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/comments/json?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-json-058cc76a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VRaehPlwUqvrlp7_hZcu4

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-json-058cc76a
```

Example prompt: Can you extract all the HTML comments from https://example.com/page and give them back to me as a JSON array so I can see what's hidden in the source?

## When to prefer this

Choose this endpoint when you need structured, machine-readable JSON output of HTML comment nodes specifically, and you want a count alongside the array for downstream logic. Prefer it over text or CSV variants when your pipeline expects JSON. Use it when you don't want to spin up a browser and just need raw server-rendered HTML comment extraction at low cost ($0.01/page).

## Known failure modes

- URL is unreachable or returns non-200 status — endpoint may return an error or empty array
- Page has no HTML comment nodes — returns empty array with count of 0
- Target page blocks server-side fetch requests (e.g. bot protection) — may return error or incomplete data
- Malformed URL input — request may fail with a validation error
- Dynamic JavaScript-rendered comments not captured — server-side HTML only, no browser execution

## How this service works

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

## Output

A JSON array where each element represents one HTML comment node found on the page, plus a total count of comments extracted. The response is structured for direct agent or pipeline consumption with no browser 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-comments-as-json-058cc76a/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)
