# Web Table Extractor — HTML Tables to JSON

> Web Table Extractor — HTML Tables to JSON is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Fetches a webpage via a French residential Chromium browser and extracts all HTML tables as structured JSON rows with detected headers and captions preserved.

## Facts

- Endpoint: GET https://api.x-402.online/v1/web/tables?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-table-extractor-html-tables-to-json-84c2e0d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_V7We8tAdh_LoefmPprBg0

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 web-table-extractor-html-tables-to-json-84c2e0d6
```

Example prompt: Can you pull all the tables from https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal) and give me the data as JSON rows I can work with?

## When to prefer this

Choose this endpoint when you need to extract structured tabular data from a live webpage, especially when the tables are rendered by JavaScript (since it uses a real Chromium browser). It's ideal for scraping financial data, sports stats, Wikipedia tables, or any HTML table from a site you can't easily parse locally. Prefer it over static HTML parsers when the page requires JS execution to render the tables.

## Known failure modes

- Page has no HTML tables — returns an empty array
- URL is inaccessible or returns a non-200 status — request fails
- Tables are inside iframes or shadow DOM that Chromium cannot reach — may be omitted
- Page requires authentication or login — tables behind a paywall may not be extracted
- Extremely large pages with many tables may be slow or truncated
- Dynamic tables loaded via infinite scroll may not be captured if scroll isn't triggered

## How this service works

Turn every table on a page into JSON rows you can compute on. Every HTML table on a page as JSON rows, with headers detected and captions kept. Fetched through a French residential IP with a real Chromium, so tables rendered by Ja…

## Output

An array of table objects, each containing detected column headers, optional caption text, and an array of row objects where each row maps header names to cell values. JavaScript-rendered tables are included since the page is loaded in a real Chromium browser.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/web-table-extractor-html-tables-to-json-84c2e0d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
