# forage — web search & scrape for AI agents, pay per call No signup. No API key. No rate limit. Pay per call with USDC on Base via x402. ## Endpoints POST https://forage.cash/api/search — $0.005/query body: { "q": "your query", "num": 10, "gl": "us", "hl": "en" } returns: { query, results: [{title, url, snippet, position}], answerBox, knowledgeGraph, relatedSearches } POST https://forage.cash/api/scrape — $0.002/page body: { "url": "https://example.com/article", "maxChars": 200000 } returns: { url, finalUrl, title, byline, markdown, truncated, fetchedAt } ## How to pay (x402) 1. POST without payment → HTTP 402 with payment requirements (JSON body + PAYMENT-REQUIRED header). 2. Sign the exact USDC amount (EIP-3009 transferWithAuthorization) and retry with the PAYMENT-SIGNATURE header (x402 v2; legacy X-PAYMENT v1 also accepted). 3. Easiest: use x402-fetch (npm) or any x402 client — it handles the 402 handshake automatically. import { wrapFetchWithPayment } from "x402-fetch"; const fetchWithPay = wrapFetchWithPayment(fetch, account); const res = await fetchWithPay("https://forage.cash/api/search", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ q: "agent payments 2026" }), }); ## MCP (free tier) Streamable-HTTP MCP server at https://forage.cash/mcp — tools: web_search, scrape. Free 20 calls/day/IP, then switch to the x402 endpoints above. ## Machine-readable OpenAPI: https://forage.cash/openapi.json