Get search results history
get_serp_historyGoogle's results for a keyword as the data service saved them during one past month: each snapshot's date, the SERP features on the page and its top 20 organic results with position, domain, URL and title. Shows who ranked where before, to see whether rankings moved. The data service keeps the last 12 months. Estimated price: up to $0.01, one request for a month's snapshots. A month saved within 30 days is read free, and it opens free in Keyword Research's SERP view. Each call may spend up to the workspace's agent spend limit ($2.00 unless changed in Settings) without asking: it holds at most its estimate plus a margin while it runs and is charged what it bought, never more. A call whose maximum is above the limit is refused before anything is bought, with its estimate and maximum: ask the user, then call again with approvedMaxCostUsd set to the amount they approved.
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": {
"projectId": "<projectId>",
"keyword": "<keyword>",
"month": "<month>"
},
"name": "get_serp_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | Yes | The month as 'yyyy-mm', one of the last 12 months, this one included. | |
| keyword | Yes | The keyword. | |
| projectId | Yes | Required. The Visibility Genies project this call works in and is billed to. Call list_projects to find one. | |
| languageCode | No | Language code such as en, es or vi. When left out, the language of the project's default market is used (see list_projects). | |
| locationCode | No | Market location code, for example 2840 for the United States. When left out, the project's default market is used (shown by list_projects and changed in project settings). A few countries, Iceland (2352) among them, only have Google Ads data: search volume, CPC and trends are available there, but keyword difficulty, search intent and domain analytics are not. | |
| approvedMaxCostUsd | No | The most, in USD, the user approved for this call after seeing its estimate and maximum. Only needed after a call was refused for costing more than the workspace's agent spend limit; never set it without asking the user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| meta | No | ||
| bought | No | ||
| snapshots | No | ||
| savedResultId | No |