81trust / 100

Skill Structured Scrape

by Skill: Structured scrape in Search & web

x402 APIPassing, checked 4 h ago

Pull structured data out of any web page deterministically - articles to clean text, tables to JSON rows, specific elements via CSS selector - without writing regex against raw HTML. Structured scrape skill pack: one x402 payment runs 7 underlying tools (extract, render, html-select, html-table, html-strip, html-links, html-meta); partial-success per step.

POST https://agent402.tools/api/skill/structured-scrape

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/skill/structured-scrape" \
  -H "content-type: application/json" \
  -d '{"target":"the price and SKU","url":"https://agent402.tools/leaderboard"}'
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%2Fagent402.tools%2Fapi%2Fskill%2Fstructured-scrape
const res = await pay("https://agent402.tools/api/skill/structured-scrape", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"target":"the price and SKU","url":"https://agent402.tools/leaderboard"}),
});
console.log(await res.json());

Example input

{
  "target": "the price and SKU",
  "url": "https://agent402.tools/leaderboard"
}

Example output

{
  "args": {
    "target": "the price and SKU",
    "url": "https://agent402.tools/leaderboard"
  },
  "pack": "structured-scrape",
  "steps": [
    {
      "ok": true,
      "result": {},
      "slug": "extract"
    },
    {
      "ok": true,
      "result": {},
      "slug": "render"
    },
    {
      "ok": true,
      "result": {},
      "slug": "html-select"
    },
    {
      "ok": true,
      "result": {},
      "slug": "html-table"
    },
    {
      "ok": true,
      "result": {},
      "slug": "html-strip"
    },
    {
      "ok": true,
      "result": {},
      "slug": "html-links"
    },
    {
      "ok": true,
      "result": {},
      "slug": "html-meta"
    }
  ],
  "summary": "7/7 steps succeeded"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402260 ms$0.023