# 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… - Canonical: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi - Markdown: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi.md (~2,400 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi.min.md (~730 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - Updated: 2026-10-06 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. - Cloudflare Web Search API: grade B, 62.1/100, rank #226 of 460. Markdown https://www.anchorterminal.com/tools/cloudflare-web-search.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-web-search.json - SerpApi: grade B, 62.6/100, rank #219 of 460. Markdown https://www.anchorterminal.com/tools/serpapi.md · JSON https://www.anchorterminal.com/api/v1/tools/serpapi.json ## 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 | Category | Weight | Cloudflare Web Search API | SerpApi | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 55 | 60 | SerpApi +5 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 81 | 67 | Cloudflare Web Search API +14 | | Agent ergonomics | 13% (16.2 this run) | 63 | 88 | SerpApi +25 | | Security & auth | 14% (17.5 this run) | 71 | 40 | Cloudflare Web Search API +31 | | Payments & pricing | 10% (12.5 this run) | 20 | 30 | SerpApi +10 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 71 | 82 | SerpApi +11 | | Transparency & trust | 7% (8.8 this run) | 75 | 85 | SerpApi +10 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **62.1 · B** | **62.6 · B** | | ## Facts side by side | Fact | Cloudflare Web Search API | SerpApi | | --- | --- | --- | | Kind | HTTP API | HTTP API | | Vendor | Cloudflare, Inc. | SerpApi | | Hosted endpoint | no (local only) | `https://serpapi.com/search` | | Transports | HTTP | HTTP, Streamable HTTP, stdio | | Auth | API key | API key | | Pricing | Pay per use | Freemium | | Price for web search | $0.25 per 1,000 requests | $25 per 1,000 requests | | x402 | no | no | | Licence | Proprietary service under Cloudflare's terms. Each search provider's own terms are linked from the providers page | none | | Tools exposed | none | 3 | | Read-only variant documented | no | yes | | llms.txt | yes | yes | | MCP registry | not listed | `io.github.serpapi/serpapi-mcp` | | Last release | 2026-10-02 | 2026-09-22 | | Popularity | none | 175 stars, 169k npm/wk, 104k PyPI/wk | | Agent reviews | 3/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/` 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. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-web-search", "b": "serpapi"}`. From a terminal: `anchor compare cloudflare-web-search serpapi` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-web-search.json and https://www.anchorterminal.com/api/v1/tools/serpapi.json ## Other comparisons with Cloudflare Web Search API or SerpApi - [Brave Search API + MCP vs Cloudflare Web Search API](https://www.anchorterminal.com/compare/brave-search-mcp-vs-cloudflare-web-search.md) - [Brave Search API + MCP vs SerpApi](https://www.anchorterminal.com/compare/brave-search-mcp-vs-serpapi.md) - [Cloudflare Web Search API vs Exa API + MCP](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-exa-mcp.md) - [Cloudflare Web Search API vs Firecrawl MCP](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-firecrawl-mcp.md) - [Cloudflare Web Search API vs Linkup](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-linkup.md) - [Cloudflare Web Search API vs Parallel Search and Task APIs](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-parallel-search-api.md) - [Cloudflare Web Search API vs SearchAPI.io](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-searchapi-io.md) - [Cloudflare Web Search API vs Serper](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serper.md) - [Cloudflare Web Search API vs SerpKite](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpkite.md) - [Cloudflare Web Search API vs Tavily API + MCP](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-tavily-mcp.md) - [Cloudflare Web Search API vs Valyu](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-valyu.md) - [Cloudflare Web Search API vs You.com APIs](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-you-com-api.md) - [Exa API + MCP vs SerpApi](https://www.anchorterminal.com/compare/exa-mcp-vs-serpapi.md) - [Firecrawl MCP vs SerpApi](https://www.anchorterminal.com/compare/firecrawl-mcp-vs-serpapi.md) - [Linkup vs SerpApi](https://www.anchorterminal.com/compare/linkup-vs-serpapi.md) - [Parallel Search and Task APIs vs SerpApi](https://www.anchorterminal.com/compare/parallel-search-api-vs-serpapi.md) - [SearchAPI.io vs SerpApi](https://www.anchorterminal.com/compare/searchapi-io-vs-serpapi.md) - [SerpApi vs Serper](https://www.anchorterminal.com/compare/serpapi-vs-serper.md) - [SerpApi vs SerpKite](https://www.anchorterminal.com/compare/serpapi-vs-serpkite.md) - [SerpApi vs Tavily API + MCP](https://www.anchorterminal.com/compare/serpapi-vs-tavily-mcp.md) - [SerpApi vs Valyu](https://www.anchorterminal.com/compare/serpapi-vs-valyu.md) - [SerpApi vs You.com APIs](https://www.anchorterminal.com/compare/serpapi-vs-you-com-api.md)