# extract-text-as-json

> extract-text-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 URL and extracts all readable body text elements, returning them as a structured JSON array with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/text/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-text-as-json-65cbe141
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v8xvH4DLvmAJEiRR2EIYs

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-text-as-json-65cbe141
```

Example prompt: Can you fetch https://example.com/about and give me all the readable body text from that page as a JSON array?

## When to prefer this

Choose this endpoint when you need structured, machine-readable extraction of all readable body text from a webpage without spinning up a browser. Ideal for AI pipelines, content audits, or text ingestion tasks where you want a clean JSON array of text elements rather than raw HTML. Prefer it over HTML scrapers when downstream consumers need pre-parsed text, and over sentence-level or heading-level extractors when you want all body text in one flat pass.

## Known failure modes

- URL is unreachable or returns a non-200 status — empty array or error response returned
- Page has no readable body text (e.g. purely JavaScript-rendered content without SSR) — empty array returned
- Malformed or invalid URL provided — request fails with an error
- Payment not authorized — x402 payment required error before content is returned
- Rate limiting or server-side blocks on the target URL — fetch may fail or return partial content

## How this service works

Extract the page's text as json: fetches the URL, pulls every text element (readable body text) 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 of all readable text elements found on the page (body text nodes), plus a count of how many elements were extracted. Each array entry represents a distinct text element from the page's readable content.

## 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-text-as-json-65cbe141/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)
