Cloudflare's new Web Search API is worth evaluating if you build AI agents or LLM tools, and it's a strong candidate if your app already runs on Cloudflare Workers. It returns structured web results you can feed straight into a prompt, and it sits on the same network as the rest of Cloudflare's AI stack.
The caveat matters more than the pitch. Cloudflare's index is far younger than the established search indexes, so gaps on niche or low-traffic content are likely. Those gaps won't show up if you only test popular queries.
What Cloudflare's Web Search API actually is
At the surface, it's a programmatic interface: your code sends a query and gets back structured search results. The JSON includes titles, URLs, snippets and possibly freshness signals. You can pipe that into an LLM prompt, store it in a vector database like Cloudflare Vectorize, or use it however your app needs.
What makes it interesting is who's providing it. For most of the past decade, live web results in an application meant Google's Custom Search JSON API, Microsoft's Bing API, or a third-party scraper that re-wrapped one of the two. Cloudflare comes at this from a different position. It runs one of the largest CDN and DDoS-mitigation networks, handles traffic for a large share of websites, and operates its own crawler. The search API turns that crawling into a developer product.
It's built for developers, not no-code users. You call it from code and authenticate with Cloudflare's standard API tokens. Query options appear to cover the usual ground: number of results, market or locale filters, and likely some content filtering.
Pricing appears to follow Cloudflare's usual pattern. There's a free tier that should be enough for prototyping and low-volume use, then metered pricing above it. Exact volume rates weren't widely published at the time of writing, so treat any savings estimate as provisional.
Why Cloudflare's search API arrives at the right time for agents
Not long ago, most small teams' AI workflow was simply "call an LLM with a prompt." Now it's retrieval-augmented generation and agent loops. The model decides to search, pulls in current information, and grounds its answer in it. Search has become a load-bearing part of the architecture.
That demand is why Tavily, Exa, Brave's Search API and wrappers like SerpAPI and Serper.dev have all leaned into AI use cases. Cloudflare is entering at peak demand. It also has something those competitors lack: if your agent already runs on Workers, the search call stays on Cloudflare's own network instead of going out to an external vendor.
In a single lookup, that difference is small. In an agent loop it compounds. The model searches, reads, writes a follow-up query and searches again, and every extra round trip to an outside provider adds time.
The search API also fills the last gap in the stack Cloudflare has been assembling:
- Workers AI for inference
- AI Gateway for observability and rate limiting
- Vectorize for embeddings
- Web Search for real-time grounding
A team could build inference, memory and grounding without leaving one vendor. Whether you want that depends on your risk tolerance. The consolidation does have real appeal for a two-person team juggling API keys and invoices.
Who should test Cloudflare's Web Search API first
Solo founders building vertical research assistants. Think competitor price monitoring, or a tool that surfaces recent case law for one practice area. These products depend on fresh data. Founders often end up paying $75–$100 a month to SerpAPI or Serper.dev before they have any revenue. If your validation-stage query volume fits in Cloudflare's free tier, that cost disappears for the first few months.
The catch is coverage. In a niche domain such as academic preprints, regional news or B2B pricing pages, gaps in the index will look like "the AI doesn't know this." That's easy to misdiagnose as a model problem when it's really a search problem.
Agencies running client monitoring dashboards. Brand-mention trackers, SEO gap reports and competitive content tools can run 50,000–200,000 queries a month. At that volume, search is a real line item. If the agency already hosts client sites on Cloudflare or uses Workers, adding search to a Workers pipeline is clean. It's also one fewer vendor relationship per engagement.
Small SaaS teams with search inside the product. A chatbot answering industry questions, or a content tool that pulls current examples, can hit 10,000–100,000 queries a month with a few hundred users. The case is strongest for teams already running inference on Workers AI, because then the whole RAG loop stays on Cloudflare's network.
Freelancers building agent prototypes for clients. Handoffs get messy when the client inherits five vendor accounts. A Cloudflare-only stack (Workers AI, Vectorize, AI Gateway, Web Search) is one vendor, one invoice and one set of docs. That's a cleaner package to pitch and hand over.
Testing Cloudflare's Web Search API before you depend on it
If you're starting a new project, evaluate Cloudflare early rather than defaulting to whoever you used last time. Build a batch of 200–300 queries that reflect what your product will actually ask. Skip generic ones like "latest AI news" and use the specific, sometimes obscure queries your users will send.
Then check three things:
- whether content from the last 24–72 hours shows up
- how locale handling behaves if you're localized
- how well it covers the long tail of your niche
If you're already paying another provider, run a parallel test before migrating. Export a week of real production queries and send them through both APIs. Compare how often the top five results overlap, and compare freshness. If they match closely on your domain, migrating could save money. If they diverge, keep the incumbent while Cloudflare's index matures.
If you're already on Workers, integration is a fetch call from inside a Worker. That's a few lines of code. It's worth testing now even if you keep your current provider as a fallback.
My firm rule: don't hardcode Cloudflare as the only search provider in customer-facing code for the first 60–90 days. With a new index, the danger usually isn't wrong results. It's missing ones, and you tend to find out in front of a client.
Cloudflare's Web Search API vs other search APIs
Prices below are as listed in the original version of this article. These products reprice often, so confirm current rates before you budget.
| Tool | Best for | Free plan | Starting price | Key differentiator |
|---|---|---|---|---|
| Cloudflare Web Search API | Workers-based agents, Cloudflare-native stacks | Yes (limited) | Usage-based; volume rates not yet widely published | Runs on the same network as Workers; potential latency advantage |
| Tavily | LLM agent pipelines, direct-to-prompt search | Yes (1,000 requests/mo) | ~$0.004/request | Output formatted for LLMs; agent-first design |
| Brave Search API | Privacy-forward products, independent index | Yes (2,000 queries/mo) | ~$3/1,000 queries | Independent index outside the Google/Microsoft pipeline |
| Exa | Semantic, concept-based queries | Yes (limited) | ~$10/1,000 queries | Neural search that finds semantically related pages |
| Serper.dev | Budget SERP data at mid volume | No | ~$50/mo (50,000 queries) | Low price at mid volume, fast setup |
| SerpAPI | Google results, detailed SERP parsing | No | ~$75/mo (5,000 queries) | Google result access with rich SERP feature parsing |
My read: Tavily is still the best default for a team building an agent from scratch, because its results need less cleanup before they go into a prompt. Cloudflare is the strongest choice if you're already invested in Workers. Brave remains the pick for privacy-sensitive products, or for European clients who care where the index comes from.
You can also combine them. One sensible split is Cloudflare for high-volume, cost-sensitive lookups and Tavily for queries where answer quality matters most.
Risks of building on Cloudflare's search index
Index coverage. This is the most immediate risk. Expect gaps on low-traffic domains, on non-English regional content, and on anything behind authentication. If you ship to production in the first six months, you're a beta tester whether you meant to be or not.
Vendor concentration. This is the structural risk. Add Web Search to Workers, Pages, R2, KV, Vectorize and AI Gateway, and one company now holds your entire stack. A pricing change, policy shift or major outage would hit every layer at once.
The fix is cheap if you do it on day one. Put a thin abstraction between your agent logic and the search provider so you can swap providers without rewriting prompts or parsing code.
Pricing trajectory. Cloudflare's free tiers have tended to stick around, but paid pricing on a new product can move once the company sees real usage. Don't lock budget assumptions to launch pricing.
Preprocessing work. Tavily shapes its output for LLMs, with deduplication and prompt-friendly snippets. Cloudflare will likely return more conventional search results, so budget time to trim and format them before they reach your model.
Freshness guarantees. Cloudflare hasn't clearly published any. If your agent depends on breaking news, recent product releases or new regulations, how fast the index picks up new pages will decide whether this API works for you.
Frequently asked questions
Is Cloudflare's search API its own index or a Bing/Google wrapper?
Cloudflare runs its own crawler, so an independent index is the most plausible reading. Building a reseller product on top of someone else's index would be an odd choice for them. Until Cloudflare publishes detailed documentation on sources and methodology, though, treat that as likely rather than confirmed.
Will my site end up in Cloudflare's index just because I use its CDN?
Cloudflare hasn't addressed this directly. Standard robots.txt rules should govern its crawler, so sites that block crawling shouldn't be indexed. Seeing traffic on the network is a separate thing from crawling page content, so watch Cloudflare's documentation if this matters to your business.
Does Cloudflare log or reuse my search queries?
Any API that receives your queries has data-handling implications, and providers differ on retention and reuse. Cloudflare's privacy commitments have generally been friendlier than industry norms. If you work in a regulated field or handle sensitive research, read the data processing terms before adopting this or any other search API.
Does it return AI-generated answers or just results?
At launch it appears to be a standard results API that returns URLs, titles and snippets, not synthesized answers. For developers that's a good design. You get raw material for your own LLM pipeline without another AI layer you can't control. Plan to handle summarization yourself.