82trust / 100

Extract

by Extract article in Search & web

x402 APIPassing, checked 10 min ago

Read one known URL: the main article content as clean markdown with title, byline, excerpt and word count, boilerplate removed. Use it when an agent already has a URL and needs the text; for JavaScript-rendered pages that return an empty shell, use a browser render instead.

POST https://agent402.tools/api/extract

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
189 ms typical, 189 ms slowest 5%
Last check
10 min ago
Next check
in 19 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/extract" \
  -H "content-type: application/json" \
  -d '{"url":"https://agent402.tools/guides/x402-in-5-minutes"}'
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%2Fextract
const res = await pay("https://agent402.tools/api/extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://agent402.tools/guides/x402-in-5-minutes"}),
});
console.log(await res.json());

Example input

{
  "url": "https://agent402.tools/guides/x402-in-5-minutes"
}

Example output

{
  "byline": null,
  "excerpt": "Short summary…",
  "markdown": "# x402 in 5 minutes\n\nBody…",
  "title": "x402 in 5 minutes",
  "untrustedContent": true,
  "url": "https://agent402.tools/guides/x402-in-5-minutes",
  "wordCount": 850
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
10 min agoPassed402278 ms$0.01
5 h agoPassed402189 ms$0.01