I run a visa agency in Bali, and in the evenings I build data tools on Apify. One of them asks AI assistants questions and saves the answers as rows: ChatGPT Scraper. It started as ChatGPT-only and now also asks Gemini, Google AI Mode and the AI Overview that sits on top of Google results. The people who use it mostly do "AI visibility" work: which brands an assistant recommends, and which websites it trusts enough to cite.

That second question sounds like counting. You take the citations array, group by domain, done. This morning I ran one small test and found out the counting is the hard part.

The run

Three prompts, four engines, US / English, from a test account on the Free plan:

{ "prompts": [ "best coworking space in Canggu Bali", "best CRM for startups", "how do I claim compensation for a delayed flight in the EU" ], "engines": ["chatgpt", "gemini", "google_ai_mode", "google_ai_overview"], "country": "United States", "language": "English" } 

That's 12 prompt-engine pairs. The run took 55 seconds. 11 came back with an answer. The twelfth, AI Overview for the coworking prompt, came back as an error row: Google AI Overview request failed: Internal SE Server Error. (40101). Not charged. Upstream hiccups happen; the point is that the failure is a row you can see and filter, not a silent gap.

Calling it from code is one request. This waits for the run and returns the dataset:

curl -s -X POST \ "https://api.apify.com/v2/acts/lergassy~chatgpt-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"prompts":["best CRM for startups"],"engines":["chatgpt","gemini"],"country":"US","language":"en"}' 

The 11 answers carried 71 citations in total. Here is what was inside those 71.

1. Gemini cites the same page five times

Gemini's answer to the flight-compensation question had 10 citations. Five of them were this page:

https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=What%20evidenc... https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=Gather%20these... https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=How%20do%20I%2... https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=*%20State%20yo... https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=Cooperative%20... 

Gemini links each sentence of its answer to the exact passage it came from, using a text fragment (#:~:text=). For a reader it's nice: the link jumps to the highlighted sentence. For counting it's a trap: each fragment is a distinct URL string, so a naive len(set(urls)) counts one page five times.

Across all three Gemini answers: 25 citations, 10 unique pages. Coworking: 9 citations, 3 pages (6 of the 9 were balisquad.com). CRM: 6 citations, 3 pages. Flights: 10 citations, 4 pages.

ChatGPT, AI Mode and AI Overview had no such duplicates in this run: their citation counts equalled their unique-page counts. So if you compare engines by "number of sources cited", Gemini looks two and a half times more generous than it is.

The fix is one line, and you want it before any counting:

def page(url): return url.split("#", 1)[0] 

2. Google cites google.com

11 of the 71 citations had the domain google.com. They came from the two Google engines, and they are two different things.

AI Overview wraps some sources in a redirect: https://google.com/goto?url=CAESawHEIk.... The url parameter is an opaque token, not the destination. The title survives, so you can see what it was: "Compensation for flight delay to/from EU country - Reddit", "Compensation for Delayed or Cancelled Flights: Up to €600! - EUclaim". 6 of AI Overview's 22 citations looked like this. If you group by domain, Reddit and EUclaim disappear and google.com becomes one of the most-cited sites on air passenger rights.

AI Mode did something else on the coworking question: 5 of its 6 citations were https://www.google.com/searchviewer/... links titled PUCO Rooftop Coworking space & Eatery, Tropical Nomad Coworking Space, Workmates Coworking Space and Cafe Canggu by Wonderspace. Those are Google's own place cards. The businesses are real; the "source" is Google Maps, not their websites. The sixth citation was zin.world.

So for local and some informational prompts, a chunk of what Google's AI "cites" is Google. For an AI-visibility report that's a real finding (the assistant leaned on Maps, not on anyone's blog), but it should be its own category, not a domain in the leaderboard. In my own analysis I now split citations into three buckets: external page, Google place card, Google redirect with title only.

3. ChatGPT read 12 pages and cited none

ChatGPT's answer to the coworking question had zero citations. It still searched: usedWebSearch is true, the search query it ran was best coworking spaces in Canggu Bali 2026 facilities wifi community prices, and searchResults held 12 pages from 10 domains: mindseat.co, balisquad.com, thehoneycombers.com, explorecanggu.com, nomadsinasia.com and others.

It answered with a ranked list (BWork Bali first, then Tropical Nomad, then PUCO Rooftop) with day-pass prices in rupiah, and attached six local business cards: address, phone, and for some a rating. Tropical Nomad's card says 4.5 from 403 reviews; BWork's has the rating empty.

On the CRM question it did cite, 8 sources, but the overlap with what it read was small. Its search returned 12 pages; only 2 of the 8 cited domains (stackbytrade.com, stacknpilot.com) were among them. Five of the 8 citations were the vendors' own sites: hubspot.com, attio.com, pipedrive.com, zoho.com, salesforce.com. The other 10 domains it read (spotsaas.com, techrepublic.com, softwarecompare.net and so on) were not cited at all.

If you only look at citations, the review sites that shaped the answer are invisible. That's why the scraper keeps searchResults and fanOutQueries as separate fields: "what it read" and "what it showed" are different lists, and for GEO work the first one is often the more useful.

4. Four engines, almost no shared sources

After cleaning (fragments stripped, google.com set aside), here is which domains were cited by more than one engine:

Prompt Shared by 3 engines Shared by 2
Coworking in Canggu — —
Best CRM for startups salesforce.com hubspot.com, attio.com, reddit.com, youtube.com
EU flight compensation europa.eu eccnet.eu, aa.com

For the coworking question not a single domain was cited by two engines. Gemini mostly leaned on balisquad.com, AI Mode on Google place cards, ChatGPT cited nothing. For the CRM question the only thing all three citing engines agreed on was Salesforce's own site. For flights, the official EU portal made it into three of four answers.

One more normalisation trap hides in that last row. Gemini cited commission.europa.eu, ChatGPT cited transport.ec.europa.eu and europa.eu. By exact hostname they don't match; by registrable domain they are all europa.eu. Decide which one you mean before you compute an overlap, because the answer changes.

Three prompts is an anecdote, not a study. But it was enough to show that a "sources per engine" chart built from raw citation arrays would have been wrong in three different directions at once.

Other things worth knowing

  • The model field is whatever the engine reports. ChatGPT said gpt-6 all three times. Gemini said 3.5 Flash-Lite once and 4 Hydrogen twice in the same run. I store it as-is; don't build a model-version chart on it without checking.
  • Google's two AI features behave differently. AI Overview only appears for some searches; when Google shows none, the row is a free notice instead of an answer. AI Mode answers almost anything.
  • Answers change between runs. answeredAt is per row, and cacheHours is 0 by default, so every run asks fresh. If you track a prompt over time, keep the raw rows; you'll want to re-clean them when you find the next trap.
  • There's a run-summary row with type: "notice" at the end of the dataset. Filter type != "notice" and type != "error" before analysis.

When not to use this

If you need the model's own opinion without web search, call the model's API directly; it's cheaper and you control the system prompt. This tool is for the opposite case: you want the answer the way a person sees it in chatgpt.com, Gemini or Google, with the sources and cards that come with it. It's also not a substitute for a real panel: one country, one language and one moment per row.

The cleaning code from this post, roughly:

from urllib.parse import urlparse def bucket(c): u = c["url"] if "google.com/goto" in u: return "google-redirect" if "google.com/searchviewer" in u: return "google-place" return "external" def clean(rows): out = [] for r in rows: if r.get("type") in ("notice", "error"): continue seen = set() for c in r["citations"]: p = c["url"].split("#", 1)[0] if p in seen: continue seen.add(p) out.append({"engine": r["engine"], "prompt": r["prompt"], "bucket": bucket(c), "host": urlparse(p).hostname, "title": c.get("title")}) return out 

On my 71 raw citations this leaves 56 unique pages, of which 45 are external. That's the number I should have started from.

If you want to try the same three prompts or your own, the Actor is here: ChatGPT Scraper on Apify.