A Cloudflare API that lets AI agents search the live web through one endpoint, with switchable providers and unified billing.

Docs hero
1 / 2Overview
What is Web Search API?
Give AI Agents Access to Live Internet Data
Web Search API is Cloudflare's API that gives AI agents access to live internet data. It offers one endpoint with three switchable search providers — Ceramic.ai (the default), Exa, and Linkup — all returning results in a unified format, so switching providers takes a single parameter change. Billing runs through AI Gateway credits at each provider's list API price with no markup (Ceramic.ai $0.25, Exa $7.00, Linkup $5.00 per 1,000 requests), or you can bring your own provider key. Search requests appear alongside model inference in AI Gateway logs and analytics, and every provider meets Cloudflare's verified-bot requirements, respects robots.txt, and attaches a source link to each result. Call it from any backend via REST, from a Worker with the AI binding, or through AI Gateway's /search endpoint in OpenAI, Anthropic, Google, or Universal format. Built for developers grounding AI agents and applications in live information.
Platforms and languages
Web Search API Availability
Platforms
Languages
Capabilities
Web Search API Key Features
Switchable search providers
Pick between Ceramic.ai (default), Exa, and Linkup with a single provider parameter — all return results in one unified format.
Unified billing
Pay with AI Gateway credits at each provider's list API price with no markup, or bring your own provider API key.
Built-in observability
Search requests appear alongside model inference requests in AI Gateway logs and analytics.
Responsible crawling
Every provider meets Cloudflare's verified-bot requirements and respects robots.txt, and each result ships with a source link.
Two ways to call it
Call from any backend via REST, from a Worker with the AI binding, or through AI Gateway's /search endpoint in OpenAI, Anthropic, Google, or Universal format.
Best for
Who uses Web Search API?
Developers building AI agents and AI applications
Ground agent responses in live internet data without managing search infrastructure
Plans and access
Web Search API Pricing
Paid
Pay per search via AI Gateway credits: Ceramic.ai $0.25, Exa $7.00, Linkup $5.00 per 1,000 requests.
Common questions
Web Search API FAQs
How do I call the API?
Use the REST endpoint from any backend, the env.AI.websearch binding inside a Cloudflare Worker, or the AI Gateway /search endpoint that accepts OpenAI, Anthropic, Google, or Universal formats.
Which search providers are available?
Ceramic.ai (the default), Exa, and Linkup. Set the provider parameter to ceramic, exa, or linkup; all three return the same result format so you can switch without changing code.
How does billing work?
With AI Gateway credits you pay each provider's list price per search with no markup: $0.25 per 1,000 requests for Ceramic.ai, $7.00 for Exa, $5.00 for Linkup. You can also bring your own provider key and be billed by the provider directly.
Which providers keep my data private?
The docs mark zero data retention per provider: Ceramic.ai yes, Exa no, Linkup yes. All providers must meet Cloudflare's verified-bot standard and respect robots.txt.
Can I see what was searched?
Yes. Search requests show up in AI Gateway logs and analytics next to your model inference requests, with unified billing and access controls.
Reviews
See what the community thinks and share your experience.
—
Based on 0 ratings
Rating distribution
Community reviews
No reviews
No written reviews yet.