Cloudflare introduces "Search for Agents," a new feature enabling websites to expose a direct search API for AI agents. This service, built on Cloudflare's AI Search, allows agents to query site content efficiently, bypassing traditional crawling. It highlights evolving web architecture to support machine visitors and presents both technical solutions and cost considerations for website owners.
Read original on The New StackTraditionally, AI agents access website content by crawling pages. However, limitations like character limits in `llms.txt` files (e.g., 100,000 characters for Mintlify) can lead to incomplete content indexing, preventing agents from discovering all available information. This inefficiency becomes critical as AI agent traffic increasingly rivals human traffic.
Cloudflare's new "Search for Agents" feature provides a dedicated, agent-discoverable search API for websites. This service provisions an AI Search instance for the website, which then crawls and indexes its content. Instead of navigating pages, agents can directly query a `/.well-known/search` endpoint, receiving relevant content excerpts in Markdown format.
Architectural Benefits
By offering a direct search API, Cloudflare significantly improves the efficiency and accuracy of content retrieval for AI agents. This bypasses the overhead of traditional crawling and ensures agents access a comprehensive and structured index, making web content more programmatically accessible.
While Search for Agents is available across Cloudflare plans, website owners incur costs for ingestion, storage, and queries beyond a monthly free allowance. This presents an interesting trade-off: website owners foot the bill to make content more accessible to agents, even as Cloudflare explores ways for publishers to monetize AI traffic through initiatives like pay-per-crawl and the Monetization Gateway. Future integration of Search for Agents with the Monetization Gateway aims to enable direct charging for agent search queries, balancing accessibility with economic incentives.