# AgentTools HTML Table Extractor

> AgentTools HTML Table Extractor is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Fetches a webpage by URL or accepts raw HTML and returns every HTML table as structured JSON with headers and rows preserved

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/table-extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-html-table-extractor-81d32912
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hpMw0x0NS5ILO_go09Y5k

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 agenttools-html-table-extractor-81d32912
```

Example prompt: Can you pull all the HTML 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

Choose this endpoint when you need deterministic, structured extraction of HTML tables from a page without relying on a vision model or LLM parsing. It is ideal for pricing pages, comparison tables, stats tables, schedules, and any tabular data embedded in standard HTML table elements. Prefer it over general scraping endpoints when the target data is specifically in <table> tags and you need clean header/row JSON output reliably and cheaply.

## Known failure modes

- URL is unreachable or returns a non-200 status — no tables returned
- Page has no HTML tables (uses CSS grid/flexbox instead) — empty array returned
- SSRF-guarded URLs (private IP ranges, localhost) blocked
- Raw HTML is malformed or truncated — partial extraction or empty result
- limit parameter caps results, potentially missing tables beyond the threshold
- Dynamic tables rendered via JavaScript may not be captured since the endpoint fetches static HTML

## How this service works

Extract every HTML table from a page (or raw HTML) as structured JSON: headers and rows kept intact. The deterministic answer to 'get the pricing table / comparison table / stats table from this page' — no vision model needed. Use this when an agent needs to hTML tables → structured JSON rows and columns.

## Output

Returns an array of extracted tables, each containing a headers array (column names) and a rows array (arrays of cell values), preserving the original table structure from the HTML. Includes metadata such as table count and index.

## 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": [],
     "properties": {
      "url": {
       "type": "string",
       "description": "Or provide raw HTML instead"
      },
      "html": {
       "type": "string",
       "description": "Raw HTML"
      },
      "limit": {
       "type": "number",
       "description": "Max tables"
      }
     }
    }
   },
   "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/agenttools-html-table-extractor-81d32912/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
