# Claude citations

> How Claude citations work in the API: document citations, web search citations, the fields returned, token costs and limits. Plus what they mean for publishers.

Canonical: https://scaplet.com/ai-search/claude/citations

Guide Claude Claude · Citations

How Claude citations work in the API: document citations, web search citations, the fields returned, token costs and limits. Plus what they mean for publishers.

3 min

read

2

sources

Oct 22, 2026

updated

Scaplet Editorial Team

author

In one line

Claude produces citations in two documented ways. With the Citations feature, you pass documents with citations enabled and Claude returns the supporting passages, with page, character or block locations. With the web search tool, citations are always enabled and point to source URLs. Neither is a ranking system: they show where a claim came from.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fai-search%2Fclaude%2Fcitations%20(%22Claude%20citations%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fai-search%2Fclaude%2Fcitations%20(%22Claude%20citations%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fai-search%2Fclaude%2Fcitations%20(%22Claude%20citations%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fai-search%2Fclaude%2Fcitations%20(%22Claude%20citations%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

5 facts from the sources below

All active models, per Anthropic docs

Citations feature models

Plain text, PDF, custom content

Document types

Always enabled

Web search citations

$10 USD per 1,000 searches plus token costs

Web search price

Citations and structured outputs cannot be combined

Limit

_01_Citation types in the Claude API

## Two kinds of Claude citations

Anthropic's developer docs describe two separate citation mechanisms. They share a response shape but come from different inputs, so identify which one you are looking at before you draw conclusions.

### Input

Document citations

Documents you send with `citations.enabled=true`

Web search citations

Results the web search tool retrieves

### Cites

Document citations

Passages in your documents

Web search citations

URLs of web pages

### Location type

Document citations

`char_location`, `page_location`, `content_block_location`

Web search citations

`web_search_result_location`

### Enabled by

Document citations

You, per document

Web search citations

Always on for web search

### Cited text

Document citations

Provided; not counted toward output [tokens](/glossary/tokenization)

Web search citations

Up to 150 characters

How [Claude](/ai-search/anthropic/ads)'s own search products handle sources is covered on [Claude SEO](/ai-search/claude) and the access checks on [how to get cited by Claude](/ai-search/claude/get-cited).

_02_How it works

## The Citations feature for your own documents

Anthropic says "All active models support citations" and that the feature returns the exact passages that support each claim. You add a `document` block with `"citations": {"enabled": true}` and ask a question. The response then contains several text blocks, each with a claim and the citations that support it.

1. 1

### Provide documents and enable citations

Use plain text, PDF or custom content documents. Citations must be enabled on all or none of the documents in a request. Only text citations are supported; image citations are not.
2. 2

### Documents are chunked

Plain text and PDFs are chunked into sentences, which sets the smallest citable unit. Custom content documents are used as given, with no further [chunking](/glossary/chunking).
3. 3

### Read the citations

PDF citations carry a 1-indexed page range, plain text carries a 0-indexed character range, and custom content carries a 0-indexed block range. Document indices are 0-indexed across all document blocks in the request.

Request document block, per Anthropic's example

```
{ "type": "document", "source": { "type": "text", "media_type": "text/plain", "data": "The grass is green. The sky is blue." }, "title": "My Document", "context": "This is a trustworthy document.", "citations": {"enabled": true} }
```

The optional `title` and `context` fields are passed to the model but not used toward cited content.

_03_Good to know

## Web search citations

Anthropic's web search tool docs say "Citations are always enabled for web search," and each `web_search_result_location` includes a `url`, `title`, `encrypted_index` and `cited_text`, the last of which holds up to 150 characters of the cited content. The `cited_text`, `title` and `url` fields do not count toward input or output tokens.

Web search is billed at $10 USD per 1,000 searches, plus standard token costs. Developers can limit searches with `max_uses`, and restrict sources with `allowed_domains` or `blocked_domains`, but not both in one request.

Display rule

Anthropic's docs say that when displaying API outputs directly to end users, citations must be included to the original source.

_04_Worth knowing

## Limits and gotchas

### Structured outputs conflict

Enabling citations on a `document` or `search_result` block and also setting `output_config.format` returns a 400 error.

### All or none

Citations must be enabled on every document in a request or on none.

### Scanned PDFs are not citable

PDFs that are scans without extractable text cannot be cited, because image citations are not supported.

### Caching

Citation blocks in responses cannot be cached directly, but the source documents can be.

### Token costs

Enabling citations slightly increases input tokens because of [system prompt](/glossary/system-prompt) additions and chunking.

_05_Explained

## What this means if you publish content

Document citations only cite what a developer supplies, so they say nothing about your public pages. Web search citations point to URLs the tool retrieved. A citation shows where text came from, not that a page "won" a ranking.

The useful check is practical: run the question you want to be cited for in Claude with web search on, save the cited URLs, and compare with your own page. Pair it with the bot access checks in [Claude-SearchBot](/ai-crawlers/claude-searchbot).

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What are Claude citations?

Citations are references Claude attaches to claims. With the Citations feature they point to passages in documents you provide; with web search they point to source URLs.

_02_ Does Claude cite web sources?

Anthropic's web search tool docs say citations are always enabled for web search, and each citation carries a URL, title and up to 150 characters of cited text.

_03_ Can I use citations with structured outputs?

No. Anthropic says enabling citations on a document or search result block with `output_config.format` returns a 400 error.

_04_ Do cited passages cost output tokens?

Anthropic says the `cited_text` field in the Citations feature does not count toward output tokens.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- claude.com

1. 01 [Citations (Claude Platform Docs)](https://platform.claude.com/docs/en/build-with-claude/citations) platform.claude.com · checked 2026-10-25
2. 02 [Web search tool (Claude Platform Docs)](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool) platform.claude.com · checked 2026-10-25

## Keep learning

[All ai search](/ai-search)

[Learn Claude SEO Engines](/ai-search/claude) [Related AI citations vs. rankings Guides](/ai-search/ai-citations-vs-rankings) [Read next How to get cited by Claude Engines](/ai-search/claude/get-cited) [Do Run a free site audit Free, about two minutes](/site-audit)

More on the same engine
[Claude SEO](/ai-search/claude) [How to get cited by Claude](/ai-search/claude/get-cited) [Kimi vs Claude](/ai-search/vs/claude-vs-kimi) [ChatGPT vs Claude](/ai-search/vs/chatgpt-vs-claude) [Claude search](/ai-search/claude-search) [Claude vs Copilot](/ai-search/vs/claude-vs-copilot)

Nearby in AI search
[Cloudflare pay per crawl](/ai-search/cloudflare-pay-per-crawl)

More in Claude SEO
[Claude citations](/ai-search/claude/citations) [How to get cited by Claude](/ai-search/claude/get-cited)

Terms on this page
[Tokenization](/glossary/tokenization) [Chunking](/glossary/chunking) [System prompt](/glossary/system-prompt)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
