compare_search_periods
Compare search analytics data between two time periods to measure changes in clicks, impressions, CTR, and average position against a baseline, helping identify performance trends.
Instructions
Compare search analytics data between two time periods.
Direction: Period 1 is the period you are analyzing and Period 2 is the baseline
you compare it against. All deltas are Period 1 relative to Period 2, and the
percentage baseline is Period 2. A positive value means Period 1 outperformed
Period 2 — more clicks/impressions, higher CTR, or a better (lower) average
position. For a current-vs-previous comparison, pass the current period as
Period 1 and the previous period as Period 2. Percentages are null when the
Period 2 baseline is zero.
Args:
site_url: Exact GSC property URL from list_properties (e.g. "https://example.com/" or
"sc-domain:example.com"). Domain properties cover all subdomains — use the
domain property as site_url and filter by page to analyze a specific subdomain.
period1_start: Start date for period 1 / the analyzed period (YYYY-MM-DD)
period1_end: End date for period 1 / the analyzed period (YYYY-MM-DD)
period2_start: Start date for period 2 / the baseline period (YYYY-MM-DD)
period2_end: End date for period 2 / the baseline period (YYYY-MM-DD)
dimensions: Dimensions to group by (default: query)
limit: Number of top results to compare (default: 10)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| site_url | Yes | ||
| dimensions | No | query | |
| period1_end | Yes | ||
| period2_end | Yes | ||
| period1_start | Yes | ||
| period2_start | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |