Skip to content

Cloudflare Adds Web Search to AI Gateway for Grounding Agent Responses

Short answer

Cloudflare launched a Web Search API inside AI Gateway, partnering with Ceramic.ai, Exa and Linkup so developers can inject live web context into model calls through AI Gateway, a REST endpoint, or a Workers binding, instead of having agents guess URLs to fetch pages.

What this means for operators

For a 10-200 person B2B company running support or sales agents, this removes a common failure mode: agents that hallucinate or 404 when guessing URLs to fetch current pricing, policy updates, or competitor info. If you're already using Cloudflare Workers or AI Gateway for inference routing and logging, adding grounded web search is now a one-line binding rather than a separate integration with a third-party search vendor, and it draws from the same billing and observability you already have.

Cloudflare has added a native Web Search API to its AI Gateway, built in partnership with search providers Ceramic.ai, Exa, and Linkup. The feature lets developers pull live web results into a model's context window during inference, addressing the gap where models are frozen at a training cutoff and can't speak to recent events or changing documentation.

Three access paths are available: directly through AI Gateway, via a standard REST endpoint (passing an AI Gateway auth token and a provider name in the request payload), or through a Workers binding that Cloudflare says takes one line of code to call. Requests appear in the same AI Gateway observability logs as model inference calls, and usage draws down from the existing AI Gateway credit balance. Cloudflare says it is offering the search at list API pricing from partners with no added markup, and supports Bring-Your-Own-Key setups for organizations with existing provider accounts. The company also says it will flag which partners support Zero Data Retention so users know their queries aren't being stored.

Crawling behind the search results is tied to Cloudflare's bot policy: partner crawlers must meet Cloudflare's published "Verified bots" requirements, and every web search response must link back to the source of the crawled content.

Cloudflare also previewed upcoming "Server Tools" built directly into AI Gateway, which would remove the need for developers to define tool-calling logic themselves; web search is slated to be among the first tools included. Until then, Cloudflare published a Workers code sample showing how to wire web search into a tool-calling loop manually.

Source: Cloudflare Blog · In the Atlas: Cloudflare OS →

Next step

Visibility Analyzer

This is what the Visibility Analyzer measures on a real site: which answers cite you, which pages an engine cannot retrieve, and what to fix first. Free to run.

Run a free visibility audit

Free to run. No card.

Fee
Free
Length
One run, minutes

Free tier: two analyses a day, no card required.