Only successful answers
The direct API settles a payment only after a successful, non-empty answer. Invalid input (400), upstream failures (502), rate limits (429) and empty results are never charged.
Pricing · native x402 on Base
AgentSearch sells Web Search ($0.008), Web Extract ($0.007), Web Render ($0.010) and Search + Read ($0.015) per call directly at https://api.agentsearchhq.com, paid in USDC on Base over native x402 and settled only after a successful answer, with no account, plan or API key. Search also has a free tier: up to 25 searches/day per IP, no key needed (shared daily capacity; paid calls have no cap).
Every service is priced per call and sold directly over standard x402 v2 on Base, settled by the Coinbase CDP facilitator (listed in the Coinbase x402 Bazaar). Any x402 client works. There is no subscription, minimum or monthly plan.
| Service | Direct x402 endpoint | Price | Free tier | Charged when |
|---|---|---|---|---|
| Web Search | POST https://api.agentsearchhq.com/x402/v1/search {"query", "max_results"?} | $0.008 per call | Up to 25 searches/day per IP, no key | Only when results are returned |
| Web Extract | POST https://api.agentsearchhq.com/x402/v1/extract {"url"} | $0.007 per call | Free trial: 5 calls/day per IP, no key | Only when page content is returned |
| Web Render | POST https://api.agentsearchhq.com/x402/v1/render {"url"} | $0.010 per call | Free trial: 3 calls/day per IP (no screenshots), no key | Only when rendered content is returned |
| Search + Read | POST https://api.agentsearchhq.com/x402/v1/search_and_read {"query", "num_results"?} | $0.015 per call | None (direct API only) | Only when at least one page returns text |
Network eip155:8453, USDC, scheme exact, paid to AgentSearch. Machine-readable: /.well-known/x402 and /openapi.json. Code for curl, @x402/fetch, @x402/axios and Python: direct x402 docs. The AgentSearch MCP server (1.7.0+), langchain-agentsearch (0.6.0+) and the n8n node (0.6.0+) pay these endpoints by default, including Search + Read.
The same services are also served on Pocket Network through the Pocket Agentic Portal at $0.005 per call (x402 on Base or MPP on Tempo). Set AGENTSEARCH_PAYMENT_ROUTE=pocket in the MCP server or any framework package (LangChain, LangChain.js, CrewAI, LlamaIndex, OpenAI Agents SDK), or Payment Route = Pocket Portal in n8n.
| Pocket service | Price | Free tier | What it does |
|---|---|---|---|
Web Search agentsearch-web-search-v1 | $0.005 per call | Up to 25 searches/day per IP, no key | Up to 5 live results per call (title, URL, snippet, score, domain, date) |
Web Extract agentsearch-web-extract-v1 | $0.005 per call | Free trial: 5 calls/day per IP, no key | A URL to clean markdown or text, with title, links and metadata |
Web Render agentsearch-web-render-v1 | $0.005 per call | Free trial: 3 calls/day per IP (no screenshots), no key | Runs a JavaScript page in headless Chromium and returns markdown, text, HTML, links and an optional screenshot |
You pay only for answers that were delivered. The rules differ slightly by route.
The direct API settles a payment only after a successful, non-empty answer. Invalid input (400), upstream failures (502), rate limits (429) and empty results are never charged.
A delivered call is charged, including HTTP 200 answers whose body carries an error object because the target website failed: for example TARGET_HTTP_ERROR, TARGET_TIMEOUT, UNSUPPORTED_CONTENT, TARGET_BOT_WALL or a partial-content TARGET_DEADLINE. Search upstream errors that return 200 with empty results are charged too.
Non-2xx answers are not settled: 402 (unpaid request), 400 INVALID_REQUEST, SSRF_BLOCKED or URL_NOT_ALLOWED, 413 REQUEST_TOO_LARGE, 422 ROBOTS_DISALLOWED (Render refuses before fetching; through the portal it shows as 400 UPSTREAM_REJECTED), 422 TARGET_DEADLINE with nothing rendered, 429 rate limits and 5xx errors.
One search: $0.008. A page Extract can read: $0.007. Search + Read (search plus the top pages in one call): $0.015, versus $0.029 as one search and three extracts. Extract, then a Render fallback on the same URL: $0.017. A research task capped at 12 calls: at most $0.12. $1 of USDC covers about 66 Search + Read calls or 140 extracts.
Full error table with the charged/not-charged column: llms-full.txt and agents.md.
Free tier: up to 25 searches/day per IP, no key needed (shared daily capacity; paid calls have no cap). The free tier covers Web Search only, with up to 5 results per search. It needs no account, API key or wallet. The limit resets daily, and past it the relay answers HTTP 429.
Free trial of Extract and Render. The same relay gives every IP 5 free Extract calls and 3 free Render calls per day (Render in the trial returns text output, no screenshots), with no key or wallet: POST https://relay.agentsearchhq.com/v1/extract or /v1/render with {"url": "https://..."}. Past the trial the relay answers HTTP 429 with a link to wallet setup.
Search and read in one paid call, or search free then extract. If you want hits and their page text together, Search + Read is $0.015 and one payment (versus $0.029 a la carte). If you only need links, or will read one page, search free and pay $0.007 to extract that URL. Step-by-step for the two-step Python path: LangChain agent: search the web, then read the page.
curl -s https://relay.agentsearchhq.com/v1/search \
-H 'content-type: application/json' \
-d '{"query":"x402 protocol","max_results":5}'{
"mcpServers": {
"agentsearch": {
"command": "npx",
"args": ["-y", "@agentsearchhq/agentsearch-mcp"]
}
}
}Payment is per request, in USDC on Base via native x402, straight to AgentSearch at api.agentsearchhq.com (or through the Pocket Network Agentic Portal if you prefer). The agent pays from its own wallet instead of sending an API key.
Add npx -y @agentsearchhq/agentsearch-mcp to your MCP client and set AGENTSEARCH_WALLET_PRIVATE_KEY to a new wallet holding a little USDC on Base. Since 1.7.0 it pays the direct x402 API automatically (extract $0.007, render $0.010, search and read $0.015) and never signs more than $0.020 per call or more than the session cap ($1.00 by default). No ETH is needed for gas.
1. POST unpaid to https://api.agentsearchhq.com/x402/v1/{search,extract,render,search_and_read} and get HTTP 402 with x402 v2 terms in the PAYMENT-REQUIRED header. 2. Sign an EIP-3009 TransferWithAuthorization for the quoted amount (8000 / 7000 / 10000 / 15000 USDC atomic units) on Base with an x402 client such as @x402/fetch or Python x402. 3. Repeat the same request once with PAYMENT-SIGNATURE. 4. HTTP 200 returns the result, with the receipt in PAYMENT-RESPONSE.
The framework packages search free by default. For the Python packages, install the [paid] extra (for example pip install "langchain-agentsearch[paid]") and set AGENTSEARCH_WALLET_PRIVATE_KEY to enable paid search, Extract and Render. LangChain 0.6.0+, n8n 0.6.0+, and CrewAI, LlamaIndex, OpenAI Agents SDK and LangChain.js 0.4.0+ pay the direct API by default (search $0.008, extract $0.007, render $0.010, search and read $0.015); AGENTSEARCH_PAYMENT_ROUTE=pocket keeps the $0.005 Pocket route for the three a la carte tools. Search stays free by default.
curl -i https://api.agentsearchhq.com/x402/v1/search \
-H 'content-type: application/json' \
-d '{"query":"x402 protocol","max_results":5}'
# HTTP 402 + PAYMENT-REQUIRED header (base64 JSON x402 v2 terms):
# scheme exact, network eip155:8453 (Base), asset USDC, amount 8000 (= $0.008)import base64, json, requests
url = "https://api.agentsearchhq.com/x402/v1/search"
r = requests.post(url, json={"query": "x402 protocol", "max_results": 5}, timeout=30)
print(r.status_code) # 402: payment required, nothing charged
terms = json.loads(base64.b64decode(r.headers["PAYMENT-REQUIRED"]))
for option in terms["accepts"]:
print(option["scheme"], option["network"], option["amount"], option["asset"])
# exact eip155:8453 8000 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913On the direct x402 API, Web Search costs $0.008, Web Extract $0.007, Web Render $0.010 and Search + Read $0.015 per call in USDC on Base, settled only after a successful answer. Search + Read is one payment for search plus the top pages' text, versus $0.029 as separate calls. There is no account, subscription, minimum or API key. Search, Extract and Render are also on Pocket Network at $0.005 per call.
Yes. Web Search free tier: up to 25 searches/day per IP, no key needed (shared daily capacity; paid calls have no cap). Use POST https://relay.agentsearchhq.com/v1/search or the MCP server npx -y @agentsearchhq/agentsearch-mcp with no wallet key. Web Extract and Web Render have a free trial on the same relay: 5 extract and 3 render calls per day per IP (POST /v1/extract or /v1/render), no key or wallet.
Only HTTP 2xx answers are charged. Non-2xx answers such as 402, 400, 413, 422 robots.txt refusals, 429 and 5xx are not settled. A 200 answer whose body reports a target-site error, such as a 404 from the website, was delivered and is charged.
Your agent pays each request from a wallet. An unpaid request returns HTTP 402 with the price; an x402 client signs a USDC payment on Base and retries with the PAYMENT-SIGNATURE header. The AgentSearch MCP server and the framework packages can do this for you when you set AGENTSEARCH_WALLET_PRIVATE_KEY.
Search, Extract, Render and Search + Read sold directly at api.agentsearchhq.com over standard x402 on Base: search $0.008, extract $0.007, render $0.010, search and read $0.015 per call, charged only when content is returned. It works with any x402 client (x402-fetch, x402-axios, the x402 Python package) and is discoverable in the x402 Bazaar. Docs: agentsearchhq.com/docs/x402. Search + Read: /search-and-read.
No. You need a little USDC on Base in a wallet made for this. The x402 facilitator pays the gas.
Yes. The AgentSearch MCP server never signs more than $0.020 per call (enough for Search + Read at $0.015) and stops at a session cap, $1.00 by default, set with AGENTSEARCH_MAX_TOTAL_ATOMIC. In your own code, count delivered calls and stop at a hard budget.
Web Search API · Web Extract API · Web Render API · Search + Read API · Pricing · MCP server · Blog