# HTML Table to JSON Scraper

> HTML Table to JSON Scraper is a paid API for AI agents from x240.jvnclk88.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Fetches a public URL and extracts all HTML tables as structured JSON, returning headers and row data for up to 10 tables with up to 200 rows each

## Facts

- Endpoint: POST https://x240.jvnclk88.workers.dev/scrape/tables?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-table-to-json-scraper-51ca4b48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6hRYNRIXqD3PEb5BSZn7H

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 html-table-to-json-scraper-51ca4b48 -d '<json body>'
```

Example prompt: Can you grab the tables from https://en.wikipedia.org/wiki/List_of_countries_by_GDP and give me the data as structured JSON with headers and rows?

## When to prefer this

Use this endpoint when you need to extract structured tabular data from a public web page that has HTML tables — for example, Wikipedia lists, sports standings, financial data, or government statistics tables. It is faster and cheaper than a full-page scrape when the data you need is already in table format. Prefer sibling endpoints if you need full page text, images, links, or product schema data instead of tables.

## Known failure modes

- URL is not publicly accessible or requires authentication — returns an error or empty result
- Page has no HTML tables — returns empty array
- Tables are rendered via JavaScript only (not server-side HTML) — cells may be missing or empty
- URL is malformed or unreachable — returns a fetch error
- Tables exceed 10 count or 200 rows per table — data is silently truncated at those limits
- Rate limiting or bot protection on the target site blocks the fetch

## How this service works

HTML tables on a page converted to JSON - headers plus rows (max 10 tables, 200 rows each)

## Output

A JSON array of table objects, each containing a 'headers' array (column names from the HTML table header row) and a 'rows' array (arrays of cell values). Up to 10 tables are returned per page, each with up to 200 rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public http or https URL to fetch"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-table-to-json-scraper-51ca4b48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x240.jvnclk88.workers.dev](https://www.zero.xyz/host/x240.jvnclk88.workers.dev/llms.txt)
