How does Claude attach citations to its answer?
Published . Updated .
Claude attaches each citation to a stretch of its own answer. Through Anthropic's API, a web search citation carries the source's URL, its title and up to 150 characters of the cited text. In the Claude app answer we recorded, each citation held the URL and title plus the start and end of a span of Claude's answer, running from the claim to the end of its paragraph, with no quoted text from the source.
Our guide to how AI citations work in ChatGPT, Claude and Grok compares the three assistants. This post stays with Claude: the citation fields in the API and in the app, one real answer we recorded with Only Fan Out on 10 September 2026 with all three citations traced, and the steps to trace your own.
How does Claude attach citations in the API?
To the block of answer text that uses the source. Anthropic's web search tool documentation says "Citations are always enabled for web search". The answer comes back as a run of text blocks, and a block that relies on a search result carries a citations list.
| Field | What it holds |
|---|---|
type | web_search_result_location for a web search citation |
url and title | The cited page |
cited_text | "Up to 150 characters of the cited content", taken from the source page |
encrypted_index | A reference you pass back when the conversation continues |
Anthropic adds that cited_text, title and url do not count towards input or output tokens. The same docs ask developers who show API answers to users to keep the citations to the original source.
Anthropic also has a separate Citations feature for documents you supply, such as a PDF or a block of text. There a citation points to character positions, page numbers or content blocks in your document, and the API splits plain text and PDFs into sentences so Claude can cite one sentence or several in a row. That is the feature most search results for "Claude citations" describe, and it has nothing to do with which web pages Claude cites in a chat.
How does the Claude app store its citations?
As character spans of Claude's answer, with no quote from the source. Anthropic's help article on web search in the Claude app says "Every response includes citations, so you can easily verify sources yourself". The conversation data behind one recorded answer shows what a citation holds.
| API web search | Claude app, our recording | |
|---|---|---|
| Cited page | url, title | url, title, plus a sources list and the site's domain and name |
| Quoted text from the page | cited_text, up to 150 characters | None |
| Where it sits in the answer | On the text block it belongs to | start_index and end_index, character positions in the answer |
| Which tool found the page | Implied by the type | origin_tool_name, here web_search |
| Span size | The block of text | From the claim to the end of its paragraph (citations_grouping_mode was paragraph_end) |
The sources list means one citation can group several pages. In our answer each citation held one. Our post on how Claude searches the web covers the searches that come before any of this.
What did one real Claude answer cite?
Three citations, pointing to 3 pages on 2 sites. On 10 September 2026 we asked Claude (Claude Opus 5) to "Search the web: tuition centers for secondary math in Jurong East, Singapore. Compare options." and recorded the turn with Only Fan Out.
Claude ran three places searches that returned 16 places and put 6 of them on a map. Then it ran one web search, "secondary school maths tuition rates Singapore 2026 per hour tuition centre", which returned 9 pages. The answer ran to 2,441 characters in 9 paragraphs.
| Citation | Page cited | Place in the 9 web results | Answer characters covered |
|---|---|---|---|
| 1 | Master Maths, maths tuition cost page | 2nd | 1,477 to 1,644 (167) |
| 2 | Tutorly, maths tutor hourly rate guide | 7th | 1,861 to 2,212 (351) |
| 3 | Tutorly, maths tuition fees guide | 4th | 2,048 to 2,212 (164) |
Citation 1 starts at "$275 a month", the fee Master Maths publishes. Citations 2 and 3 sit in the paragraph on prices: 2 starts at "$200 to $320 a month" and 3 covers only the last sentence, on a centre seat at roughly $32 an hour against a private tutor at $60.
What does that answer show about Claude's citations?
Claude's citations backed the prices, and the places it recommended carried none. All three came from the one web search, and the answer's other seven paragraphs had no citation at all.
- 518 of the answer's 2,441 characters, about 21%, sat inside a citation span. The six centres Claude named in bold came from its places searches, and only Master Maths got a citation, for its fee page.
- Each span ran on to the end of its paragraph. Citation 1 also covers the next sentence, on Master Maths' opening days and its walk from the MRT, so read a span as the paragraph a source supports from that point, and check each sentence before you credit it to the page.
- Spans overlap. Citations 2 and 3 both end at character 2,212, so the last sentence on prices is credited to two Tutorly pages at once.
- The top web result, a guide on Tim Gan Math's site, was not cited. Claude cited the 2nd, 4th and 7th results and left out 6 of the 9.
This is one answer on one topic, so it shows how to read the data and proves nothing general about how Claude chooses. Anthropic publishes the fields above and does not publish how Claude picks the pages it cites. Our post on fetched vs cited sources sets out the same gap for ChatGPT and Grok, with the published figures.
How do you trace a Claude citation back to its source?
Cut out the text each citation covers, match its page against the search results, then group by page before you count.
- In the API, read the
citationslist on each text block and comparecited_textwith the page itself. - In the Claude app data, slice the answer from
start_indextoend_indexto see the span a citation covers. - Check
origin_tool_nameto see which tool found the page. - Match each cited URL against the turn's search results, so you know which pages were found and left out, and where each cited page ranked.
- Group by URL. Two citations to one page are one cited page.
- List places from a places search on their own, since in our recording they were named in the answer and never cited.
Only Fan Out does the app side for you. For each Claude turn its side panel lists every cited page next to the part of the answer it backs, and the Markdown export keeps that passage beside the link. If a Claude answer ever arrives without its citations field, the extension reads the links in the answer instead and flags the change in its Diagnostics tab. Our help page on seeing what Claude searched shows where each list sits. For the other assistants, our post on how Grok numbers its citations traces a Grok answer the same way.
Which sites does Claude cite most?
That depends on the question. In Thrive Agency's Business Visibility Index, volume 3 (published 29 October 2026), covering 372 local businesses, Yelp appeared in 61% of Claude's answers and Claude named about eight businesses per answer. Thrive's figures come from its own test runs, which can differ from what you see in the Claude app.
In our tuition answer, all three cited pages were fee guides on tuition sites, and one of them was on the site of a centre Claude also recommended. Every span Claude cited was about price, and every page it cited was about fees.
Related questions
Does Claude quote the source in its citations?
Through Anthropic's API, yes: each web search citation carries up to 150 characters of the cited text in cited_text. In the Claude app answer we recorded, the citations held no quoted text, only the page's URL and title and a span of Claude's own answer.
Why does a Claude citation cover a whole paragraph?
In the Claude app answer we recorded, citations were grouped to the end of each paragraph, so each span ran from the claim to the paragraph's end, and two spans ended on the same character.
Does Claude cite the places it shows on a map?
Not in our recording. Claude ran three places searches, put six centres on a map and named them in bold, and all three of its citations went to web pages about fees.
See every citation in your next Claude answer
Only Fan Out is a free Chrome side panel that lists the queries, fetched pages and cited pages behind each ChatGPT, Claude or Grok answer, with each Claude citation shown next to the part of the answer it backs. Nothing leaves your browser.
Add to Chrome, it's free