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 · pay by card or x402 on Base
Pay by card for a prepaid API key, or pay per call in USDC on Base over x402. Same per-call prices either way: Web Search ($0.003), News Search ($0.003), Web Extract ($0.002), Web Render ($0.005), Search + Read ($0.005) and Website Screenshot ($0.004), charged only when the call succeeds. Card packs start at $5, tax included. x402 is unchanged: no account or key, settled in USDC on Base after a successful answer. The free tier is unchanged: 25 searches per IP in total, then pay per call; news, search-and-read and screenshot each have 10 free calls per IP in total (lifetime, they do not reset); extract 5/day and render 3/day per IP, no key needed (shared daily capacity; paid calls have no cap).
No wallet required. Buy prepaid credit with a card, Apple Pay or Google Pay and get an API key right away. You pay the same per-call prices as x402, and we only charge for calls that succeed. Credit expires 12 months after your last top-up, and unused credit is refundable within 30 days of purchase. Prices include tax. Payments are processed by Stripe, which acts as merchant of record. Sold by AmPmLux Vending LLC.
| Call | Endpoint (API key) | Price |
|---|---|---|
| Web Search | POST https://api.agentsearchhq.com/v1/search | $0.003 |
| News Search | POST https://api.agentsearchhq.com/v1/news | $0.003 |
| Web Extract | POST https://api.agentsearchhq.com/v1/extract | $0.002 |
| Search + Read | POST https://api.agentsearchhq.com/v1/search_and_read | $0.005 |
| Web Render | POST https://api.agentsearchhq.com/v1/render | $0.005 |
| Website Screenshot | POST https://api.agentsearchhq.com/v1/screenshot | $0.004 |
curl -s https://api.agentsearchhq.com/v1/search \
-H "Authorization: Bearer $AGENTSEARCH_API_KEY" \
-H 'content-type: application/json' \
-d '{"query":"x402 protocol","max_results":5}'
Send the key as Authorization: Bearer as_live_… to https://api.agentsearchhq.com/v1/…. Keyed calls come off your balance. Details: API key docs.
Every reply includes X-AgentSearch-Balance-USD. If you run out, you get HTTP 402 with a top-up link, and your key keeps working once you top up.
Payments are processed by Stripe, which acts as merchant of record and handles sales tax and VAT. Sold by AmPmLux Vending LLC.
Terms · Refunds · Privacy · API key docs · Lost or new key
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.003 per call | 25 searches per IP in total, then pay per call, no key | Only when results are returned |
| Web Extract | POST https://api.agentsearchhq.com/x402/v1/extract {"url"} | $0.002 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.005 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.005 per call | 10 calls per IP in total, then pay per call, no key | Only when at least one page returns text |
| News Search | POST https://api.agentsearchhq.com/x402/v1/news {"query", "max_results"?, "filters"?} | $0.003 per call | 10 calls per IP in total, then pay per call, no key | Only when results are returned |
| Website Screenshot | POST https://api.agentsearchhq.com/x402/v1/screenshot {"url", "format"?, "full_page"?, "viewport"?} | $0.004 per call | 10 calls per IP in total, then pay per call, no key | Only when an image is returned |
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 | 25 searches per IP in total, then pay per call, 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.003. A page Extract can read: $0.002. Search + Read (search plus the top pages in one call): $0.005, versus $0.009 as one search and three extracts. Extract, then a Render fallback on the same URL: $0.009. A research task capped at 12 calls: at most $0.072. $1 of USDC covers about 200 Search + Read calls or 500 extracts.
Full error table with the charged/not-charged column: llms-full.txt and agents.md.
Free tier: 25 searches per IP in total, then pay per call, 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 25 searches are a total per IP and do not reset; once they are used up the relay answers HTTP 429 with the paid setup steps.
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.
Free news, search-and-read and screenshot. Each of those tools has 10 free calls per IP in total on the same relay (a lifetime allowance, it does not reset), no key or wallet: POST https://relay.agentsearchhq.com/v1/news, /v1/search_and_read or /v1/screenshot. After the 10, the relay answers HTTP 402 with x402 v2 terms for that tool (AgentSearch packages keep HTTP 429).
Search and read in one call, or search free then extract. If you want hits and their page text together, Search + Read has 10 free calls per IP in total on the relay, then $0.005 and one payment (versus $0.009 a la carte). If you only need links, or will read one page, search free and pay $0.002 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' -H 'X-Agent-Client: my-agent/1.0' \
-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.002, render $0.005, search and read $0.005) 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,news,screenshot} and get HTTP 402 with x402 v2 terms in the PAYMENT-REQUIRED header. 2. Sign an EIP-3009 TransferWithAuthorization for the quoted amount (3000 / 2000 / 5000 / 5000 / 3000 / 4000 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 when no wallet is set. 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.003, extract $0.002, render $0.005, search and read $0.005); AGENTSEARCH_PAYMENT_ROUTE=pocket keeps the $0.005 Pocket route for the three a la carte tools. With a wallet, search is paid by default ($0.003) in langchain-agentsearch 0.8.0+, LangChain.js 0.6.0+, @agentsearchhq/ai-sdk 0.2.0+ and CrewAI, LlamaIndex and OpenAI Agents SDK 0.6.0+; AGENTSEARCH_MODE=free keeps it free. n8n search stays free.
curl -i https://api.agentsearchhq.com/x402/v1/search \
-H 'content-type: application/json' -H 'X-Agent-Client: my-agent/1.0' \
-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 3000 (= $0.003)import base64, json, requests
url = "https://api.agentsearchhq.com/x402/v1/search"
r = requests.post(url, json={"query": "x402 protocol", "max_results": 5},
headers={"x-agent-client": "my-agent/1.0"}, 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 3000 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913On the direct x402 API, Web Search costs $0.003, Web Extract $0.002, Web Render $0.005 and Search + Read $0.005 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.009 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: 25 searches per IP in total, then pay per call, no key needed (shared daily capacity; paid calls have no cap). News, search-and-read and screenshot each have 10 free calls per IP in total (lifetime, they do not reset) on the same relay: POST https://relay.agentsearchhq.com/v1/news, /v1/search_and_read or /v1/screenshot. 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.003, extract $0.002, render $0.005, search and read $0.005 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.005) 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 News Search API Screenshot API · Pricing · MCP server · Blog
Related guides: AgentSearch vs Tavily, Exa and Firecrawl
Related guides: Pay-per-call vs subscription search APIs
Related guides: Pay-per-call web search API