How Claude searches the web and cites sources
Updated


On this page
Claude citations are links to the web pages a Claude answer used, and each one carries the short passage Claude took from that page. In an AI answer, a citation is the link that shows where a statement came from. Claude, Anthropic’s AI assistant, finds those pages through web searches and quotes the parts it relies on.
Readers new to AI search can start with the Answer Engine Optimization (AEO) guide. The Claude for SEO and AEO hub also covers SEO work in Claude, such as How to use Claude SEO skills.
Claude decides for itself when to search the web
Claude searches the web when it judges that a search would make its answer more accurate. Anthropic’s web search API announcement says Claude uses its reasoning to make that call for each question.
Anthropic’s web search help article names recent news and upcoming events as the typical cases. The newer version of the Claude app has no web search toggle, and Claude searches when it helps. You can tell Claude to search in your prompt, the question or instruction you type, and you can also tell it not to.
On Team and Enterprise plans, an Owner or Primary Owner has to turn on web search for the organization before members can use it. Claude may also use an approximate location, taken from the IP address, when a question needs local results.
Claude searches with Anthropic’s web search tool
Claude’s searches run through Anthropic’s web search tool, a service that sends each query to a search backend and returns the results to Claude. Anthropic’s web search tool docs describe it for the Claude API, the programming interface developers use to build Claude into their own software. Claude Code, Anthropic’s AI coding tool, runs its WebSearch tool on the same backend, according to the Claude Code tools reference.
How does Claude search the web?
Claude searches the web in 3 steps, and the middle step can repeat several times within one answer.
- Claude decides from the prompt when to search and what to search for.
- The web search tool runs the searches and gives Claude the results.
- Claude writes a final answer that cites its sources.
- Claude decides that “What time does the Example Town library open on Saturday?” needs a web search.
- The web search tool runs
example town library saturday hoursand returns 3 results. - Claude opens the top result, Library hours at example.com/library/hours.
- Claude quotes the one sentence on that page that answers the question, “On Saturdays the library opens at 9 a.m. and closes at 5 p.m.”
- The answer says the library opens at 9 a.m. on Saturdays and cites that sentence with a link back to the page.
The library and its pages are an invented example.
Claude can use earlier results to write its next query, according to Anthropic’s announcement. A single-fact question typically uses 1 to 3 searches, and research that compares several things can use 10 or more, per Anthropic’s tool docs. In Claude Code, one WebSearch call can run up to 8 backend searches as it refines the query.
Each search result Claude reads carries the page’s URL, its title, its page age and its content. Page age is the tool’s record of when the site was last updated. The tool’s web_search_20260209 version and later ones add dynamic filtering, which works with Claude 4.6 and later models. Claude writes and runs code that filters the results first, so only the parts relevant to the request reach it.
What search engine does Claude use?
As of November 2026, Claude’s web search draws on outside providers, and Anthropic’s subprocessor list names Brave Search as one for all Anthropic products. A subprocessor is an outside company that handles data on Anthropic’s behalf. The same list names Parallel Web Systems and TurboPuffer for web search in all products except Claude for Government.
Anthropic’s help article says image results in Claude come from Bing. Each image links to the page it came from.
Claude citations point to a quoted passage
Claude citations link a statement in the answer to the page it came from and to the passage Claude used. Anthropic’s help article says every response that uses web search includes citations, so you can check the sources yourself.
In the Claude API, citations are always on for web search, and a developer can’t turn them off. Anthropic’s web fetch tool docs cover the separate tool that reads a full page from a URL. Its citations are off by default, and a developer can turn them on.
The tool docs say developers who show Claude’s answers directly to their own users have to include citations to the original sources.
What does a Claude citation contain?
A Claude citation from the API contains 4 fields, and together they name the source and the exact text Claude used.
| Field | What it holds |
|---|---|
url |
The address of the cited page |
title |
The cited page’s title |
cited_text |
Up to 150 characters of the cited content |
encrypted_index |
A reference the developer passes back to continue the conversation |
{"type": "text","text": "The Example Town library opens at 9 a.m. on Saturdays.",Statement
This is the sentence in Claude's answer that the citation supports.
"citations": [{"type": "web_search_result_location",Source type
This value marks the citation as one that came from web search.
"url": "https://example.com/library/hours",Page address
A reader opens this link to check the source.
"title": "Library hours",Page title
This is the title of the page the passage came from.
"encrypted_index": "EpABCioIAhgB…",Reference
The developer sends this value back with the next turn of the conversation.
"cited_text": "On Saturdays the library opens at 9 a.m. and closes at 5 p.m."Quoted passage
This is the text Claude took from the page.
The passage uses 61 of the 150 characters a citation can quote.
}]}The example values are invented. The field names and the 2 type values come from Anthropic's web search tool docs, in the order the docs show them.
Claude reaches pages through 2 Anthropic bots
Claude reaches web pages through Claude-SearchBot, Anthropic’s search crawler, and Claude-User, the bot that fetches pages while Claude answers someone. A crawler is a program that fetches web pages automatically. ClaudeBot is a third Anthropic bot, and it collects pages for training future models.
| Bot | Job | What blocking it does |
|---|---|---|
| ClaudeBot | Training | Signals that the site’s future material should be left out of training |
| Claude-SearchBot | Search | Stops indexing for Claude’s search and may reduce the site’s visibility |
| Claude-User | User requests | Stops Claude from retrieving pages for user questions and may reduce visibility |
Anthropic’s crawler page says all 3 bots follow robots.txt, a plain text file at a site’s root that tells crawlers which pages they may fetch. Indexing is the step where a search system stores a copy of a page so it can find and cite the page later.
Claude Code’s WebFetch tool sends a user agent that begins with Claude-User. A user agent is the line in every request where the sender states what software it is. Anthropic’s web fetch tool for developers won’t fetch a URL that robots.txt or Anthropic’s own restrictions block. It also fetches only URLs that already appeared in the conversation, such as a link the person typed or one a search returned.
Each major AI company runs its own bots, and Which AI bots crawl my website and should I block them? gives the robots.txt rules for each. Its section What are ClaudeBot, Claude-SearchBot and Claude-User? goes deeper on Anthropic’s 3 bots.
Does blocking ClaudeBot keep a site out of Claude’s answers?
No, blocking ClaudeBot doesn’t keep a site out of Claude’s search answers, because Claude’s search uses Claude-SearchBot and Claude-User. A site that wants Claude citations and no training use can block ClaudeBot and leave Claude-SearchBot and Claude-User allowed.
Switch each bot to see its robots.txt lines and what the setting changes.
- robots.txt With at least one search bot allowed, this gate is open. With both search bots blocked, this gate closes and the page stops in front of it.
- Readable HTML The page's text arrives in the server's HTML before any JavaScript runs.
- 150 characters The key fact is short enough to quote whole.
robots.txt
User-agent: ClaudeBotAllow: /Disallow: /User-agent: Claude-SearchBotAllow: /Disallow: /User-agent: Claude-UserAllow: /Disallow: /What Claude can reach
Claude-SearchBot and Claude-User allowed. Claude's search can index the site and fetch its pages. This is the setting for a site that wants Claude citations.
Claude-SearchBot blocked. Claude's search can't index the site. Claude-User can fetch a page when someone's question needs it.
Claude-User blocked. Claude's search can index the site. Claude can't fetch its pages while it answers someone.
Claude-SearchBot and Claude-User blocked. Neither Claude-SearchBot nor Claude-User can reach the site, so Claude can't index or fetch its pages. Anthropic says each block may reduce the site's visibility in Claude.
Claude cites pages it can reach and quote
A page has its best chance at a Claude citation when Anthropic’s bots can reach it and fetch the text Claude needs.
- The page allows Claude-SearchBot and Claude-User in robots.txt.
- The main text is in the HTML the server sends. Anthropic’s web fetch tool doesn’t support pages that build their content with JavaScript, the code a browser runs to build a page after it loads.
- Each key fact fits in one short sentence. A citation quotes up to 150 characters, so a fact stated within that space can be quoted whole.
- Recent edits may take time to reach Claude. The web fetch tool caches pages, so it can return an older version of a page.
- In Claude Code, WebFetch reads up to 100,000 characters of a page per call. A separate model call then pulls out what Claude asked for, and Claude receives that extract.
- With dynamic filtering, the parts of a page that don’t relate to the request never reach Claude.
- A developer’s allowed or blocked domain list can keep a site out of an app’s results, whatever the page holds.
The page changes that apply to every answer engine are in Seven changes make a page easier to cite, a section of the AEO guide. For OpenAI’s search in ChatGPT, see How do you get cited by ChatGPT?.
Claude’s search works differently in each product
As of November 2026, Claude’s web search works in the Claude app, Claude Code and the Claude API, and each sets its own limits.
Claude app
- Decides to searchClaude decides, once an owner turns search on for Team or Enterprise
- SearchesOn free accounts, searches count toward usage limits
- Reads a pageOpens the URLs you give it
- What comes backAn answer with citations
Claude Code
- Decides to searchYou approve WebSearch, or an allow rule does
- SearchesUp to 8 backend searches a call and 200 calls a session
- Reads a pageWebFetch reads 100,000 characters a call
- What comes backResult titles and URLs
Claude API
- Decides to searchThe developer adds the web search tool
- SearchesThe max_uses setting caps searches per turn
- Reads a pageThe web fetch tool, with citations optional
- What comes backCitations that quote up to 150 characters
All 3 lines meet at the same Anthropic web search backend.
| Claude app | Claude Code | Claude API | |
|---|---|---|---|
| When Claude searches | When it helps, after Team and Enterprise owners turn search on | When Claude calls WebSearch, after you grant permission or an allow rule covers it | When the developer adds the web search tool to the request |
| Search limits | Free accounts’ searches count toward usage limits that reset every 5 hours | 200 WebSearch calls per interactive session, with a setting to raise the cap | The max_uses setting caps searches per turn |
| Reading pages | Claude reads URLs you give it | WebFetch reads up to 100,000 characters per call | The web fetch tool, with citations off by default |
| Location and domains | Approximate location from the IP address | Allowed or blocked domains for each search | Allowed or blocked domains and an approximate user location |
As of November 2026, web search on the Claude API costs $10 per 1,000 searches plus standard token costs. Tokens are the small chunks of text a model reads and writes, and API pricing counts them. Search results count as input tokens, and the web fetch tool adds no charge beyond token costs.
Does Claude Code have web search?
Yes, Claude Code has web search through its WebSearch tool, and its WebFetch tool reads the pages a search finds. WebSearch returns result titles and URLs only, so Claude follows up with WebFetch to read a page.
Both tools need permission before they run, unless your settings allow them. As of November 2026, WebSearch works on the Claude API, Claude Platform on AWS and Microsoft Foundry. On Google Cloud’s Agent Platform, it works with Opus 4, Sonnet 4, Haiku 4.5 and later models. Amazon Bedrock doesn’t offer the server-side web search tool, so WebSearch isn’t available there.
The search backend in Claude Code can’t be changed. Searching with a different provider takes a Model Context Protocol (MCP) server, a connector that adds tools to Claude Code. How to set up the Google Analytics MCP server in Claude covers one MCP server, which reads Google Analytics 4 (GA4) report data.
Frequently asked questions
How do I block Claude from searching my site?
To stop Claude from indexing and fetching your pages, block Claude-SearchBot and Claude-User in robots.txt. Anthropic says each block may reduce your site’s visibility in Claude.
Is Claude web search free?
Yes, Claude web search works on free Claude accounts, where searches and page fetches count toward usage limits that reset every 5 hours. On the Claude API, web search costs $10 per 1,000 searches plus standard token costs.
Can Claude cite a page built with JavaScript?
Claude may not be able to cite a page built with JavaScript, because Anthropic’s web fetch tool doesn’t support those pages. Text that appears only after a browser runs the page’s code may not reach Claude.