71trust / 100

Dev Table Extract

by AgentTools in Search & web

x402 APIFailing, checked 2 h ago

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.

GET https://agenttools-hub.vercel.app/api/v1/dev/table-extract

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
66.7%
Response time
141 ms typical, 141 ms slowest 5%
Last check
2 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/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"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fdev%2Ftable-extract
const res = await pay("https://agenttools-hub.vercel.app/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");
console.log(await res.json());

Example 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>"
}

Example output

{
  "result": {
    "answer": "live data — call the API",
    "value": null
  },
  "tool": "table-extract"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 30830815 ms-
6 h agoPassed402308 ms$0.01
11 h agoPassed402141 ms$0.01