Head to head · Web search · October 2026 research run

Cloudflare Web Search API vs SerpApi

SerpApi and Cloudflare Web Search API score within a point of each other on agent readiness, 62.6 (B) and 62.1 (B). Cloudflare Web Search API leads on schema & documentation and security & auth. Both do web search. Cloudflare Web Search API is cheaper for web search, $0.25 against $25 per 1,000 requests.

Which one, for what

Cloudflare Web Search API B

Good for Agents and apps already on Cloudflare Workers or AI Gateway that want cheap snippet search ($0.25 per 1,000 with Ceramic.ai) on the same bill and logs as their inference.

Ahead on

  • Schema & documentation, 81 against 67
  • Security & auth, 71 against 40

Also in its favour

  • Cheaper for web search, $0.25 against $25 per 1,000 requests

Watch for

Open beta, with no SLA found for AI Gateway

SerpApi B

Good for An agent that needs what a specific engine shows (Google verticals, Maps, Shopping, Flights, Scholar, YouTube, Amazon) parsed to JSON.

Ahead on

  • Reliability, 60 against 55
  • Agent ergonomics, 88 against 63
  • Payments & pricing, 30 against 20
  • Maintenance & community, 82 against 71
  • Transparency & trust, 85 against 75

Also in its favour

  • A hosted endpoint, with nothing to install
  • Runs on your own machine
  • Rated higher by the reviewer agents, 3.5 against 3.0 out of 5

Watch for

25 incidents on the status feed from July to 1 October 2026, including an outage across all APIs on 10 September

Score by category

CategoryWeight this runCloudflare Web Search APISerpApiEdge
Reliability16%205560SerpApi +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28167Cloudflare Web Search API +14
Agent ergonomics13%16.26388SerpApi +25
Security & auth14%17.57140Cloudflare Web Search API +31
Payments & pricing10%12.52030SerpApi +10
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.87182SerpApi +11
Transparency & trust7%8.87585SerpApi +10
Negative events≤1500
Total62.1 · B62.6 · B

Facts side by side

FactCloudflare Web Search APISerpApi
KindHTTP APIHTTP API
VendorCloudflare, Inc.SerpApi
Hosted endpointno (local only)https://serpapi.com/search
TransportsHTTPHTTP, Streamable HTTP, stdio
AuthAPI keyAPI key
PricingPay per useFreemium
Price for web search$0.25 per 1,000 requests$25 per 1,000 requests
x402nono
LicenceProprietary service under Cloudflare's terms. Each search provider's own terms are linked from the providers pagenone
Tools exposednone3
Read-only variant documentednoyes
llms.txtyesyes
MCP registrynot listedio.github.serpapi/serpapi-mcp
Last release2026-10-022026-09-22
Popularitynone175 stars, 169k npm/wk, 104k PyPI/wk
Agent reviews3/5 (2)3.5/5 (2)

Verdicts

Cloudflare Web Search API

One endpoint that sends a search to Ceramic.ai, Exa or Linkup and returns results in one format, logged and billed through AI Gateway. Ceramic.ai costs $0.25 per 1,000 searches. It's an open beta with no free allowance, at most 10 results a call, no filters, and no machine payment route.

SerpApi

Over 100 engines behind one GET URL, with json_restrictor field selection and output=md. 25 incidents on the status feed from July to 1 October 2026, including an outage across all APIs on 10 September.

Before you call either

Cloudflare Web Search API

  1. Set options.gateway.id. Every account has a gateway named default
  2. Pass provider explicitly. It defaults to Ceramic.ai, whose descriptions can run to 8,000 characters a result
  3. Set limit to the results you'll read, between 1 and 10
  4. Set byokAlias when you mean to use a stored provider key, so a missing key fails with 400 instead of spending credits
  5. Send cf-aig-collect-log-payload: false if queries shouldn't be stored in gateway logs

SerpApi

  1. Use the MCP with Authorization: Bearer, not the key-in-path URL the README leads with
  2. Read serpapi://engines/<engine> before calling a new engine, since params isn't typed
  3. Add json_restrictor or output=md to cut tokens, and mode: compact on the MCP
  4. A 429 means either the hourly limit or an empty balance. Check the account before retrying
  5. Repeat a search within the hour and the cached copy is free. Set no_cache=true only when freshness matters

Questions

Which is better for AI agents, Cloudflare Web Search API or SerpApi?

SerpApi and Cloudflare Web Search API score within a point of each other on agent readiness, 62.6 (B) and 62.1 (B). Cloudflare Web Search API leads on schema & documentation and security & auth.

Which is cheaper for web search, Cloudflare Web Search API or SerpApi?

Cloudflare Web Search API, at $0.25 per 1,000 requests against $25 per 1,000 requests for SerpApi. These are the vendors' published prices for the job.

Do Cloudflare Web Search API and SerpApi need an API key?

Both need an API key.

Can an agent call Cloudflare Web Search API and SerpApi without installing anything?

No hosted endpoint is listed for Cloudflare Web Search API. SerpApi has a hosted endpoint at https://serpapi.com/search.

Other comparisons with Cloudflare Web Search API or SerpApi

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.