AEO & GEO

How ChatGPT Chooses Sources: What the Retrieval Leak Shows + bonus checklist

A practical guide to one reported ChatGPT retrieval capture, checking page text and measuring consulted sources against citations.

11 min read
A blue racing car and AI assistant approach a source-selection checkpoint, beside linked source cards.
Short answer: ChatGPT doesn't read your page the way a person does. For one prompt it can run 18 hidden searches, fetch 200+ pages, convert each page into plain text, cut that text into blocks of roughly 170 words, score every block, and pass only 1 to 3 of your blocks to the model. To get cited, the block that answers the buyer's question has to stand on its own, sit near the top of the page, and say the answer in plain text. Your meta tags travel with it.

That's what a public capture of ChatGPT's own data stream showed in September 2026. In this guide we:

  • break down what the capture revealed
  • run the same idea on our own homepage (it didn't go well)
  • give you a free script to do it on yours in 5 minutes
  • show how to measure "retrieved vs cited" legally, with the OpenAI API
  • end with a 10-point checklist you can finish this afternoon

Time to work through it: about 30 minutes. Skill needed: you can copy-paste into a terminal.


What the "ChatGPT retrieval leak" actually is

It wasn't a hack. When you use ChatGPT with search, your browser receives a live data stream. For a while that stream carried debug data: the hidden queries, the pages fetched, the text extracted from each page, and a score for each block of that text.

SEO researchers captured it and shared it publicly in September 2026. Researchers later reported that the debug events disappeared, so the data in this article is a historical snapshot.

Why it matters: this is the most detailed public look so far at how ChatGPT picks the sources it cites. But it's one sample. Treat the mechanics as solid and the exact numbers as one data point.


Finding 1: ChatGPT reads 14x more pages than it cites

For the prompt "best AI visibility tools", the capture showed:

One prompt: 18 hidden queries, 50 engine calls, 223 pages fetched, 16 cited

Step

Count

Hidden rewritten queries ("fan-out")

18, over 5 search rounds

Search engine calls

50

Results returned

228

Pages fetched and read

223

Pages cited to the user

16

The buyer only ever sees the 16. The big drop happens after ChatGPT has fetched and read the pages, not at the crawl.

What this means for you: getting crawled is the easy part. Most pages lose after ChatGPT has already read them. Bot access matters, but it's step one of two.


Finding 2: ChatGPT doesn't see your design. It sees this.

Here's what happens to a page between the fetch and the model:

How ChatGPT turns your page into text: images become "Image", forms become labels, links disappear

Four things stand out:

  1. No HTML, no layout, no links. The page becomes plain, markdown-like text. The closest public match is a Python library called html2text, slightly modified.
  2. Images become the word "Image". The capture showed Image: Image 1. Your alt text is gone from the page body. If your price is in a graphic, ChatGPT can't see the price.
  3. Forms and buttons become labels. [Input: Enter your work email], [Button: Get started]. That's noise sitting in your best real estate.
  4. Meta tags travel with every result, in page order. og:title appeared on 187 of 226 results. article:published_time appeared on only 44.

Then the text is cut into blocks of about 170 words, and the model sees 1 to 3 blocks per source. Not your whole page.

The one-line version: you're not competing page vs page. You're competing passage vs passage.

We ran it on our own homepage. Chunk 1 is our menu.

Theory is cheap, so we pointed the same method at whatbuyersask.com.

Here's the homepage a person sees:

WhatBuyersAsk homepage in a browser

Clean headline. Clear subhead. Here's roughly what ChatGPT gets in its first block:

Chunk 1 of 15: 152 of 170 words are navigation and banner

152 of the first 170 words are menu, banner and buttons. Our headline arrives in the last 18 words of the block. The real answer to "what does WhatBuyersAsk do?" starts in chunk 2.

And our og:title, which rides along with the result, is a slogan:

Meta tags: og:title is a slogan, article:published_time is missing

Three changes to consider

Change

Words before our H1

Before

152

Move the sticky "check your site" bar after the main content in the HTML while retaining its visual position

121

Cut the one-line descriptions and promo cards from the Product and Solutions dropdown menus

45

We’ve now moved the bar, shortened the menus and changed og:title from the slogan to “Find the buyer questions AI answers with your competitors”: what the page actually answers. The word counts above are from the original exercise and may vary by renderer.

You can do the same on your site. The next section shows how.

Honest caveat: this uses stock html2text, not ChatGPT's modified build. Treat the output as a close approximation, not a replay.

Step 1: See your page the way ChatGPT does (5 minutes)

We've included the script we used at the end of this article. It:

  • fetches your page with the ChatGPT-User user agent
  • lists your meta tags in page order
  • renders the body like the capture (images become "Image", forms become [Input])
  • cuts it into 170-word chunks and counts the words before your H1

Copy the script from the end of this article into ai_page_view.py, then run:

pip install html2text requests beautifulsoup4
python ai_page_view.py https://yoursite.com/your-most-important-page

You'll get something like this:

HTTP 200 as ChatGPT-User  ·  2427 words  ·  15 chunks of ~170
H1: Your next buyer could find a competitor first.
Words before the H1: 152

META TAGS (page order)
  description: Find buyer questions. Check your website...
  og:title: Be the answer buyers find.
  ...
  MISSING: article:published_time

--- CHUNK 1 ---
Skip to content FREECan AI bots reach your website? [Input: example.com] ...

What to look for:

Signal

Good

Fix it if

Words before H1

under 40

over 80

Chunk 1

names what you do and for whom

it's mostly menu, cookie or banner text

Answers to buyer questions

in plain sentences

in images, sliders, tabs or PDFs

[Input:] / [Button:]

few, after the answer

stacked at the top

og:title

says what the page answers

is a slogan or just the brand

article:published_time

present on dated pages

missing

Run it on your homepage, your pricing page, and the one page you most want ChatGPT to quote.


Step 2: Fix your first 170 words

The first block is the one most likely to be scored. Don't spend it on navigation.

  • Shorten announcement banners to one line, or move them below the hero.
  • Use semantic <header> and <nav> tags. We don't know whether ChatGPT's renderer strips them, but they cost nothing and help every other parser.
  • Collapse mega-menus. A menu with 20 described links is 100+ words of noise.
  • Put the H1 and one plain value sentence early in the HTML, not just visually early.
  • Check the HTML before JavaScript runs. If your hero text is injected by JS, a crawler that doesn't run JS gets nothing. (Whether ChatGPT runs JS isn't confirmed. Assume it doesn't.)

Re-run the script. Aim for under 40 words before your H1.


Step 3: Rewrite one answer so it wins its chunk

Pick one question buyers really ask you ("How much does X cost?", "Does X work with Y?", "How long does X take?"). Then rewrite the section that answers it with this template:

## [The question, in the buyer's words]
[Direct answer with the number, in the first sentence.]
[What's included / the condition.]
[The limit or exception.]
[One proof point: a stat, a guarantee, a named customer.]

Before and after: a vague passage vs a self-contained answer

The rules behind it:

  1. 150-200 words per section, so one section is roughly one chunk.
  2. Name the subject every time. "Our approach" means nothing once the block is cut out of the page. "Acme Roofing's inspection" does.
  3. Number in the sentence, not in a graphic or a pricing widget.
  4. No "as mentioned above". The model may never see "above".
  5. Cut filler. Passages are scored one by one, and weak ones pull a page's average down.
  6. Write chart and table takeaways as text, one sentence under each.

Step 4: Fix your meta tags (10 minutes)

Meta tags arrive next to your text, so treat them as content.

<meta name="description" content="Roof inspections in Austin from $189, with drone photos and a written report in 48 hours.">
<meta property="og:title" content="Roof Inspection Cost in Austin (2026 Prices) | Acme Roofing">
<meta property="og:description" content="$189 for homes up to 2,500 sq ft, $249 above. Drone photos and a written report within 48 hours.">
<meta property="article:published_time" content="2026-10-30T09:00:00+00:00">
<meta property="article:modified_time" content="2026-10-30T09:00:00+00:00">
  • og:title says what the page answers, not your tagline.
  • Description and og:description match the page's main answer. Include the number.
  • Add published and modified dates to every dated page. The capture showed crawl and publication dates sitting next to a should_fetch decision.

One honest note: a meta tag surviving retrieval doesn't prove a ranking benefit. It's a cheap fix with an upside, not a guarantee.


Step 5: Measure "retrieved vs cited" (legally)

Don't scrape ChatGPT. OpenAI's Terms of Use forbid programmatic extraction, and the debug stream is gone anyway. The OpenAI API's web search tool can return consulted sources and citations, and may include the queries used. API usage can incur charges.

# pip install openai   ·   export OPENAI_API_KEY=...
from openai import OpenAI
from urllib.parse import urlparse

client = OpenAI()
DOMAIN = "yoursite.com"
QUESTION = "How much does a roof inspection cost in Austin?"

r = client.responses.create(
    model="gpt-5.5",
    tools=[{"type": "web_search"}],
    include=["web_search_call.action.sources"],
    input=QUESTION,
)

queries, retrieved, cited = [], set(), set()
for item in r.output:
    if item.type == "web_search_call":
        a = item.action
        queries += getattr(a, "queries", None) or ([a.query] if getattr(a, "query", None) else [])
        retrieved |= {s.url for s in (getattr(a, "sources", None) or [])}
    if item.type == "message":
        for part in item.content:
            for ann in getattr(part, "annotations", []) or []:
                if ann.type == "url_citation":
                    cited.add(ann.url)

mine = lambda urls: [u for u in urls if (urlparse(u).hostname or "").lower() == DOMAIN or (urlparse(u).hostname or "").lower().endswith("." + DOMAIN)]
print("Fan-out queries:", queries)
print(f"Retrieved {len(retrieved)} sources, cited {len(cited)}")
print("Your pages retrieved:", mine(retrieved))
print("Your pages cited:   ", mine(cited))

Read the result like this:

You see

It means

Fix

Not retrieved

ChatGPT never found you

Bot access, indexing, or get listed on sites it already searches

Retrieved, not cited

It read you, then picked someone else

Your passage lost. Rewrite it (Step 3)

Cited

You won this round

Re-test. One win is one sample

The fan-out queries are gold: they're the sub-questions ChatGPT actually searched. Any of them your site doesn't answer is a content brief.

The API isn't identical to the consumer ChatGPT app. Use it as a consistent, repeatable instrument, not a perfect mirror.

Step 6: Run it more than once

The capture is a September snapshot, not a spec. ChatGPT's setup shifts with A/B tests, model choice and Instant vs Thinking modes. One run proves nothing.

  • Ask each important question 3 times a day for 3 days.
  • Report "cited in X of 9", not "we're cited".
  • Re-run the same questions after you make changes. That's your before/after.

Step 7 (bonus): Check your server logs

When ChatGPT fetches your page live while answering, it shows up as ChatGPT-User in your logs. It's free, first-party, and needs no AI API.

grep -h "ChatGPT-User" access.log* | awk '{print $7}' | sort | uniq -c | sort -rn | head -20

For a compatible log format, this lists the 20 request paths associated with that user-agent string. Verify the crawler; a request is not proof of a citation. Compare before and after your fixes. Swap in OAI-SearchBot or PerplexityBot to see the others.


What about schema markup?

Don't count on it for ChatGPT. The capture showed meta tags travelling with every result, but no sign of schema (JSON-LD). Researchers watching ChatGPT were still reporting no schema signals in late October 2026.

Keep schema for Google and other engines. But for ChatGPT, passage quality and meta tags are the levers that show up in the data.


The 30-minute AEO checklist

10 fixes the leak points to
  1. Answer in the first 170 words. Headline and value line before menus and banners.
  2. One question, one self-contained section of 150-200 words.
  3. Put the number in the sentence, never only in an image.
  4. No answers in images, tabs or forms.
  5. Write chart and table takeaways as text.
  6. Use simple tables with real headers.
  7. Write a descriptive og:title and description, not a slogan.
  8. Add article:published_time to dated pages.
  9. Cut filler.
  10. Get listed where AI already looks: review sites and niche "best of" lists. The capture showed queries pinned to named sites.

What we don't know yet

Being straight about the limits makes the rest more useful:

  • The numbers are one sample. 170 words, 1-3 chunks and 18 queries come from one session. Don't quote them as a benchmark.
  • The renderer is "html2text, modified". Our script approximates it.
  • The window changed. Researchers reported that the debug events disappeared, so this describes the historical capture.
  • Our scoring isn't theirs. The capture names a neural chunk ranker. Nothing public replicates it exactly.

None of that changes the direction: clear, self-contained, text-first answers near the top of the page, with honest meta tags. That was good writing before the leak. Now there's evidence it's how you get picked.


FAQ

How does ChatGPT choose which sources to cite?

Based on the September 2026 capture, ChatGPT rewrites a prompt into many hidden searches, fetches the results, converts each page to plain text, splits it into roughly 170-word blocks, scores each block, and passes the best 1-3 blocks per source to the model. A second ranking step reorders domains before the answer is written. The cited pages are the ones whose blocks best answer the question.

What was the ChatGPT retrieval leak?

In September 2026, SEO researchers found debug data in ChatGPT's browser stream: hidden queries, fetched pages, extracted text and per-chunk scores. They shared it publicly; researchers later reported that the events disappeared.

Does ChatGPT read my whole page?

Not usually. The capture showed ChatGPT receiving 1 to 3 blocks of about 170 words per source. If your answer isn't in a strong, self-contained block, the model may never see it.

Does ChatGPT see images and alt text?

In the page body, images became the word "Image" and alt text was dropped. Snippets kept some alt text. Write anything important as text on the page.

Does schema markup help ChatGPT citations?

There's no sign of it in the capture, and researchers were still reporting no schema signals in late October 2026. Keep schema for Google, but prioritise passage quality and meta tags for ChatGPT.

How can I check if ChatGPT cites my website?

Use the OpenAI API's web search tool with sources included. It can return consulted sources and citations, and may include queries, for an API response. Repeat each question several times over several days and track "cited X of N". Your server logs (ChatGPT-User) show which pages ChatGPT fetches live.

Is it legal to scrape ChatGPT to track citations?

Automating the ChatGPT app breaks OpenAI's Terms of Use, which forbid programmatic extraction of output. Use the official API instead.


Want this done for your site?

Start with the free check: Can AI bots reach your website? It tests your homepage, robots.txt and returned HTML for ChatGPT and Perplexity bots in under a minute. Then run ai_page_view.py on the pages that matter.

If this helped, send it to the person who writes your website copy. They're the one who can win the chunk.

Page-view script

Copy this script into a file named ai_page_view.py. Its output is an approximation, and the H1 count is a rough heuristic.

#!/usr/bin/env python3
"""See your page roughly the way ChatGPT's retrieval layer sees it.

An approximation, not ChatGPT's real renderer: it fetches a URL with the
ChatGPT-User user agent, lists the head meta tags in page order, converts the
body with stock html2text (the closest public match to the renderer seen in a
Sept 2026 ChatGPT stream capture) and cuts the text into ~170-word chunks.

    pip install html2text requests beautifulsoup4
    python ai_page_view.py https://example.com/pricing
    python ai_page_view.py https://example.com/pricing --words 170 --json out.json
"""
import argparse
import json
import re
import sys

import html2text
import requests
from bs4 import BeautifulSoup

UA = ("Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; "
      "ChatGPT-User/1.0; +https://openai.com/bot")
META_KEYS = re.compile(r"^(description|robots|og:.*|twitter:.*|article:.*)$")


def fetch(url):
    r = requests.get(url, headers={"User-Agent": UA}, timeout=20)
    # requests falls back to latin-1 when no charset is sent; most sites are utf-8
    charset = r.encoding if "charset" in r.headers.get("content-type", "") else "utf-8"
    return r.status_code, r.content.decode(charset, errors="replace")


def meta_in_order(soup):
    out = []
    for tag in soup.head.find_all("meta") if soup.head else []:
        key = tag.get("property") or tag.get("name")
        if key and META_KEYS.match(key.lower()):
            out.append([key, tag.get("content", "")])
    return out


def render(html):
    soup = BeautifulSoup(html, "html.parser")
    for t in soup(["script", "style", "noscript", "svg", "template"]):
        t.decompose()
    # Mimic the captured fingerprint: forms and buttons survive as labels,
    # images become the word "Image", links lose their URLs.
    for el in soup.find_all(["input", "textarea", "select"]):
        label = el.get("placeholder") or el.get("aria-label") or el.get("name") or ""
        el.replace_with(f"[Input: {label}]")
    for el in soup.find_all("button"):
        el.replace_with(f"[Button: {el.get_text(' ', strip=True)}]")
    for i, el in enumerate(soup.find_all("img"), 1):
        el.replace_with(f"Image: Image {i}")
    h = html2text.HTML2Text()
    h.body_width = 0
    h.ignore_links = True
    h.ignore_images = True
    text = h.handle(str(soup)).replace("__", "")
    return re.sub(r"\n{3,}", "\n\n", text).strip()


def chunk(text, size):
    words = text.split()
    return [" ".join(words[i:i + size]) for i in range(0, len(words), size)]


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("url")
    ap.add_argument("--words", type=int, default=170)
    ap.add_argument("--json")
    a = ap.parse_args()

    status, html = fetch(a.url)
    soup = BeautifulSoup(html, "html.parser")
    meta = meta_in_order(soup)
    text = render(html)
    chunks = chunk(text, a.words)
    h1 = soup.find("h1")
    h1_text = h1.get_text(" ", strip=True) if h1 else ""
    words_before_h1 = len(text.split(h1_text.split()[0])[0].split()) if h1_text else None

    print(f"HTTP {status} as ChatGPT-User  ·  {len(text.split())} words  ·  {len(chunks)} chunks of ~{a.words}")
    print(f"H1: {h1_text or '(none)'}")
    print(f"Words before the H1: {words_before_h1}\n")
    print("META TAGS (page order)")
    for k, v in meta:
        print(f"  {k}: {v}")
    missing = [k for k in ("description", "og:title", "og:description", "og:image",
                           "article:published_time") if k not in {m[0] for m in meta}]
    if missing:
        print(f"  MISSING: {', '.join(missing)}")
    for i, c in enumerate(chunks[:3], 1):
        print(f"\n--- CHUNK {i} ---\n{c}")
    if len(chunks) > 3:
        print(f"\n(+{len(chunks) - 3} more chunks)")
    if a.json:
        with open(a.json, "w") as f:
            json.dump({"url": a.url, "status": status, "h1": h1_text,
                       "words_before_h1": words_before_h1, "meta": meta,
                       "render": text, "chunks": chunks}, f, indent=2)


if __name__ == "__main__":
    sys.exit(main())

Sources

WhatBuyersAsk

Practical research for agencies and B2B teams. Understand what buyers ask, find answer gaps and build more useful content.

Put better answers to work.

See what your buyers ask, find the answer gaps and plan your next move.

Get started