๐งฎTable Extractor
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.
๐ Server-side tool
This tool runs on the server (it fetches third-party URLs directly and cannot run in your browser). Use the paid JSON API below โ the worked examples show real server-side results and refresh automatically.
Worked examples
Inline HTML table
GET /api/v1/dev/table-extract?html=%3Chtml%3E%3Cbody%3E%3Ctable%3E%3Ctr%3E%3Cth%3EPlan%3C%2Fth%3E%3Cth%3EPrice%3C%2Fth%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3EFree%3C%2Ftd%3E%3Ctd%3E%240%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3EPro%3C%2Ftd%3E%3Ctd%3E%2429%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%3C%2Fbody%3E%3C%2Fhtml%3E
Result: 1 table extracted โ first has 2 rows
From a page
GET /api/v1/dev/table-extract?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FList_of_countries_by_GDP_(nominal)&limit=3
Result: 3 tables extracted โ first has 1 rows
Machine API (x402)
$0.003 / callThis tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol โ no accounts, no API keys.
GET /api/v1/dev/table-extract?html=%3Chtml%3E%3Cbody%3E%3Ctable%3E%3Ctr%3E%3Cth%3EPlan%3C%2Fth%3E%3Cth%3EPrice%3C%2Fth%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3EFree%3C%2Ftd%3E%3Ctd%3E%240%3C%2Ftd%3E%3C%2Ftr%3E%3Ctr%3E%3Ctd%3EPro%3C%2Ftd%3E%3Ctd%3E%2429%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%3C%2Fbody%3E%3C%2Fhtml%3E HTTP/1.1
Host: agenttools-hub.vercel.app
โ 402 (payment required, instructions in headers)
โ 200 (after X-PAYMENT header; JSON body below)
{
"tool": "dev/table-extract",
"input": {"html":"<html><body><table><tr><th>Plan</th><th>Price</th></tr><tr><td>Free</td><td>$0</td></tr><tr><td>Pro</td><td>$29</td></tr></table></body></html>"},
"result": { "value": 1, "answer": "1 table extracted โ first has 2 rows" }
}Agent docs: /llms.txt ยท OpenAPI spec ยท integration guide
About this tool
Comparison tables, price tables and stats tables are where pages put their real data โ and where markdown conversion gets messy. This extracts every HTML table as structured JSON (headers + rows), from a URL or raw HTML, with a markdown rendering included.
Frequently asked questions
JavaScript-rendered tables?
No โ server-side fetches see served HTML only. Tables injected by client-side scripts are invisible; the tool says when it finds none.
Where is the structured data?
`result.artifacts.tables` โ a JSON array of { headers, rows, markdown } per table.