# HTML Table to Data (JSON/CSV Parser)

> HTML Table to Data (JSON/CSV Parser) is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Parses an HTML string containing a table into structured rows and columns, returning the data as JSON or CSV.

## Facts

- Endpoint: GET https://api.gadgethumans.com/html-table?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-table-to-data-json-csv-parser-bfe9a9e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YMjB6-DtHVcB_vvnEa8X_

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-data-json-csv-parser-bfe9a9e1
```

Example prompt: Can you parse this HTML and pull out the table data as JSON? Here's the markup: <table><tr><th>Name</th><th>Age</th></tr><tr><td>Alice</td><td>30</td></tr></table>

## When to prefer this

Use this endpoint when you have raw HTML markup containing a <table> element and need its data extracted into a machine-readable format (JSON or CSV) quickly and cheaply. It is a pure CPU operation with no network calls, making it faster and cheaper than a full headless browser scrape. Prefer it over general web scrapers when you already have the HTML and just need the table parsed — not when you need to fetch a live page first.

## Known failure modes

- HTML input contains no table element — empty or error response
- Malformed or deeply nested HTML causes incorrect row/column mapping
- Multiple tables in HTML may return only the first or require disambiguation
- Very large HTML strings may time out or be truncated
- Non-table HTML structure (e.g. divs styled as tables) may not be parsed correctly

## How this service works

Parse an HTML table into rows and columns as JSON or CSV. Pure CPU, instant.

## Output

A structured representation of the HTML table's contents, returned as JSON (array of row objects keyed by column headers) or CSV (header row followed by data rows), with an ok status flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "html"
     ],
     "properties": {
      "html": {
       "type": "string",
       "description": "HTML containing a table"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-table-to-data-json-csv-parser-bfe9a9e1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
