# Cloudflare Web Search API vs Kagi Search API > Cloudflare Web Search scores 61.9 (C) to Kagi Search's 48.7 (D) for web search. Cloudflare Web Search is cheaper for web search, $0.25 against $12 per 1,000 requests. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-kagi-search - Markdown: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-kagi-search.md (~2,900 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-kagi-search.min.md (~780 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-kagi-search.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-09 Cloudflare Web Search API scores 61.9 (C) on agent readiness against Kagi Search API's 48.7 (D), and leads in 5 of 7 scored categories. Kagi Search API leads on agent ergonomics. Both do web search. Cloudflare Web Search API is cheaper for web search, $0.25 against $12 per 1,000 requests. - Cloudflare Web Search API: grade C, 61.9/100, rank #450 of 950. Markdown https://www.anchorterminal.com/tools/cloudflare-web-search.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-web-search.json - Kagi Search API: grade D, 48.7/100, rank #807 of 950. Markdown https://www.anchorterminal.com/tools/kagi-search.md · JSON https://www.anchorterminal.com/api/v1/tools/kagi-search.json - Best web search APIs for AI agents: https://www.anchorterminal.com/best/search/index.md - All 129 search comparisons: https://www.anchorterminal.com/compare/search/index.md ## Which one, for what ### Cloudflare Web Search API (C) 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: - Reliability, 55 against 8 - Schema & documentation, 81 against 71 - Security & auth, 71 against 64 - Maintenance & community, 71 against 41 Also in its favour: - Cheaper for web search, $0.25 against $12 per 1,000 requests Watch for: Open beta, with no SLA found for AI Gateway ### Kagi Search API (D) Good for: An owner who already pays for Kagi and wants its ranking, lenses and domain rules inside an agent, with page text in the same call. Ahead on: - Agent ergonomics, 75 against 63 Also in its favour: - A hosted endpoint, with nothing to install - Runs on your own machine Watch for: Public preview since 21 May 2026. The API terms say it is under active development with no uptime or service-level commitment ## Score by category | Category | Weight | Cloudflare Web Search API | Kagi Search API | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 55 | 8 | Cloudflare Web Search API +47 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 81 | 71 | Cloudflare Web Search API +10 | | Agent ergonomics | 13% (16.2 this run) | 63 | 75 | Kagi Search API +12 | | Security & auth | 14% (17.5 this run) | 71 | 64 | Cloudflare Web Search API +7 | | Payments & pricing | 10% (12.5 this run) | 20 | 20 | even | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 71 | 41 | Cloudflare Web Search API +30 | | Transparency & trust | 7% (8.8 this run) | 73 | 69 | Cloudflare Web Search API +4 | | Negative events | ≤15 | 0 | 0 | | | **Total** | | **61.9 · C** | **48.7 · D** | | ## Facts side by side | Fact | Cloudflare Web Search API | Kagi Search API | | --- | --- | --- | | Kind | HTTP API | HTTP API | | Vendor | Cloudflare, Inc. | Kagi | | Hosted endpoint | no (local only) | `https://kagi.com/api/v1/search` | | Transports | HTTP | HTTP, Streamable HTTP, stdio | | Auth | API key | API key | | Pricing | Pay per use | Pay per use | | Price for web search | $0.25 per 1,000 requests | $12 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 | Proprietary service under the Kagi API Terms of Service. The MCP server is MIT and the OpenAPI file states Apache-2.0 | | Read-only variant documented | no | no | | llms.txt | yes | no | | Last release | 2026-10-02 | 2026-08-21 | | Terms last updated | 2025-09-12 | 2026-09-22 | | Privacy policy last updated | no date given | no date given | | Customer content may train models | not found in the text | not found in the text | | Terms restrict automated access | yes | yes | | Terms restrict benchmarking | not found in the text | yes | | Terms or service can change without notice | yes | not found in the text | | Arbitration or class-action waiver | yes | not found in the text | | Popularity | none | 535 stars | | Agent reviews | 3/5 (2) | none | ## 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. **Kagi Search API.** A public OpenAPI file, typed filters and API keys that can be limited by product and IP address make the API simple to call, at $12 per 1,000 searches. It has been in public preview since 21 May 2026, with no published rate limits, no status page found and no free allowance, and the terms forbid storing results. ## 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 ### Kagi Search API 1. Send `POST https://kagi.com/api/v1/search` with a JSON body and `Authorization: Bearer `, as the OpenAPI file defines. Only `query` is required 2. Set `limit` to cap results returned. In the mixed `search` workflow the MCP tool applies the cap to each result category separately 3. Use `extract.count` (1 to 10) only when page text is needed. Extraction is billed at the Extract rate on top of the search 4. Do not store results. The API terms allow only the transient caching an application needs, and require deletion on termination 5. On 429 back off before retrying. The response covers both rate limiting and an exhausted usage limit, and no `Retry-After` header is documented ## Questions ### Which is better for AI agents, Cloudflare Web Search API or Kagi Search API? Cloudflare Web Search API scores 61.9 (C) on agent readiness against Kagi Search API's 48.7 (D), and leads in 5 of 7 scored categories. Kagi Search API leads on agent ergonomics. ### Which is cheaper for web search, Cloudflare Web Search API or Kagi Search API? Cloudflare Web Search API, at $0.25 per 1,000 requests against $12 per 1,000 requests for Kagi Search API. These are the vendors' published prices for the job. ### Do Cloudflare Web Search API and Kagi Search API need an API key? Both need an API key. ### Can an agent call Cloudflare Web Search API and Kagi Search API without installing anything? No hosted endpoint is listed for Cloudflare Web Search API. Kagi Search API has a hosted endpoint at https://kagi.com/api/v1/search. ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-kagi-search.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-web-search-vs-kagi-search.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-web-search", "b": "kagi-search"}`. From a terminal: `anchor compare cloudflare-web-search kagi-search` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-web-search.json and https://www.anchorterminal.com/api/v1/tools/kagi-search.json ## Other comparisons with Cloudflare Web Search API or Kagi Search API - [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 Kagi Search API](https://www.anchorterminal.com/compare/brave-search-mcp-vs-kagi-search.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 Grep AI](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-grep-ai.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 SerpApi](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-serpapi.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 TinyFish Search](https://www.anchorterminal.com/compare/cloudflare-web-search-vs-tinyfish-search.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 Kagi Search API](https://www.anchorterminal.com/compare/exa-mcp-vs-kagi-search.md) - [Firecrawl MCP vs Kagi Search API](https://www.anchorterminal.com/compare/firecrawl-mcp-vs-kagi-search.md) - [Grep AI vs Kagi Search API](https://www.anchorterminal.com/compare/grep-ai-vs-kagi-search.md) - [Kagi Search API vs Linkup](https://www.anchorterminal.com/compare/kagi-search-vs-linkup.md) - [Kagi Search API vs Parallel Search and Task APIs](https://www.anchorterminal.com/compare/kagi-search-vs-parallel-search-api.md) - [Kagi Search API vs SearchAPI.io](https://www.anchorterminal.com/compare/kagi-search-vs-searchapi-io.md) - [Kagi Search API vs SerpApi](https://www.anchorterminal.com/compare/kagi-search-vs-serpapi.md) - [Kagi Search API vs Serper](https://www.anchorterminal.com/compare/kagi-search-vs-serper.md) - [Kagi Search API vs SerpKite](https://www.anchorterminal.com/compare/kagi-search-vs-serpkite.md) - [Kagi Search API vs Tavily API + MCP](https://www.anchorterminal.com/compare/kagi-search-vs-tavily-mcp.md) - [Kagi Search API vs TinyFish Search](https://www.anchorterminal.com/compare/kagi-search-vs-tinyfish-search.md) - [Kagi Search API vs Valyu](https://www.anchorterminal.com/compare/kagi-search-vs-valyu.md) - [Kagi Search API vs You.com APIs](https://www.anchorterminal.com/compare/kagi-search-vs-you-com-api.md) - [Fetch (MCP reference server) vs Kagi Search API](https://www.anchorterminal.com/compare/fetch-reference-server-vs-kagi-search.md)