compare_search_periods
Spot search gainers and losers by comparing any date range against the preceding equal period, broken down by query or page.
Instructions
Compare an analysis window with the preceding equal period to identify search gainers and losers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Dimension used to compare performance | query |
| limit | No | Maximum gainers and losers to return; defaults to 50 each | |
| endDate | No | End date in YYYY-MM-DD; defaults to today | |
| siteUrl | Yes | Search Console property to analyze | |
| startDate | No | Start date in YYYY-MM-DD; defaults to the latest 28-day window |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| losers | Yes | Rows with decreased clicks | |
| gainers | Yes | Rows with increased clicks | |
| siteUrl | Yes | Search Console property analyzed | |
| currentWindow | Yes | Current comparison window | |
| previousWindow | Yes | Immediately preceding equal-length window | |
| currentTruncated | Yes | Whether Search Console held more than 5000 rows for the current window | |
| droppedAsUnknown | Yes | Rows present on only one side whose other side was cut off, and so were excluded rather than counted as zero | |
| previousTruncated | Yes | Whether Search Console held more than 5000 rows for the previous window |