# AEO Citation Change Tracker - Gained and Lost Sources (`variable_mitts/aeo-citation-change-tracker`) Actor

Compare earlier and later AI answer snapshots. Track gained and lost brand citations with source evidence and explicit comparability checks.

- **URL**: https://apify.com/variable_mitts/aeo-citation-change-tracker.md
- **Developed by:** [Dhan sites](https://apify.com/variable_mitts) (community)
- **Categories:** SEO tools, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 comparable answer pair inspecteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AEO Citation Change Tracker - Gained and Lost Sources

Compare AI answer snapshots for gained or lost citations, changed answers and brand mentions. Match query and search context; failed observations stay unmeasured.

### See the result before running

For SEO teams and agencies comparing an earlier and later observation of the same questions: identify which cited pages or domains changed and retain evidence for review. Both batches must preserve query, search context and original timestamps.

**Synthetic example — fictional brands, one comparable pair:**

| Observation | Earlier answer | Later answer | Reported change |
|---|---|---|---|
| Acme domain cited | No | Yes | Brand citation gained |
| Rival domain cited | Yes | No | Brand citation lost |
| Rival name mentioned | Yes | Yes | Still mentioned |

The review queue lists the observed Rival citation loss before the Acme citation gain, with the relevant source evidence. This ordering is a review convention, not a predicted SEO impact. Missing baselines, failed collections and mismatched contexts do not become citation losses.

**Open these outputs:** SUMMARY.md for a readable comparison; BRAND_SUMMARY for before/after counts by search context; REVIEW_QUEUE for changes to inspect; REPORT for complete evidence. The prefilled example bills one $0.0016 comparison event at the base tier.

**Base-price example:** 100 comparable snapshot pairs cost $0.16 in this Actor's comparison fees. An unchanged comparable pair still counts because the comparison was performed. Non-comparable diagnostic rows are uncharged. This Actor does not start a live collector.

**Collect the next batch:** [AEO Brand Citation Monitor](https://apify.com/variable_mitts/aeo-brand-citation-monitor) produces the current dataset and SNAPSHOTS baseline record. In this tracker, clear both prefilled arrays, select the current dataset and the earlier SNAPSHOTS storage, and use the same brand definitions. Resource access is read only.

### What problem does this solve?

Find which cited domains or pages appeared or disappeared between equivalent question snapshots. Track brand mentions separately from cited domains and retain current and earlier source evidence. A failed collection, missing baseline or changed search context cannot prove a lost citation; these become uncharged diagnostic rows.

### Quick start and offline example

Click Start with the prefilled synthetic example. This demonstrates the result format, not a measurement of actual Google/ChatGPT answers. Open START_HERE.md, SUMMARY.md and the default dataset. No external model key or paid collection is required for this example.

```json
{
  "snapshots": [
    {
      "query": "best appointment software",
      "surface": "synthetic_demo",
      "country": "IN",
      "language": "en",
      "device": "desktop",
      "observedAt": "2026-11-02T10:00:00Z",
      "text": "Acme and Rival offer appointment tools. Acme provides online scheduling.",
      "sources": [
        {
          "url": "https://acme.example/scheduling",
          "title": "Acme scheduling"
        }
      ]
    }
  ],
  "baselineSnapshots": [
    {
      "query": "best appointment software",
      "surface": "synthetic_demo",
      "country": "IN",
      "language": "en",
      "device": "desktop",
      "observedAt": "2026-11-01T10:00:00Z",
      "text": "Rival offers appointment tools for clinics.",
      "sources": [
        {
          "url": "https://rival.example/product",
          "title": "Rival"
        }
      ]
    }
  ],
  "brands": [
    {
      "name": "Acme",
      "aliases": [
        "Acme"
      ],
      "domains": [
        "acme.example"
      ]
    },
    {
      "name": "Rival",
      "aliases": [
        "Rival"
      ],
      "domains": [
        "rival.example"
      ]
    }
  ],
  "maxSnapshots": 5
}
```

### Real data and automation

Supply Current answer snapshots, or clear them and select Source answer dataset with read-only permission. For official Google AI Overview rows without a timestamp, set Source dataset collection time from the actual collection run. For raw dataset rows without surface, set Source dataset surface to the actual measured surface (for example google_ai_overview); otherwise it remains supplied_answer. Imported datasets are not assumed to be Google captures. Each snapshot needs query, text, sources (URL strings or objects with url/title), observedAt with timezone, and optional surface/country/language/device. Status defaults to success; successful snapshots need nonempty answer text. Other statuses are no_overview, collection_failed and not_returned and must have no answer or sources. Do not combine duplicate query/context observations into one batch.

Supply Earlier answer snapshots, or clear them and select the previous monitor/tracker run storage containing SNAPSHOTS. Only exact query and matching surface/country/language/device are compared, with a strictly older baseline. Context values are case sensitive and not inferred. A missing baseline yields no_matching_baseline; a failed/absent answer yields non_success_observation. No automatic attribution of changes to SEO work is made. Source storages must remain within account retention.

### Output contract

BRAND_SUMMARY groups brand coverage by surface/country/language/device across eligible processed queries. Failed or non-comparable observations are excluded from the denominator; percentages are null when nothing is measurable. These percentages describe this batch, not market share or rankings. Comparison summaries include before/after counts. REVIEW_QUEUE lists unmeasured observations first, followed by observed citation/mention losses and citation gains. This order is a review convention, not a prediction of SEO impact. Both are downloadable JSON records and included in REPORT; SUMMARY.md includes readable sections. No additional event fee applies to these outputs.

The dataset contains a row for every processed current snapshot, including diagnostics. REPORT includes coverage and limitations. SNAPSHOTS is the normalized current batch for future runs. SUMMARY.md is a readable report. `billable` indicates this Actor's analysis event, not an upstream fee. Source order is evidence position, not a ranking. URLs retain query parameters and lose fragments; domains are hostnames with www removed, not public-suffix registrable domains. Duplicate source URLs are deduplicated per answer. No citation URLs are fetched.

Brand aliases use case-insensitive Unicode word boundaries. Domain matching includes the exact domain and its subdomains, never unrelated suffix matches. A maximum 20 mention excerpts per brand are retained with a cap flag. No sentiment classifier, fuzzy entity disambiguation, model-generated advice or ranking score is used. Match observed language variants with explicit aliases.

### Pricing and spending limits

Base analysis price: $1.6 per 1,000 comparable current/baseline snapshot pairs. Diagnostic-only rows and invalid top-level inputs have zero analysis events. No start or automatic dataset-row fee is configured for this Actor. Discounts: Bronze 10%, Silver 15%, Gold/Platinum/Diamond 20%. A successful supplied answer is billed even if no tracked brand is present; a comparable unchanged pair is billed because comparison was completed.

Live collection, where enabled, is separately capped and has its own upstream pricing; do not mistake the analysis event price for a bundled guaranteed collection price. The offline demo starts no upstream run. Analysis spending limits reduce the inspected prefix before processing. Inputs are capped at 200 snapshots per batch, 200 source URLs per snapshot, 100,000 answer characters per snapshot and 2 million serialized characters per batch. At most 20 brands with 20 aliases and 20 domains each. Memory 256–512 MB; default run timeout 120 seconds. Partial coverage is explicit.

### Troubleshooting and limitations

Choose exactly one current input source; choose exactly one baseline source for comparisons. Wrong types, invalid source URLs, missing timestamp or duplicate contexts need correction. For storage errors, check READ permission, the record name and retention. Failed collection does not imply zero visibility; inspect COLLECTION and the upstream run before retrying paid work. Source snapshots can be incomplete or inaccurate, so results describe that evidence only. Real assistants vary by time, account, geography and model. No guarantee of inclusion, citation growth, sales or ranking is made. These tools do not crawl your website or treat llms.txt as a ranking requirement.

Report issues with a run ID and a small non-sensitive example. Never post API tokens, private answers or customer data in a public issue. No personal credentials are embedded in the source, and source datasets/stores are never modified. Built on the Apify Python SDK; independent from Google and the referenced AI providers.

### Who is this for?

SEO and AEO teams comparing citation evidence over time. Supply an earlier and later batch with matching question and search context.

### Frequently asked questions

#### Does this collect live AI answers or treat missing data as a citation loss?

No. It compares supplied snapshots and does not start a live collector. Missing baselines, failed collections and mismatched contexts produce diagnostics rather than invented citation losses.

#### How do I try it before using my full input?

Open the Input tab, review the prefilled example, and run a small batch with a spending limit. Inspect the dataset and report before increasing the batch. Examples can incur the documented inspection or analysis fee; an execution marked successful can still contain rejected records or incomplete coverage.

#### Can I use the Actor through an API or on a schedule?

Yes. Use Apify's [Actor API](https://docs.apify.com/api/v2/acts-run-sync-get-dataset-items-post) or [schedules](https://docs.apify.com/platform/schedules). Keep credentials private and use the documented input fields. The pricing and limits below apply to API runs too.

### Related tools for the next step

- [AEO Brand Monitor - Google AI Overview Citation Evidence](https://apify.com/variable_mitts/aeo-brand-citation-monitor)
- [RAG Dataset Cleaner - Text Deduplication and Source URLs](https://apify.com/variable_mitts/rag-dataset-cleaner-evidence)

# Actor input Schema

## `snapshots` (type: `array`):

One snapshot per query and context: query, text, sources, observedAt (ISO timestamp with timezone), surface, country, language, device. Clear this when selecting a source dataset or live mode. Default example is synthetic, not a real AI result.

## `brands` (type: `array`):

Up to 20 objects: name, aliases, domains. Domains are hostnames, not URLs. Aliases use case-insensitive word boundaries; matching citations and text mentions are reported separately.

## `sourceDatasetId` (type: `string`):

Alternative to Current snapshots. Select a dataset with up to 200 official Google AI Overview rows or normalized snapshots. Read only; source is never changed.

## `datasetObservedAt` (type: `string`):

Required when dataset rows have no observedAt. Supply an ISO timestamp with timezone from the original collection, not the current analysis time.

## `maxSnapshots` (type: `integer`):

Process at most this many current snapshots. Spending cap may reduce it. Remaining snapshots are disclosed as pending.

## `datasetSurface` (type: `string`):

Used only when a dataset row has no surface. Set google_ai_overview only for real captured Google AI Overviews; generic imports are not assumed to be Google.

## `baselineSnapshots` (type: `array`):

Earlier snapshots with matching query, surface, country, language and device. Clear this when choosing a baseline store. Nonmatching contexts and failures are free diagnostics.

## `baselineStoreId` (type: `string`):

Alternative to Earlier snapshots. Select the previous monitor/tracker run key-value store containing SNAPSHOTS. Source is read only and subject to retention.

## Actor input object example

```json
{
  "snapshots": [
    {
      "query": "best appointment software",
      "surface": "synthetic_demo",
      "country": "IN",
      "language": "en",
      "device": "desktop",
      "observedAt": "2026-11-02T10:00:00Z",
      "text": "Acme and Rival offer appointment tools. Acme provides online scheduling.",
      "sources": [
        {
          "url": "https://acme.example/scheduling",
          "title": "Acme scheduling"
        }
      ]
    }
  ],
  "brands": [
    {
      "name": "Acme",
      "aliases": [
        "Acme"
      ],
      "domains": [
        "acme.example"
      ]
    },
    {
      "name": "Rival",
      "aliases": [
        "Rival"
      ],
      "domains": [
        "rival.example"
      ]
    }
  ],
  "maxSnapshots": 5,
  "datasetSurface": "supplied_answer",
  "baselineSnapshots": [
    {
      "query": "best appointment software",
      "surface": "synthetic_demo",
      "country": "IN",
      "language": "en",
      "device": "desktop",
      "observedAt": "2026-11-01T10:00:00Z",
      "text": "Rival offers appointment tools for clinics.",
      "sources": [
        {
          "url": "https://rival.example/product",
          "title": "Rival"
        }
      ]
    }
  ]
}
```

# Actor output Schema

## `file0` (type: `string`):

No description

## `file1` (type: `string`):

No description

## `file2` (type: `string`):

No description

## `file3` (type: `string`):

No description

## `file4` (type: `string`):

No description

## `file5` (type: `string`):

No description

## `rows` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "snapshots": [
        {
            "query": "best appointment software",
            "surface": "synthetic_demo",
            "country": "IN",
            "language": "en",
            "device": "desktop",
            "observedAt": "2026-11-02T10:00:00Z",
            "text": "Acme and Rival offer appointment tools. Acme provides online scheduling.",
            "sources": [
                {
                    "url": "https://acme.example/scheduling",
                    "title": "Acme scheduling"
                }
            ]
        }
    ],
    "brands": [
        {
            "name": "Acme",
            "aliases": [
                "Acme"
            ],
            "domains": [
                "acme.example"
            ]
        },
        {
            "name": "Rival",
            "aliases": [
                "Rival"
            ],
            "domains": [
                "rival.example"
            ]
        }
    ],
    "maxSnapshots": 5,
    "baselineSnapshots": [
        {
            "query": "best appointment software",
            "surface": "synthetic_demo",
            "country": "IN",
            "language": "en",
            "device": "desktop",
            "observedAt": "2026-11-01T10:00:00Z",
            "text": "Rival offers appointment tools for clinics.",
            "sources": [
                {
                    "url": "https://rival.example/product",
                    "title": "Rival"
                }
            ]
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("variable_mitts/aeo-citation-change-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "snapshots": [{
            "query": "best appointment software",
            "surface": "synthetic_demo",
            "country": "IN",
            "language": "en",
            "device": "desktop",
            "observedAt": "2026-11-02T10:00:00Z",
            "text": "Acme and Rival offer appointment tools. Acme provides online scheduling.",
            "sources": [{
                    "url": "https://acme.example/scheduling",
                    "title": "Acme scheduling",
                }],
        }],
    "brands": [
        {
            "name": "Acme",
            "aliases": ["Acme"],
            "domains": ["acme.example"],
        },
        {
            "name": "Rival",
            "aliases": ["Rival"],
            "domains": ["rival.example"],
        },
    ],
    "maxSnapshots": 5,
    "baselineSnapshots": [{
            "query": "best appointment software",
            "surface": "synthetic_demo",
            "country": "IN",
            "language": "en",
            "device": "desktop",
            "observedAt": "2026-11-01T10:00:00Z",
            "text": "Rival offers appointment tools for clinics.",
            "sources": [{
                    "url": "https://rival.example/product",
                    "title": "Rival",
                }],
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("variable_mitts/aeo-citation-change-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "snapshots": [
    {
      "query": "best appointment software",
      "surface": "synthetic_demo",
      "country": "IN",
      "language": "en",
      "device": "desktop",
      "observedAt": "2026-11-02T10:00:00Z",
      "text": "Acme and Rival offer appointment tools. Acme provides online scheduling.",
      "sources": [
        {
          "url": "https://acme.example/scheduling",
          "title": "Acme scheduling"
        }
      ]
    }
  ],
  "brands": [
    {
      "name": "Acme",
      "aliases": [
        "Acme"
      ],
      "domains": [
        "acme.example"
      ]
    },
    {
      "name": "Rival",
      "aliases": [
        "Rival"
      ],
      "domains": [
        "rival.example"
      ]
    }
  ],
  "maxSnapshots": 5,
  "baselineSnapshots": [
    {
      "query": "best appointment software",
      "surface": "synthetic_demo",
      "country": "IN",
      "language": "en",
      "device": "desktop",
      "observedAt": "2026-11-01T10:00:00Z",
      "text": "Rival offers appointment tools for clinics.",
      "sources": [
        {
          "url": "https://rival.example/product",
          "title": "Rival"
        }
      ]
    }
  ]
}' |
apify call variable_mitts/aeo-citation-change-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,variable_mitts/aeo-citation-change-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vjckOfpajuDhHrmyD/builds/AEAETtuEQoVhUuZSb/openapi.json
