How does Grok number its citations, and how do you trace them?
Published . Updated .
Grok numbers its citations two ways. Through xAI's API, each inline citation is a link marked [1], [2] and so on, numbered from 1 in the order Grok first uses a source, with the number reused when that source comes back. In the Grok app, the number stored with each citation is a position in the full list of results Grok's searches returned, counted from 0, so one page can carry several numbers and the numbers tell you nothing about order.
Our guide to how AI citations work in ChatGPT, Claude and Grok compares the three assistants. This post stays with Grok: both numbering schemes, one real Grok answer we recorded with Only Fan Out on 11 September 2026 with every citation traced back, and the steps to trace your own.
How does Grok number citations in the API?
From 1, in the order sources are first cited. xAI's citations documentation (updated 25 August 2026) says "Citation numbers always start from 1 and increment sequentially", and a source cited a second time keeps its first number.
Each citation sits in the answer text as a Markdown link in the form [[1]](url). The response also carries structured data about every citation, plus a separate list of every source the search came across.
| Field | What it holds | Use it to |
|---|---|---|
citations | Every URL Grok's search encountered, returned by default | See what Grok found, cited or not |
annotations | One url_citation per inline link, with the URL, a title holding the number and start_index and end_index | Cut the exact cited text out of the answer |
web_citation or x_citation | Whether a citation points to a web page or an X post (xAI's Python SDK) | Split web citations from X citations |
Inline citations are on by default in the Responses API and off by default in xAI's Python SDK, where you turn them on with include=["inline_citations"]. Even when they are on, xAI says this "does not guarantee that the model will cite sources on every answer". Our post on how Grok searches the web, browses pages and searches X covers the searches that fill the citations list.
How are citations numbered in the Grok app?
By position in the turn's results list, starting at 0. In the Grok conversation we recorded, the answer text carries one tag per citation, and its citation_id is the place of the cited page in the list of every result the turn's searches returned. The fields the app keeps for cited results were empty.
<grok:render card_id="8533ee" card_type="citation_card" type="render_inline_citation">
<argument name="citation_id">15</argument>
</grok:render>
That tag is from the answer below, and 15 means the sixteenth entry in the list. The list runs search by search, so each search's results take a block of numbers, and pages Grok opened to read in full are added at the end. A page that comes back in three searches gets three numbers, and Grok can cite any of them.
| API | Grok app | |
|---|---|---|
| First number | 1 | 0 |
| What a number means | The order in which sources were first cited | A position in the turn's full results list |
| Same source cited again | Keeps its number | Can carry a different number each time |
| Where it sits | [[N]](url) link in the text | A grok:render tag in the text |
What did one real Grok answer cite?
Eight citations, pointing to 7 pages on 6 sites, out of 88 numbered results. On 11 September 2026 we asked Grok (grok-4, expert mode) to compare secondary maths tuition centres in Jurong East, Singapore, and recorded the turn with Only Fan Out.
Grok ran 8 web searches. The first returned 15 results and the other seven returned 10 each, which makes 85, and then Grok opened 3 pages to read in full, adding 3 more entries. Those 88 entries held 57 different pages from 31 sites, because the same pages kept coming back. The source count Grok showed for the answer read 85, which is the search results with every repeat included.
| Citation number | Page cited | Where it came from |
|---|---|---|
| 0 | Tim Gan Math, tuition classes | Search 1, first result |
| 15 | Tim Gan Math, E-Maths tuition | Search 2, first result |
| 85 | Tim Gan Math, tuition classes (again) | Opened in full |
| 87 | Matrix Math, Jurong East | Opened in full |
| 86 | AGrader, Jurong East | Opened in full |
| 65 | Zenith Education Studio, Jurong East | Search 7, first result |
| 6 | Indigo, Jurong East | Search 1, seventh result |
| 2 | Math Academy, Jurong | Search 1, third result |
The rows are in the order the citations appear in the answer. Search 7 was "Zenith Education Studio Jurong East math tuition fees reviews", so Grok cited the top result of a search it had written for that one centre.
What does that answer show about which pages Grok cites?
All three pages Grok opened in full were cited, and every other citation came from the first search or from the top result of a later one. Nothing from searches 3, 4, 5, 6 or 8 was cited, though those 50 results included pages Grok later opened and cited under their own numbers.
- Matrix Math's Jurong East page appeared 7 times in the list under 7 numbers. Grok cited it once, as 87, the copy from the page it opened.
- Tim Gan Math's tuition classes page was cited twice, as 0 and as 85. Counting citation numbers would give 8 cited sources where there were 7 pages.
- 7 of the 57 pages were cited, about one in eight. The other 50 were found and left out.
This is one answer on one topic, so it shows how to read the data and proves nothing general about how Grok chooses. xAI publishes the fields above and does not publish how Grok picks which sources to cite. Our post on fetched vs cited sources sets out the same gap for ChatGPT and Claude, with the published figures.
How do you trace a Grok citation back to its source?
Match every number to the page it points to, then group the numbers by page before you count anything.
- In the API, take each
url_citationinannotationsand slice the answer fromstart_indextoend_indexto see the cited text. - Match its URL against the
citationslist, so you know which pages were found and not cited. - In the Grok app, read each
citation_idas a position in the turn's results list, counting from 0. - Group by URL. One page with three numbers is one cited page.
- Note which search each cited page came from, and whether Grok opened it in full.
- Treat a number past the end of the list as an error, never as the nearest page.
Only Fan Out does the app side for you. For each Grok turn it resolves every citation number to its page, lists each cited page once with the sentence of the answer it backs, and flags a number that points past the end of the list in its Diagnostics tab instead of matching it to a guess. Export the conversation as CSV and the sources file keeps each cited page's citation number in its ref_index column. X posts quoted or referenced in the answer are listed too, and our help page on seeing which X posts Grok used shows where.
Which sites does Grok cite most?
Mostly sites where people post, going by Ahrefs. Its count of Grok's most-cited websites across more than 1.9 million US queries in June 2026 put Reddit first with 16.3% of citations among the top 50 sites, then YouTube with 15.1% and Facebook with 13.9%. X itself came 12th, at 1.4%.
For a site owner, that puts threads, videos and posts about you on other sites in the same pool as your own pages. In our tuition answer all 7 cited pages were the centres' own sites, so the mix depends on the question.
How accurate are Grok's citations?
Check them before you rely on them. In the Tow Center's test, published in the Columbia Journalism Review on 6 March 2025, Grok 3 answered 94% of 200 news queries wrongly, and 154 of its citations led to error pages.
That test used older models and asked for news articles by quoted excerpt, so it says little about Grok 4 citing a web page today. It still argues for tracing each number to a page that loads before you count a citation as yours.
Related questions
Does Grok number its citations from 1?
Through xAI's API, yes: numbers start at 1 and a source keeps its number when it is cited again. In the Grok app, the number stored with each citation is a position in the turn's full results list, counted from 0.
Why does one page appear under two citation numbers?
In the Grok app, a page gets a number for each time a search returned it. In one answer we recorded, Grok cited the same page as 0 and as 85, so count cited pages by URL, not by number.
Does Grok cite X posts?
Yes. xAI's Python SDK marks each citation as a web citation or an X citation. In Ahrefs' June 2026 count of Grok's cited sites, x.com came 12th with 1.4% of citations among the top 50.
Trace every citation in your next Grok answer
Only Fan Out is a free Chrome side panel that lists the searches, fetched pages and cited pages behind each ChatGPT, Claude or Grok answer, with every Grok citation resolved to its page. Nothing leaves your browser.
Add to Chrome, it's free