# How Grok finds and cites sources

> xAI documents Web Search and X Search tools and a citations format. See what that says, what it leaves out, and how to test a page yourself.

Canonical: https://scaplet.com/ai-search/grok/how-it-finds-sources

Guide Grok Grok · Sources

xAI documents Web Search and X Search tools and a citations format. See what that says, what it leaves out, and how to test a page yourself.

3 min

read

4

sources

Oct 28, 2026

updated

Scaplet Editorial Team

author

In one line

xAI documents two server-side tools that let Grok gather sources: Web Search, which searches and browses pages, and X Search, which searches posts, profiles and threads on X. Responses carry a citations list of URLs. xAI's tool docs do not describe a crawler, an index or ranking, so how a page gets picked is undocumented.

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%2Fgrok%2Fhow-it-finds-sources%20(%22How%20Grok%20finds%20and%20cites%20sources%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%2Fgrok%2Fhow-it-finds-sources%20(%22How%20Grok%20finds%20and%20cites%20sources%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%2Fgrok%2Fhow-it-finds-sources%20(%22How%20Grok%20finds%20and%20cites%20sources%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%2Fgrok%2Fhow-it-finds-sources%20(%22How%20Grok%20finds%20and%20cites%20sources%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [The two tools xAI documents 01](#the-two-tools-xai-documents)
2. [What a citation looks like 02](#what-a-citation-looks-like)
3. [What nobody outside xAI can tell you 03](#what-nobody-outside-xai-can-tell-you)
4. [Check it in 2 minutes 04](#check-it-in-2-minutes)

_01_What the tool docs say each tool does

## The two tools xAI documents

xAI's tools overview describes Web Search and X Search as server-side tools. They run on xAI's infrastructure; the model reads the question, decides whether it needs a tool, calls it as often as it needs, and writes the final answer with citations. That description is from the developer API docs. xAI's pages say nothing about whether the [Grok](/ai-search/grok/get-cited) app on grok.com or X behaves identically, so treat API behavior as the documented floor, not as a description of the app.

Tool

### Web Search (`web_search`)

What xAI documents

Searches the web in real time and browses pages. Optional `allowed_domains` or `excluded_domains`, up to 5 each, never both in one request.

What the page does not say

How pages are discovered or ranked, any crawler, any [user agent](/glossary/user-agent), [robots.txt](/glossary/robots-txt) behavior.

Tool

### X Search (`x_search`)

What xAI documents

Keyword search, [semantic search](/glossary/semantic-search), user search and thread fetch on X. Filters for handles (up to 20) and a `YYYY-MM-DD` date range.

What the page does not say

How posts are ordered beyond the Top or Latest sort on keyword search, or what makes a post surface in semantic search.

The X Search page lists four functions the model can call: `x_keyword_search`, `x_semantic_search`, `x_user_search` and `x_thread_fetch`. Thread fetch returns a post with its parent posts and replies, and it ignores the handle and date filters.

_02_Inline citation defaults differ by interface

## What a citation looks like

xAI's citations page says the response object carries a `citations` list: URLs for every source the agent encountered during search. It also says that list can include sources the agent judged irrelevant, so a URL appearing there is not proof it shaped the answer. Inline citations are separate: they render as `[[N]](url)`, numbered from 1, with a repeated source reusing its number.

Interface

### Responses API

Inline citations by default

On

How to change it

`include=["no_inline_citations"]` turns them off

Interface

### xAI Python SDK

Inline citations by default

Off

How to change it

`include=["inline_citations"]` turns them on

**Encountered is not cited**The `citations` list is a log of what the agent looked at. The inline `[[N]](url)` links are what the answer actually points to. xAI also states the model decides whether and where to cite, even with inline citations on.

_03_Worth knowing

## What nobody outside xAI can tell you

### Crawling

The Web Search page does not name a crawler or user agent, so there is no documented token to allow or block. See [AI crawlers](/ai-crawlers) for bots that vendors do document.

### Ranking

No page explains why one URL is retrieved over another. Anyone claiming a Grok ranking factor is guessing.

### App versus API

The citations and tools pages describe the developer API. The consumer experience may differ.

### Index freshness

The docs say real time; they give no refresh interval.

Because there is no documented crawler token, the one signal you control and can verify is whether the page is public, loads without a login, and returns a normal [status code](/glossary/http-status-codes). For a repeatable way to record what Grok returns, see [track your brand in Grok](/ai-search/grok/track-visibility).

_04_Check it

## Check it in 2 minutes

Look for any xAI-specific rule in the robots.txt of a site you operate. This confirms whether you have written a rule for a bot xAI has not documented.

When we ran the same search on x.com/robots.txt on 2026-11-01, it printed nothing: the file names Googlebot, Bingbot, several Meta agents and others, but no Grok or xAI agent. That tells you nothing about how Grok fetches pages. It only shows the grep works and that a large publisher found no documented token to write.

**Common mistake**Do not copy a `GrokBot` rule from a third-party list and call the site opted out. Those lists are not xAI documentation, and sources disagree on whether such rules have any effect.

Search robots.txt for xAI or Grok rules

```
curl -s https://example.com/robots.txt | grep -i -E 'grok|xai' || echo 'no grok or xai rule'
```

Questions

## Asked a lot.

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

_01_ Does Grok cite its sources?

xAI's API docs say source URLs come back with tool-retrieved answers and that inline citations can be enabled, but the model decides whether and where to cite.

_02_ Does Grok search X posts?

Yes, through the documented X Search tool, which can search keywords, meaning, users and threads on X.

Sources · 4

## Every fact, linked and dated.

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

- x.ai

1. 01 [Tools overview](https://docs.x.ai/docs/guides/tools/overview) docs.x.ai · checked 2026-11-01
2. 02 [Web Search tool](https://docs.x.ai/developers/tools/web-search) docs.x.ai · checked 2026-11-01
3. 03 [X Search tool](https://docs.x.ai/developers/tools/x-search) docs.x.ai · checked 2026-11-01
4. 04 [Citations](https://docs.x.ai/developers/tools/citations) docs.x.ai · checked 2026-11-01

## Keep learning

[All ai search](/ai-search)

[Learn How to get cited by Grok Engines](/ai-search/grok/get-cited) [Related AI citations AI search](/glossary/ai-citations) [Read next Track your brand in Grok Engines](/ai-search/grok/track-visibility) [Do Run a free site audit Free, about two minutes](/site-audit)

More on the same engine
[Grok vs Perplexity](/ai-search/vs/grok-vs-perplexity) [Grok vs Qwen](/ai-search/vs/grok-vs-qwen) [Grok vs Siri](/ai-search/vs/grok-vs-siri) [How to get cited by Grok](/ai-search/grok/get-cited) [Measure traffic from Grok](/ai-search/grok/measure-traffic) [Track your brand in Grok](/ai-search/grok/track-visibility)

Nearby in AI search
[Google Search Console's generative AI report](/ai-search/google-search-console-ai-report)

More in Engines
[How Grok finds and cites sources](/ai-search/grok/how-it-finds-sources) [How to get cited by Grok](/ai-search/grok/get-cited) [Measure traffic from Grok](/ai-search/grok/measure-traffic) [Track your brand in Grok](/ai-search/grok/track-visibility)

Terms on this page
[User agent](/glossary/user-agent) [robots.txt](/glossary/robots-txt) [Semantic Search](/glossary/semantic-search) [HTTP status codes](/glossary/http-status-codes)

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
