# FastX402 HTML Table to JSON

> FastX402 HTML Table to JSON is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-03).

Parses HTML containing one or more table elements and returns structured JSON with headers and rows

## Facts

- Endpoint: GET https://fastx402.tools/html-table-to-json?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-html-table-to-json-19931bca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IuZLTfSfccS6Fu-VO2Jp2

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 fastx402-html-table-to-json-19931bca
```

Example prompt: Convert this HTML table to JSON for me — it has columns for Name and Age with a few rows of data: '<table><thead><tr><th>Name</th><th>Age</th></tr></thead><tbody><tr><td>Alice</td><td>30</td></tr><tr><td>Bob</td><td>25</td></tr></tbody></table>'

## When to prefer this

Choose this endpoint when you have raw HTML markup containing one or more table elements and need structured JSON output without setting up a parsing library. It is ideal for agent workflows that scrape web pages, process HTML emails, or extract tabular data from documents, especially when no API key or account setup is desired and a micro-payment per call is acceptable.

## Known failure modes

- Missing or empty 'html' query parameter returns an error
- HTML with no table elements yields an empty tables array
- Malformed or highly nested HTML may result in incomplete or empty row/header extraction
- Very large HTML strings may hit size limits or timeout
- Colspan/rowspan HTML table structures may not be correctly flattened into rows

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object containing a 'tables' array, where each element represents one HTML table found in the input. Each table object has a 'headers' array (column names as strings) and a 'rows' array of arrays (each inner array is one row of cell values as strings).

## 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",
     "required": [
      "html"
     ],
     "properties": {
      "html": {
       "type": "string",
       "description": "HTML string containing one or more table elements"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "tables": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "rows": {
          "type": "array",
          "items": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         },
         "headers": {
          "type": "array",
          "items": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tables": [
   {
    "rows": [
     [
      "Alice",
      "30"
     ],
     [
      "Bob",
      "25"
     ]
    ],
    "headers": [
     "Name",
     "Age"
    ]
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-html-table-to-json-19931bca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
