Skip to content
Coding Script or NotebookGoogle ColabFree

AI Citation Analysis Script and Claude Skill (DataForSEO LLM Mentions)

ForAI searchEntity SEO

By Lazarina Stoy· Updated 5 Dec 2026

Who do AI answers cite for your topics, and are you among them? It is easy to get a confident wrong answer to that question. With default settings, a run I did for “entity seo” returned 33,160 mentions led by Instagram and Facebook. Requiring the topic to be in the user’s question brought it down to 85 mentions led by sites that actually write about entity SEO. This free script and Claude skill apply the settings that give the second answer.

Who it’s for

SEOs reporting on AI visibility and AI citations who want numbers they can defend, and anyone using the DataForSEO MCP server with Claude.

How to use it

  1. Open the course scripts notebook in Colab (or download the folder from GitHub to run it on your computer).
  2. Add the keys the script needs as Colab secrets, with notebook access switched on. They never go into the code.
  3. Run the Setup cell. It downloads the scripts and installs what they need.
  4. Write your topics, one per line, the way a person would ask an assistant, plus one known query whose cited sites you can name.
  5. Run plan. It lists every task, why it exists and the most it can cost. Nothing has been sent yet.
  6. Run run, then fill the on_topic column in samples.csv for every sampled answer.
  7. Run report with your brand name, and write it up with the report template.

What you get

  • Who is cited alongside your domain, and who is cited for each topic, on Google AI Overviews and on ChatGPT (US English only)
  • Each topic labelled verified or indicative, depending on how many sampled answers were really about it
  • A Claude skill that follows the same rules through the DataForSEO MCP server, confirming cost before each call
  • A markdown template for an honest AI visibility report: scope, method, findings, limitations and actions

Limits and costs

  • It needs a DataForSEO account. The plan step shows the maximum cost before you spend anything.
  • These datasets move monthly. Compare only like-for-like runs, with the same settings and market.
  • Question volume estimates how often something is asked. It says nothing about traffic.

Why the settings matter

Multi-keyword targets combine as AND, so “a, b” is never two topics. Partial matching is the looser option. And a known query, one whose cited sites you can already name, tells you whether the instrument is working before you trust it on topics you don’t know.

The scripts are free on GitHub. The The AI-powered Entity Audit course explains why each setting matters and how the results feed an entity gap analysis.

What’s included

  • Topic-level AI citation analysis with DataForSEO's LLM Mentions API
  • Calibrated settings: one topic per call, topic required in the question
  • A plan step that prices the run before anything is sent
  • A sample of real answers to read before any aggregate
  • The same rules as a Claude skill for the DataForSEO MCP server, plus a report template