domain_cited_for_diff
Compare which queries a domain is cited for across two time windows to track gained or lost citations after publishing or migrating content. Uses cache only, with no API spend.
Instructions
Diff cited_for between two time windows for a domain. Returns queries gained (cited now, not before baseline_until) and queries lost (cited before, not since current_since). Cache-only, no API spend. Use to track citation drift over time after publishing or migrating content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain to diff, e.g. 'automatelab.tech'. | |
| engine | No | Filter by engine. Omit to include all. | |
| current_since | No | ISO date floor for the 'current' window. Defaults to baseline_until. | |
| baseline_until | Yes | ISO date (or ISO datetime). Baseline window = all cache entries fetched on or before this timestamp. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lost | Yes | Queries lost (were cited, no longer are). | |
| counts | Yes | ||
| domain | Yes | Domain that was diffed. | |
| gained | Yes | Queries gained (newly cited) since the baseline. | |
| source | Yes | ||
| fetched_at | Yes | UTC ISO-8601 timestamp. | |
| current_since | Yes | Lower bound of the current window. | |
| engine_filter | No | Engine filter applied, if any. | |
| baseline_until | Yes | Upper bound of the baseline window. | |
| unchanged_queries | Yes | Queries cited in both windows. |