Skip to content
AgentSearch

Free tier · no key

Free web search API for AI agents

AgentSearch has a free web search API for AI agents: POST a query to https://relay.agentsearchhq.com/v1/search and get up to 5 live results as JSON, with no account or API key. Free tier: 25 searches per IP in total, then pay per call, no key needed (shared daily capacity; paid calls have no cap).

Try it now

Every snippet below works as-is with no signup.

curl

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}'

Python

import requests

resp = requests.post(
    "https://relay.agentsearchhq.com/v1/search",
    json={"query": "x402 payment protocol", "max_results": 5},
    headers={"x-agent-client": "my-agent/1.0"},  # name/version of your agent
    timeout=30,
)
if resp.status_code in (402, 429):
    # 25 free searches per IP in total are used up; the body's error.pay_now shows how to pay per call.
    raise SystemExit("Free allowance used. Switch to paid search: " + str(resp.json()["error"].get("pay_now")))
resp.raise_for_status()
for hit in resp.json()["results"]:
    print(hit["title"], "-", hit["url"])

As an MCP tool (Claude Desktop, Cursor)

{
  "mcpServers": {
    "agentsearch": {
      "command": "npx",
      "args": ["-y", "@agentsearchhq/agentsearch-mcp"]
    }
  }
}

Request and response fields

Request body: query (required) and max_results (1–5, default 5; values outside the range are clamped). Response: query, result_count, retrieved_at and results[], each with title, url, content, score, published_date and domain. Full schema: search OpenAPI spec.

What the free tier covers

Included

Web Search

25 searches per IP in total, then pay per call, up to 5 results each, no key. The allowance is per IP in total, not per day. Past the limit the relay answers HTTP 402 with standard x402 terms for the paid API.

Not included

Extract and Render

Web Extract (URL to markdown) and Web Render (JavaScript pages) are paid after a small free trial: $0.002 and $0.005 per call in USDC on Base via native x402.

Going further

Paid search has no cap

Need more than the free tier? Paid Web Search is $0.003 per call on the direct x402 API with no daily cap, and still no account or API key. See pricing or pay-per-call web search.

FAQ

Is there a free web search API for AI agents with no API key?

Yes. AgentSearch's free relay at https://relay.agentsearchhq.com/v1/search needs no account or key. Free tier: 25 searches per IP in total, then pay per call, no key needed (shared daily capacity; paid calls have no cap).

How many free searches do I get?

25 searches per IP in total, then pay per call, with up to 5 results each. The allowance is a total per IP, not per day; the shared daily capacity can also run out.

What happens when I hit the limit?

The relay answers HTTP 402 Payment Required with error.code free_allowance_used: standard x402 v2 terms (pay $0.003 per search at https://api.agentsearchhq.com/x402/v1/search, so x402 clients can pay automatically) plus copy-paste pay instructions (error.pay_now). AgentSearch packages and the hosted MCP get it as HTTP 429. The allowance does not reset, so switch to paid Web Search at $0.003 per call on the direct x402 API, which has no daily cap.

Can I use the free API from Claude or Cursor?

Yes. Add npx -y @agentsearchhq/agentsearch-mcp to your MCP client with no env block. Its search tool uses the free relay automatically.

Does the free tier include page extraction?

No. The free tier is search only (25 searches per IP in total, then pay per call); Extract and Render have a small free trial (5 and 3 calls per day per IP), then cost $0.002 and $0.005 per call on the direct x402 API.

AgentSearch services

Web Search API · Web Extract API · Web Render API · Pricing · MCP server · Blog

Related guides: Use AgentSearch from your own agent · AgentSearch vs Tavily, Exa and Firecrawl