Jérôme Salomon

Tech SEO & AI Search / GEO · Product Lead at Oncrawl

How to Audit Your Site in ChatGPT: Index, Cache and Logs

Use it with your AI

Companion to ChatGPT Index and Cache: The New Stories Your Server Logs Tell. Tested in November 2026 on ChatGPT Free and gpt-6-luna. The labels below are undocumented: date your checks.

Reminder

  • Index = URL + title + excerpt. Filled by OAI-SearchBot. Used to find your page.
  • Cache = full page. Filled by ChatGPT-User, at most once every 30 minutes. Used to read your page.

Before you start

  • Server logs with user agent, IP and timestamp.
  • For the API checks: an OpenAI API key, Python 3, pip install openai.
  • Keep only hits from OpenAI’s published IP ranges. The user agent alone proves nothing:

1. Check if a page is in the index

With the API (no visit triggered on your site):

from openai import OpenAI

client = OpenAI()
resp = client.responses.create(
    model="gpt-6-luna",
    reasoning={"effort": "low"},
    tools=[{
        "type": "web_search",
        "external_web_access": False,
        "filters": {"allowed_domains": ["www.example.com"]},
    }],
    include=["web_search_call.action.sources", "web_search_call.results"],
    input='Search the web for: "Your exact page title"\n'
          'Run exactly one search with this query. Do not open any page. List the URLs you found.',
)
  1. Read web_search_call.results, not the model’s answer.
  2. Look for your URL in a text_result.
  3. Read the label at the start of the snippet: Crawled: 2 weeks ago = age of the index entry.
  4. Not found? Run it a second time before concluding.

In ChatGPT (new chat, free account, logs open):

Search the web for "<exact page title>" site:<yourdomain.com>. List the results with their URLs. Don't open any page.
You see It means
Your URL listed, no ChatGPT-User hit In the index
Other pages of your site, not this one Not found for this title
Nothing from your site Probably not in the index

Use the exact title. A generic title can push your page out of the results.

2. Check if a page is in the cache

With the API: same code, with this input:

Open this exact URL and summarize the page in one sentence. Do not run a search, only open the URL.
https://www.example.com/your-page
  • Page returned with Crawled: <age> and Total lines: <n> = in the cache, copy of that age.
  • Nothing returned = not in the cache (run it twice).

In ChatGPT:

Open <exact URL> and tell me the date and the first sentence shown on the page.
You see It means
Current version, no ChatGPT-User hit Fresh cached copy (under 30 min)
Old version + ChatGPT-User hit within seconds Old copy served, refreshed for the next user
Current version + ChatGPT-User hit No usable copy, fetched live

Warning: this check refreshes the cache. Do all index checks first.

To force a refresh after an update: ask the cache prompt above. The first answer is old, the copy is updated for everyone after you.

3. Read your logs, page by page

For each URL, compute:

Metric Bot What it tells you
Date of last visit OAI-SearchBot Age of your index entry
Date of last visit ChatGPT-User Age of the cached copy
Days with at least one visit, over 90 days OAI-SearchBot Coverage: no visit in ~90 days = not in the index (on my site)
Active days or active 30-minute slots ChatGPT-User How often ChatGPT needed the full page
Status codes Both Errors ChatGPT reads or keeps

Rules:

  • Count days, not hits. The 30-minute rule caps a page at ~48 hits a day.
  • Alert on a page that stops getting ChatGPT-User for days while the rest holds.
  • GPTBot is for training. It feeds neither the index nor the cache.

4. Audit a whole site

  1. List URLs from your XML sitemaps, with their section.
  2. Export bot visits per URL and per day for OAI-SearchBot and ChatGPT-User, as far back as your logs go (90 days minimum).
  3. Run the index and cache checks on every URL:
    python3 check.py --urls urls.csv --sample 0 --passes 2
    Output per URL: in_index, index_crawled, in_cache, cache_crawled. About 17,000 tokens per URL.
  4. Cross logs and API, one row per URL. Check two things:
    • pages with no OAI-SearchBot visit in 90 days: are they all missing from the index?
    • does each copy’s age match the last visit of its bot?
  5. Sort pages into four groups:
Group Action
Indexed + recent cache Nothing to do
Indexed, no recent copy Fine if the page doesn’t change; refresh it if it does
Cached, not indexed Find out why OAI-SearchBot doesn’t come
Neither Start here if the pages matter
  1. Check a sample in ChatGPT (sections 1 and 2): a few pages per group. All searches first, then all opens.

Script, Claude Code skill and AGENTS.md for Codex: GitHub. No install: Colab notebook, with your own API key stored in Colab’s Secrets.

5. Split Business Hub totals by page

Business Hub gives totals only (mentions, clicks). To split them:

  1. Take the Business Hub totals for a period.
  2. Spread them across pages with ChatGPT-User active days per page.
  3. Use visits from ChatGPT (referrer chatgpt.com or utm_source=chatgpt.com) for clicks.
  4. List pages OAI-SearchBot visits that never show up in 2 or 3: candidates ChatGPT doesn’t use.

Two biases:

  • pages cited from their index excerpt barely show up in ChatGPT-User;
  • the 30-minute rule flattens the busiest pages.

6. Check the 30-minute rule on your site

  1. Take your most-visited URL.
  2. Sort its ChatGPT-User hits by time.
  3. Compute the gap between consecutive hits.

Almost no gap under 30 minutes, many at 30–32 minutes = the rule applies. More hits and shorter gaps on a homepage = probably several cached copies.

7. If OAI-SearchBot never comes

  • Check robots.txt, CDN and WAF rules for OAI-SearchBot.
  • Verify your site in Business Hub (“Website access”). On my site, OAI-SearchBot fetched the homepage in the same minute, and it was indexed the next day. One page, one site: no rule yet.
  • IndexNow does nothing for OpenAI.

8. Read ChatGPT’s answers

In your browser’s developer tools (Network tab, conversation request) or with a capture extension:

Field Meaning
search_model_queries Queries ChatGPT sent
Reference search (or news) Result from the index, page not opened
Reference view, snippet Total lines: … Page opened (cache or live)

Live or cache? Only your logs tell: a ChatGPT-User hit in the same second = live.

In the API, citations appear as turn0search3 (search) or turn0view0 (opened page).

Prompts to copy

One new chat per prompt, free account, logs open.

Search the web for "<exact page title>" site:<yourdomain.com>. List the results with their URLs. Don't open any page.
Open <exact URL> and tell me the date and the first sentence shown on the page.
Open <exact URL> and list the first five items shown on the page.
What does <yourdomain.com> say about <topic of the page>? Give me the source.
<a generic question your page should answer, without naming your site>

Newsletter 📩

I’ll send you the next article when it’s ready. Prefer a feed reader? RSS.

Confirm by email. Unsubscribe whenever you want. Sent with Kit.