W

Workers · WEB Search Read

by Workers

POSTBase

$0.006

per call · USD Coin on Base

Search and read in one call: a web search plus the full page text of the top results, for $0.006 — cheaper than a separate search and reads. Send a query, get back compact results (position, title, url, snippet) each enriched with the target page's readable content (markdown or text, capped by max_chars_per_page). A page that fails to read carries a read_error instead of content; the call still delivers and settles. USDC on Base, no account.

Endpoint

POST https://agentdata-api.sander-van-aard.workers.dev/web/search-read

1

Calls / 30d

1

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agentdata-api.sander-van-aard.workers.dev/web/search-read", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "num": 2,
    "query": "example search query"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agentdata-api.sander-van-aard.workers.dev/web/search-read" \
  -H "Content-Type: application/json" \
  -d '{"num":2,"query":"example search query"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "answer": "A direct answer, when the search engine shows one.",
  "checked_at": "2026-07-30T08:00:00.000Z",
  "query": "example search query",
  "results": [
    {
      "content": "# Example page\n\nThe readable core of the page, as markdown.",
      "content_chars": 58,
      "final_url": "https://example.com/page",
      "page_title": "Example page",
      "position": 1,
      "snippet": "Short snippet of the matching page.",
      "title": "Example result",
      "truncated": false,
      "url": "https://example.com/page"
    },
    {
      "position": 2,
      "read_error": "fetch_failed",
      "snippet": "Another snippet.",
      "title": "Second result",
      "url": "https://example.com/other"
    }
  ]
}

Payment details

Pay to0xb0ae6a9bd7a573ddda58db6c28622417e8ca2099
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Workers & similar services