# extract-tables-as-json

> extract-tables-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-13).

Fetches a web page URL and extracts all HTML table elements, returning them as a structured JSON array with a count.

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/tables/json?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-tables-as-json-585a8414
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0rYewRiYmDtTGysqfv1ZJ

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-tables-as-json-585a8414
```

Example prompt: Can you extract all the tables from this page as JSON — https://en.wikipedia.org/wiki/List_of_countries_by_GDP — and tell me how many tables there are?

## When to prefer this

Choose this endpoint when you need to extract all HTML table elements from a static or server-rendered web page without spinning up a browser. It is ideal for pipelines that need structured tabular data in JSON format cheaply ($0.01/call) and quickly. Prefer it over full-page scraping when only tables are needed, and over browser-based tools when the page renders tables server-side.

## Known failure modes

- URL is unreachable or returns a non-200 status — fetch fails with an error
- Page has no table elements — returns empty array with count 0
- Page uses JavaScript-rendered tables (dynamic DOM) — not rendered since no browser is used, so tables may not be found
- Malformed or deeply nested HTML tables may be partially or incorrectly parsed
- Rate limits or payment failures result in 402 or rejection

## How this service works

Extract the page's tables as json: fetches the URL, pulls every tables 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 table found on the page, preserving rows and columns as structured data, plus a count of total tables found.

## 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-tables-as-json-585a8414/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)
