Web Search API is a new beta service that lets AI agents and applications perform live Internet searches so their outputs can be grounded in up-to-date information rather than relying on a model’s training cutoff or guessing URLs. It runs through AI Gateway so every search request is logged in gateway logs and billed against AI Gateway credits at each provider’s list API price with no Cloudflare markup. Users can also supply their own provider API key. The release emphasizes practical grounding of agent responses and integrates search into existing AI Gateway workflows.
At launch, three providers are available: Ceramic.ai, Exa, and Linkup; all three pledge Zero Data Retention for requests routed through Cloudflare and comply with Cloudflare’s verified bot crawling standards. The API is accessible via a REST endpoint at /accounts/$CLOUDFLARE_ACCOUNT_ID/ai/websearch/ (Authorization header and JSON body) and from Workers using env.AI.websearch, with common parameters such as query, provider, limit, and gateway options. Responses arrive as JSON. Examples in the documentation show typical curl and Workers calls and point to a how-to guide for getting started.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.