← ContentsClaude.ai · intermediate

Citations in responses

Citations is a feature that allows Claude to ground its responses in specific source documents or web pages by providing verifiable references to the exact text passages it used to generate an answer. When enabled, Claude automatically identifies which claims in its output are drawn from provided sources and attaches precise references — including exact quoted text and its location — so users can verify the information independently. There are two distinct modes of citations. In the claude.ai web interface, citations are tied to the Web Search tool: when you enable web search and Claude queries the internet, it appends numbered inline links (e.g., [1], [2]) to relevant sentences, pointing to the source URLs. In the API, citations work with user-supplied documents (PDFs, plain text, or custom content blocks): developers set a flag on each document, and Claude returns structured JSON that includes the exact quoted text and character-level location within the source file. The primary purpose of citations is to reduce hallucinations and make Claude's outputs auditable. Instead of trusting Claude's answer at face value, users and developers can trace every factual claim back to a specific sentence or paragraph in a real source document or webpage.

When you’d use it

  • Legal document reviewA paralegal uploads a dense regulatory PDF via the API with citations enabled and asks Claude to identify specific penalty clauses. Claude returns quoted excerpts with exact character positions, letting the legal team verify each finding against the source document without manually searching hundreds of pages.
  • Customer support chatbot with knowledge base groundingA developer builds a support chatbot backed by multiple product manuals and FAQ documents. With citations enabled, every answer the bot provides links back to the exact sentence in the relevant manual, preventing the bot from hallucinating company policy and giving support agents a quick way to verify responses.
  • Academic and news researchA student enables Web Search on claude.ai and asks Claude to summarize recent AI governance legislation. Claude fetches live sources and appends numbered citation links to each factual claim, letting the student verify currency and accuracy directly from primary sources.
  • Financial analysis across multiple reportsAn analyst uploads several quarterly earnings statements via the API with citations enabled. Claude synthesizes trends across all documents and cites the specific sentence and document index for each data point, making the audit trail clear for compliance review.
  • Enterprise RAG (Retrieval-Augmented Generation) pipelineA developer combines the Citations API with prompt caching to run repeated queries over a large, static technical documentation corpus. Caching the documents reduces latency and cost, while citations ensure every generated answer is traceable to a specific passage in the indexed knowledge base.

What changed recently

  • 2025-10Citations API launched as generally available on the Anthropic API. Claude can now ground API responses in user-supplied documents (plain text and PDFs) and return structured JSON with exact character-level citations. The cited_text field does not count toward output tokens.
  • 2025-06-30Search result content blocks launched in beta (later generally available on the Anthropic API and Vertex AI), enabling natural citations for RAG applications. Tools can return search results with proper source attribution, and Claude automatically cites these sources in responses.
  • 2025-06-30Citations API became available on Amazon Bedrock.
  • 2025-05-27Web Search (including inline URL citations) became available globally on all Claude plans — Free, Pro, Max, Team, and Enterprise — via the claude.ai interface.
This is the short version

The full chapter has three worked examples, the common pitfalls, and the workflow that makes it pay — plus the other 84 features, kept current.

Get Claude Master — $97
CLAUDEMASTER
An independent publication.
Independent product. Not affiliated with or endorsed by Anthropic. “Claude” is a trademark of Anthropic, used here only to describe the subject of this manual.
© 2026 Claude Master — All rights reserved.