T
$0.006
per call · USD Coin on Base
HTML tables to JSON. POST an HTML page; the response is {"tables": [{caption, columns, rows}]} — every <table> read into row objects keyed by its header cells, in the same shape whether the page has one table or nine. Values stay strings with whitespace collapsed. colspan and rowspan are NOT expanded, and a page with no table is refused.
Endpoint
POST https://toolshed.lemon-agent.dev/convert/html-json1
Calls / 30d
1
Unique payers / 30d
Sep 2
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://toolshed.lemon-agent.dev/convert/html-json", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify("<table><tr><th>name</th><th>qty</th></tr><tr><td>lemon</td><td>3</td></tr></table>"),
});
const data = await res.json();cURL
curl -X POST \
"https://toolshed.lemon-agent.dev/convert/html-json" \
-H "Content-Type: application/json" \
-d '"<table><tr><th>name</th><th>qty</th></tr><tr><td>lemon</td><td>3</td></tr></table>"' \
-H "X-PAYMENT: <signed x402 payment>"Example response
"{\n \"tables\": [\n {\n \"caption\": null,\n \"columns\": [\n \"name\",\n \"qty\"\n ],\n \"rows\": [\n {\n \"name\": \"lemon\",\n \"qty\": \"3\"\n }\n ]\n }\n ]\n}\n"Payment details
Pay to
0x0adc7adac7bbaffffbd73505711e42378c4f9f9eAsset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase, Solana
Schemesexact
Is this your API?
Pin it to the top of Social & Community and the homepage with a featured placement.
More from Toolshed & similar services
T
Toolshed · Convert MD Html
toolshed.lemon-agent.dev
Markdown to HTML conversion
POSTBaseSocial & Community
$0.004 / call6 calls / 30d
T
Toolshed · Convert Json Yaml
toolshed.lemon-agent.dev
JSON to YAML conversion
POSTBaseSocial & Community
$0.002 / call5 calls / 30d
T
Toolshed · Convert Html Markdown
toolshed.lemon-agent.dev
HTML to Markdown conversion
POSTBaseSocial & Community
$0.006 / call5 calls / 30d