---
title: "Introducing Web Search API"
slug: introducing-web-search-api
url: https://listedarticles.com/articles/introducing-web-search-api
canonical_url: https://developers.cloudflare.com/changelog/post/2026-10-02-introducing-web-search-api/
content_type: changelog
language: en
published_at: 2026-10-02T00:00:00.000Z
updated_at: 2026-10-05T23:15:50.761Z
authored_by: human
publisher: "Cloudflare"
publisher_url: https://www.cloudflare.com/
topics: ["AI", "Developer Tools", "Cloud", "Search"]
license: all-rights-reserved
word_count: 221
reading_minutes: 1
citation: "Cloudflare. \"Introducing Web Search API.\" 2 Oct 2026. https://developers.cloudflare.com/changelog/post/2026-10-02-introducing-web-search-api/ (all-rights-reserved)"
---

# Introducing Web Search API

> Cloudflare's changelog announces Web Search API in beta, letting AI agents and apps search the web through AI Gateway using Ceramic.ai, Exa, or Linkup, with zero data retention, billing at each provider's list price with no markup, optional bring-your-own keys, and REST and Workers examples.

## Introducing Web Search API

[Web Search API](https://developers.cloudflare.com/web-search/) is now available in beta. Web Search API lets your AI agents and applications search the Internet and ground their responses in live information, instead of guessing URLs or relying on a model's training cutoff.

At launch, you can choose between three search providers: [Ceramic.ai, Exa, and Linkup](https://developers.cloudflare.com/web-search/providers/). All three support Zero Data Retention for requests made through Cloudflare, and all have committed to Cloudflare's [verified bot](https://developers.cloudflare.com/bots/concepts/bot/verified-bots/) crawling standards.

Web Search API runs through [AI Gateway](https://developers.cloudflare.com/ai-gateway/), so search requests appear in your gateway logs and are billed to your AI Gateway credits at each provider's list API price, with no additional markup. You can also bring your own provider API key.

Call Web Search API with the REST API:

```bash
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/websearch/ \
  --request POST \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "query": "What are some fun things to do in Salt Lake City as fall approaches?",
    "provider": "ceramic",
    "limit": 5,
    "options": { "gateway": { "id": "default" } }
  }'
```

Or from a Worker with the AI binding:

```js
const response = await env.AI.websearch({
  gatewayId: "default",
  query: "What are some fun things to do in Salt Lake City as fall approaches?",
  provider: "exa",
  limit: 5,
});

const results = await response.json();
```

To get started, refer to [How to use Web Search API](https://developers.cloudflare.com/web-search/how-to-use/).
