Compare Periods
compare_periodsCompare two date ranges by query, page, country, or device to spot performance changes, totals, and top movers in Search Console data.
Instructions
Compare two date ranges by query, page, country, or device, with totals and top movers
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteUrl": "<siteUrl>"
},
"name": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Length of the range when startDate is omitted. Defaults to 28 | |
| type | No | Search type: web (default), image, video, news, discover, googleNews, or webMultimodal. Google does not allow grouping webMultimodal by query | |
| limit | No | Maximum items to return | |
| endDate | No | End date in YYYY-MM-DD format, Pacific Time. Defaults to the latest day with final data | |
| maxRows | No | Maximum rows to read from Google for the analysis. The server pages through results. | |
| siteUrl | Yes | A Search Console property, bare domain, or page URL. Examples: sc-domain:example.com, https://www.example.com/, example.com | |
| dimension | No | Dimension to compare | page |
| startDate | No | Start date in YYYY-MM-DD format, Pacific Time. Defaults from days and endDate | |
| previousEndDate | No | End of the comparison period. Set it together with previousStartDate | |
| previousStartDate | No | Start of the comparison period. Defaults to the period of equal length before startDate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| current | Yes | ||
| summary | Yes | ||
| previous | Yes | ||
| dimension | Yes | ||
| topLosers | Yes | ||
| topGainers | Yes | ||
| dataTruncated | Yes |