Search for Agents: A /.well-known/search Endpoint

On November 25, 2026, Cloudflare announced Search for Agents: a feature that gives any domain a uniform search path at /.well-known/search, returning retrieved content as Markdown instead of making an agent crawl your pages one by one.

The problem: crawling as the default access path

When an AI agent needs a single fact from your site — a price, a technical limit, one step in your documentation — the only route usually available is to fetch whole HTML pages and read them. That pulls down navigation, footers, and UI markup to extract one paragraph. The agent pays for it in context; the site owner pays for it in bandwidth and origin load.

The existing tools do not solve this. robots.txt declares permission, not a route. sitemap.xml lists URLs, not answers. Both tell an agent what it may visit, never how to ask a question.

What changed

The feature inverts the relationship. Instead of the agent inferring your site's structure, the site advertises an explicit retrieval interface.

Once enabled, an endpoint is created on the same domain at /.well-known/search, and it is advertised automatically in the <head> of every page through four meta tags:

  • agent:instructions — text telling the agent to use the search API rather than crawl, and noting that results come back in Markdown.
  • agent:endpoint — the search URL template, with ?q={query}.
  • agent:method — the expected method, GET.
  • agent:documentation — a link to the interface docs.

The response is not a generated answer. It is retrieved content: a heading for the query, then one section per match with a relevance score and an excerpt. Generation stays the agent's job and retrieval stays the site's — a clean split of responsibilities.

Alongside GET, the endpoint accepts QUERY, the newer HTTP method published as a Proposed Standard in RFC 10008 (June 2026), which allows a request body on a safe, read-only operation rather than stuffing everything into a query string. The method itself is covered in HTTP QUERY.

A practical example

bash
# Simple GET lookup
curl "https://example.com/.well-known/search?q=pricing"

# Natural-language question, correctly encoded
curl --get "https://example.com/.well-known/search" \
  --data-urlencode "q=what are the storage limits?"

# Same query over QUERY with a JSON body
curl -X QUERY "https://example.com/.well-known/search" \
  -H "Content-Type: application/json" \
  --data '{"q":"what are the storage limits?"}'

The response is raw Markdown, roughly:

markdown
# Search results for: "pricing"

## /docs/pricing.md (score: 1.000)
...excerpt...

And the advertisement an agent picks up sits in every page head:

html
<meta name="agent:endpoint"
      content="https://example.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">

Real-world caveats

  • It is in beta on all plans per the documentation, so it is not yet something to build a contractual guarantee on.
  • The index is not live. Defaults are a 24-hour sync interval, a crawl depth of five link hops, and a 100,000-page limit. Content published minutes ago may not be searchable yet.
  • Index only what you intend to be publicly searchable. A page protected by obscurity alone becomes queryable in one line.
  • Requests remain subject to AI Crawl Control, WAF, and bot management settings. It is easy to open a door and then wall it off with an older rule without noticing.
  • The defaults do not suit every corpus: hybrid search, the @cf/qwen/qwen3-embedding-0.6b embedding model, 1,024-token chunks, a maximum of ten results, a 0.4 match threshold, with reranking and query rewriting off. Long technical documentation usually needs tuning.
  • `/.well-known/search` is a vendor convention today, not a ratified standard. Nothing stops you implementing the same shape on any stack: a fixed path, a q parameter, a Markdown response.

Takeaway

The value here is not the toggle. It is the pattern: a site stops being a pile of pages read by accident and becomes a declared retrieval interface. That is a natural extension of the direction behind WebMCP — describing what an agent can do with your site rather than leaving it to guess.

The engineering work moves from blocking crawlers to designing the surface agents read. Teams that own that design multiply their reach instead of spending it on unwanted load.

Primary source: Introducing Search for Agents — Cloudflare