Compare two periods in Search Console
gsc_compare_periodsCompare current and previous period performance in Google Search Console by query, page, country, device, or appearance, with deltas sorting winners and losers by click change.
Instructions
Compare a current and a previous period by query, page, country, device, searchAppearance or date; rows carry deltas, sorted by click change (winners and losers).
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>",
"currentStart": "<currentStart>",
"currentEnd": "<currentEnd>",
"previousStart": "<previousStart>",
"previousEnd": "<previousEnd>"
},
"name": "gsc_compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many winners and losers to return. | |
| filters | No | ||
| siteUrl | Yes | Search Console property, e.g. 'sc-domain:example.com' (see gsc_list_sites). | |
| rowLimit | No | Rows fetched per period before joining. | |
| dataState | No | 'all' includes fresh, not yet final data (the last 2-3 days). | final |
| dimension | No | What to compare. 'date' pairs no keys between the periods, so use it for a day-by-day trend, not for winners/losers. | page |
| currentEnd | Yes | Current period end: YYYY-MM-DD, today, yesterday or NdaysAgo (data lags 2-3 days). | |
| searchType | No | web | |
| previousEnd | Yes | Previous period end: YYYY-MM-DD, today, yesterday or NdaysAgo (data lags 2-3 days). | |
| currentStart | Yes | Current period start: YYYY-MM-DD, today, yesterday or NdaysAgo (data lags 2-3 days). | |
| previousStart | Yes | Previous period start: YYYY-MM-DD, today, yesterday or NdaysAgo (data lags 2-3 days). | |
| aggregationType | No | byPage vs byProperty changes the reported average position. |