81trust / 100

Web Tables

by api.x-402.online in Other

x402 APIPassing, checked 1 h ago

Turn every table on a page into JSON rows you can compute on. Every HTML table on a page as JSON rows, with headers detected and captions kept. Fetched through a French residential IP with a real Chromium, so tables rendered by Ja…

POST https://api.x-402.online/v1/web/tables

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
146 ms typical, 146 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/web/tables" \
  -H "content-type: application/json" \
  -d '{"url":"https://en.wikipedia.org/wiki/List_of_countries_by_population"}'
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%2Fapi.x-402.online%2Fv1%2Fweb%2Ftables
const res = await pay("https://api.x-402.online/v1/web/tables", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://en.wikipedia.org/wiki/List_of_countries_by_population"}),
});
console.log(await res.json());

Example input

{
  "url": "https://en.wikipedia.org/wiki/List_of_countries_by_population"
}

Example output

{
  "table_count": 3,
  "tables": [
    {
      "headers": [
        "Country",
        "Population"
      ],
      "index": 0,
      "row_count": 240,
      "rows": [
        {
          "Country": "…",
          "Population": "…"
        }
      ]
    }
  ],
  "url": "…"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402146 ms$0.005
6 h agoPassed402149 ms$0.005