Compare two periods in Search Console
gsc_compare_periodsCompare search performance between two date ranges for a query or page dimension, returning rows with delta metrics sorted by click change to identify top winners and losers.
Instructions
Compare search performance between a current and a previous period for a single dimension (query or page). Returns rows with deltas, sorted by biggest click change, so you can spot winners and losers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many winners and losers to return. | |
| filters | No | ||
| siteUrl | Yes | Property URL exactly as shown in Search Console, e.g. 'https://example.com/' or 'sc-domain:example.com'. Use gsc_list_sites to discover it. | |
| rowLimit | No | Rows fetched per period before joining. | |
| dimension | No | page | |
| currentEnd | Yes | Current period end date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo' (e.g. '28daysAgo'). Search Console data lags ~2-3 days. | |
| searchType | No | web | |
| previousEnd | Yes | Previous period end date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo' (e.g. '28daysAgo'). Search Console data lags ~2-3 days. | |
| currentStart | Yes | Current period start date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo' (e.g. '28daysAgo'). Search Console data lags ~2-3 days. | |
| previousStart | Yes | Previous period start date: YYYY-MM-DD, 'today', 'yesterday' or 'NdaysAgo' (e.g. '28daysAgo'). Search Console data lags ~2-3 days. |