81trust / 100

Web Search

by agdata in Search & web

x402 APIPassing, checked 2 h ago

Web search with page content for AI agents: send keywords and get the top results with each page read as clean Markdown, in one call: title, URL, a short description and the page's text. Up to 5 results, each page cut at 20,000 characters. Pages that cannot be fetched are dropped and refunded. Pay per call in stablecoins.

POST https://agdata.shveik.dev/x402/web-search

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agdata.shveik.dev/x402/web-search" \
  -H "content-type: application/json" \
  -d '{"limit":3,"query":"lithium prices"}'
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%2Fagdata.shveik.dev%2Fx402%2Fweb-search
const res = await pay("https://agdata.shveik.dev/x402/web-search", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":3,"query":"lithium prices"}),
});
console.log(await res.json());

Example input

{
  "limit": 3,
  "query": "lithium prices"
}

Example output

{
  "content": "Daily Metal…",
  "contentTruncated": false,
  "description": "Daily Metal…",
  "language": "en",
  "title": "Daily Metal…",
  "url": "https://www.…"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402105 ms$0.032
7 h agoPassed402100 ms$0.032