xAI's developer documentation is the most concrete public description of how Grok gathers sources. It covers the API; xAI does not say whether Grok on X and grok.com use exactly the same setup, though it is a reasonable working assumption.
Web search and page browsing
xAI's Web Search tool lets Grok search the web in real time and browse pages to extract information. Developers can limit a search to up to five domains or exclude up to five. Analysing images found while browsing is an optional setting a developer has to switch on. For a store, that is the practical point: a spec table saved as an image may never be read, while the same table in HTML can be.
X search: posts, profiles and threads
The X Search tool runs keyword search, semantic search, user search and thread fetch on X. Developers can restrict it to specific handles (or exclude them) and to a date range. xAI's own example of a citations list includes both X post URLs and an X user profile URL, so your posts and your profile can each appear as a source.
DeepSearch reports
xAI introduced DeepSearch with Grok 3 in February 2025, describing it as its first agent: it researches a question and writes a summary report, and it was shown on both grok.com and X. Our reading, not an xAI statement, is that a research-style answer runs more searches than a quick reply, so it reaches further down the list of possible sources. That makes depth on niche questions worth more there. Product names and modes change, so we check the current Grok interface before each reporting cycle.
How citations are shown
The xAI API returns a list of every source the agent looked at, and xAI states that some of those URLs may not be used in the final answer. Inline citations, the numbered links inside the text, do not appear on every answer either; xAI says the model decides when to include them. So "listed as a source" and "quoted in the answer" are different results, and we report them separately.