Cloudflare AI Search Gives Agents a Public API on Your Domain
Cloudflare AI Search can now index your site and expose a public API for agents. We tested GET and HTTP QUERY and checked what the beta costs.

Cloudflare AI Search can now give AI agents a search endpoint on your own domain. Flip on Search for Agents and Cloudflare indexes your pages, advertises the endpoint in site responses, and serves relevant excerpts at /.well-known/search. The November 25 launch puts that setup behind a dashboard toggle. The beta is available on all plans, including Free, with usage limits.
We tried the public endpoint on Cloudflare’s own documentation. It returned the correct Artifacts file-size limit, alongside a plausible-looking limit for an entirely different product. For a team running public docs, that’s the rollout question worth asking. Can an agent find the right passage and use it accurately, even when several pages appear to answer the same question?
What the Cloudflare AI Search toggle sets up
Select your onboarded domain in the Cloudflare dashboard, open Overview → Quick Actions, turn on Search for Agents, and confirm the defaults and pricing. Once the crawler has indexed pages, the endpoint can serve queries. The setup guide says the instance starts at the domain you enabled. It follows links and sitemaps with a default depth of five link hops, and subdomain crawling starts off. If your docs live on a separate hostname, check that the pages you want actually land in the index.
The index combines keyword matching and vector search. That lets a client ask a question in plain English or search for an exact term such as an error identifier. The endpoint returns excerpts in Markdown with source references and relevance scores. The calling agent can use those excerpts in its own answer. If you already use Markdown for Agents, that feature provides a Markdown version of a specific page. Search for Agents gives the client a way to find which pages to read in the first place. Cloudflare’s search defaults.
On Cloudflare’s docs homepage, we found four HTML metadata fields advertising the endpoint, its instructions, GET as the method, and a documentation link. Requesting the homepage with Accept: text/markdown exposed the same information in YAML. These are hints a client has to read and follow. Cloudflare’s launch demo shows OpenCode discovering the endpoint and querying it. Test the clients your users actually run before assuming they’ll take that route.
What GET and HTTP QUERY returned in our test
We sent the same question to Cloudflare’s live docs on November 26 using GET, QUERY with JSON, and QUERY with a plain-text body. All three returned 200 OK, a text/markdown content type and identical response bodies for that query.
endpoint='https://developers.cloudflare.com/.well-known/search'
curl -fsS --get "$endpoint" \
--data-urlencode 'q=What is the maximum size of a single file in Cloudflare Artifacts?'
curl -fsS -X QUERY "$endpoint" \
-H 'Content-Type: application/json' \
--data '{"q":"What is the maximum size of a single file in Cloudflare Artifacts?"}'The first hit scored 1.000. In its flattened limits table, Cloudflare Artifacts lists 32 MiB per file and 64 MiB per push. The second hit, scored 0.910, was for Cloudflare Pages and gave 25 MiB per site asset. A second query about message size correctly surfaced 128 KB in the Cloudflare Queues limits, where the footnote says internal metadata counts toward the total. For limits and other values people will build against, check the product, the unit and the qualifier against the original page.
With GET, the search text travels in the q URL parameter. With QUERY, it travels in the body as text or JSON. The IETF’s June 2026 RFC 10008 defines QUERY as safe and idempotent. The request asks the server to perform a read, and clients can repeat it without requesting a state change. A short text query works fine over GET, which the discovery metadata already advertises. A body is handy when you want structured input or more room than a URL affords. On this endpoint, Cloudflare documents a q field for JSON.
What the beta costs and who can search it
AI Search billing starts December 1. Cloudflare’s pricing table includes 5 million ingestion tokens, 10 GB-month of storage, 1,000 semantic queries and 1,000 full-text queries per account per month. Workers Free also caps crawling at 500 pages per day. A fresh index covering 2,000 pages would need at least four days’ worth of crawl allowance on Free, assuming one fetch per page and no competing crawls. The default sync interval is 24 hours. Measure how long a changed limit or deprecated example takes to reach search results on your site.
Suppose a Workers Paid account records 10,000 hybrid queries counted toward usage in a month, with its full allowance available. At $0.75 per 1,000 beyond the first 1,000, the query line item would be $6.75. Ingestion and storage have their own allowances and rates. That calculation uses queries Cloudflare counts for billing. Use your account’s usage metrics to estimate your own bill.
Treat the endpoint as another way readers can get to indexed text. Cloudflare says requests are still subject to AI Crawl Control and web application firewall rules. Review the crawl scope and the rules that apply to the endpoint. Cloudflare’s website source configuration lets you restrict crawling to specific URL patterns. Keep private and subscriber-only material out of a public index. For discovery through Google’s AI features, Google still uses ordinary Search index and snippet eligibility.
What to do before you turn it on
Start with a public docs or help hostname where direct answers are valuable. Select a handful of real support questions and write down the source page, current product version and expected answer for each. Include a pair that is easy to confuse, such as a file limit and a push limit. After the first sync, inspect the indexed pages, check the discovery metadata, and run those questions from the same client your users have. Count a pass when its answer cites the right source and preserves the condition attached to the number.
Change one public test page and time how long it takes for search to reflect the edit. Repeat the test from an unauthenticated session to confirm what a public client gets. Check query usage at the end of the week and rerun the same questions. A help center has a reason to keep the toggle on if clients reach current answers reliably and the support team can afford the query volume. For a publisher measuring visits, log endpoint use and inbound referrals separately so a rise in API requests never gets mistaken for readers reaching the site.


