Cloudflare Launches Beta Feature That Automatically Adds Search APIs for AI Agents to Websites

Cloudflare has launched Search for Agents in beta. When a site operator enables the feature, Cloudflare begins building a search index and lets AI agents retrieve relevant information through an API on the site's own domain, including on the Free plan.
Exposing site search to AI agents
Cloudflare announced Search for Agents on November 25.
The existing AI Search could already use a website as a search source. However, operators had to configure the search environment and integrate it into their sites themselves.
With Search for Agents, enabling the feature from the dashboard for a domain registered with Cloudflare begins building a search index. Cloudflare also automatically exposes a search API on the site's own domain.
The search path is /.well-known/search. Information describing the search API's URL and usage is also added to the HTML of every page. An AI agent that reads this information can search indexed pages for relevant information instead of following links to locate individual pages.
According to the technical documentation, the service combines keyword search with vector search, which measures semantic similarity between text. By default, it returns up to 10 text fragments in Markdown, a lightweight markup format. Results also include sources and numerical relevance scores.
Cloudflare returns information retrieved from the site and does not generate answers through the search API itself. AI agents can read the search results with their own models and use them to answer users.
In addition to HTTP GET, the API supports the new QUERY method. GET sends the search query as part of the URL, while QUERY can send it in the request body.
Search scope and content freshness
The default Discover mode finds pages through a sitemap listing the site's pages and through links within pages. Subdomains are not included, and index synchronization is set to 24 hours by default.
Cloudflare's technical documentation on crawling modes recommends Sitemap mode when a sitemap comprehensively lists the pages that should be indexed.
Sitemap mode detects changes to the last-modified dates listed in the sitemap and retrieves those pages again. Discover mode retrieves pages again based on a configured cache lifetime.
Cloudflare's limits and pricing documentation, updated on November 17, also limits crawling under the Workers Free plan to 500 pages per day.
According to the AI Search keyword-search specification, the default porter tokenizer is unsuitable for Japanese keyword search because it divides text at spaces and punctuation. Cloudflare recommends trigram, which divides Japanese content into overlapping three-character segments. Changing the tokenizer rebuilds the entire index.
Cloudflare Search for Agents: Search index and Japanese search settings
| Item | Default | Alternative |
|---|---|---|
| Page collection mode | ||
| Mode | Discover (default) | Sitemap |
| Page discovery | Sitemap and links | Sitemap |
| Refresh criteria | Cache lifetime | Last-modified date change |
| Japanese keyword search in AI Search | ||
| Tokenizer | porter | trigram |
| Segmentation method | Spaces / punctuation | Overlapping 3-character segments |
| Japanese search | Unsuitable | Recommended |
| Default settings / operating conditions | ||
| Index synchronization | 24 hours by default | |
| Subdomains | Excluded by default | |
| Workers Free plan | Up to 500 pages crawled per day | |
| Changing tokenizer | Rebuild entire index | |
For websites that frequently add information, such as news sites, the time required for a newly published article to appear in AI-agent search results also matters. Operators should choose an index update method and crawling allowance based on the amount of content they publish.
AI access controls and publication scope
Existing AI Crawl Control settings and web application firewall (WAF) configurations apply to access to the search API.
Bot protections also apply to Cloudflare's own crawler that builds the index. In Discover mode, the crawler declares both search, for search use, and ai-input, for AI input, as purposes for crawling. If either is set to no in the Content Signals usage policy in robots.txt, crawling is denied.
Sites that tightly control the information they provide to AI need to review how existing access controls relate to both crawling for index creation and external searches.
Cloudflare also lets operators specify URL patterns for pages to include in or exclude from a website's search index. The ability for operators to decide which information can be searched has value.
Potential crawling reduction and operating costs
Usage-based billing for AI Search is scheduled to begin on December 1, and Search for Agents follows that pricing model.
Monthly allowances are provided, with content ingestion, index storage, and search requests counted toward usage. External searches are also included.
Cloudflare Search for Agents (beta): Indexing and external search
| Item | Indexing | External search |
|---|---|---|
| Setup | Enabling starts indexing and automatically exposes search API | |
| Availability | All plans, including Free | |
| Search endpoint discovery | Add search API information to each page's HTML | |
| Processing entity | Cloudflare | AI agent |
| Operation | Crawl and index pages | Search on own domain /.well-known/search |
| Information handling | Store retrieved content in index | Search by keywords + meaning Default: Up to 10 fragments |
| Transfer | Crawl within site | GET/QUERY Return as Markdown No generated answer |
| Publication scope | Specify by URL pattern | Indexed content |
| Traffic control | WAF and other bot protections | AI Crawl Control・WAF |
| Discover mode robots.txt usage policy | ||
| Usage policy | Through Content Signals Crawling denied if either search or ai-input is no | |
| AI Search usage / billing | ||
| Usage | Ingestion / index storage | External search requests |
| Monthly allowance | Available | |
| Planned billing date | December 1, 2026 | |
※Date as stated in U.S. documentation.
Cloudflare published an example in which the OpenCode AI agent detected and used the search API for the company's developer documentation.
If searches replace crawling by multiple AI agents, traffic and processing on the origin server could decrease. If agents continue to access individual pages, index creation and maintenance and search-request processing will be added to the existing crawling workload.
If AI systems can retrieve information more efficiently while reducing the operational burden on websites, both those seeking information and those publishing it could benefit.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.