# Google Rank Monitor — SERP Change Alerts (Vigia) (`om_kh/vigia-serp-rank-delta`) Actor

Track Google search rankings for your keywords and get only what changed: positions gained or lost, new competitors entering, drop-outs from results. Charged per change event, not per check. Ideal for SEO agents and automated rank-tracking workflows.

- **URL**: https://apify.com/om\_kh/vigia-serp-rank-delta.md
- **Developed by:** [omar khandji](https://apify.com/om_kh) (community)
- **Categories:** SEO tools
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00 / 1,000 rank changes

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Vigia SERP Rank Delta

**Track your Google keyword rankings — pay only for what changed.**

Give Vigia your keywords and your domain(s), and get only meaningful ranking moves: improved, declined, new entries into the results, and drop-outs. It never scrapes Google itself — it chains onto Apify's licensed Google Search Results Scraper for the raw fetch, so there's no fragile anti-bot scraper to break.

### Why choose Vigia

- **Only rank changes, only charged for changes, at $0.008** — most rank trackers bill every keyword check whether your position moved or not (competitors charge $0.0039–$0.02 per check, every single run). Vigia's baseline run and unchanged keywords are free.
- **"Best rank ever" intelligence** — in monitor mode Vigia remembers each keyword's historical best/worst position and flags `at_best_rank_ever`. Know when you've hit a genuine new high, not noise.
- **Move magnitude** — every rank change is tagged `minor` / `moderate` / `major`.
- **Aggregate visibility signal** — each run returns a `rank_signal`: how many improved/declined, average position change, biggest mover, how many changed keywords now sit in the top 10.
- **No fragile scraping** — chains onto a licensed, maintained SERP actor instead of a homegrown Google scraper that breaks under CAPTCHA/anti-bot.
- **Fair pricing** — hard `maxTotalChargeUsd` cap on Vigia's own charge; never billed without a result.

### Input

- `keywords` — search queries to track, e.g. `["running shoes", "best running shoes 2026"]`
- `trackedDomains` — your domain(s), e.g. `["shop.example"]`
- `countryCode` / `languageCode` — search locale, default `us` / `en`
- `monitorEnabled` — first run stores a free baseline; later runs deliver only changes.
- `monitorId` — optional name to keep separate keyword sets independent.
- `maxTotalChargeUsd` — hard spend cap for Vigia's own rank-change charge.

You can also pass your own `currentResults` (organic results array) if you bring your own SERP data.

### Output

One row per change: `change_type` (new_entry / improved / declined / dropped_out), `keyword`, `domain`, `position`, `previous_position`, `position_change`, `magnitude`, `at_best_rank_ever`, `url`. Plus a `RUN_SUMMARY.json` with the aggregate `rank_signal`.

### Notes

- **You will see two charges on your Apify invoice for each run**: Apify's own Google Search Results Scraper bills ~$0.0018 per keyword checked (charged directly by Apify, not by Vigia, whether or not anything changed), and Vigia charges $0.008 only for the keywords whose rank actually changed. This is normal and expected — Vigia does not mark up or resell the scraper's cost.
- Rank/position changes are charged after delivery; baseline and unchanged keywords are free of Vigia's own fee.
- The chained scraper call has a 3-minute timeout; if it fails or times out, the run still completes successfully with a `source_errors` entry instead of crashing or charging you.

# Actor input Schema

## `keywords` (type: `array`):

Search keywords/queries to check on Google.
## `trackedDomains` (type: `array`):

Your domain(s) — Vigia reports the best ranking position for each of these on each keyword.
## `countryCode` (type: `string`):

Google country to search from, e.g. "us", "ca", "fr".
## `languageCode` (type: `string`):

Search language, e.g. "en", "fr".
## `currentResults` (type: `array`):

Bring your own organicResults (e.g. from a prior Google Search Results Scraper run) instead of Vigia fetching them.
## `monitorEnabled` (type: `boolean`):

The first monitored run stores a free baseline. Later runs deliver and charge only rank changes.
## `monitorId` (type: `string`):

Pins the persistent baseline to a name of your choice. Leave empty to derive it automatically.
## `maxTotalChargeUsd` (type: `number`):

Hard maximum amount that this run's own rank-change events may charge. Does not cap the separate cost of the chained Google Search Results Scraper call.
## `sources` (type: `array`):

Declare every upstream source before this run.

## Actor input object example

```json
{
  "keywords": [],
  "trackedDomains": [],
  "countryCode": "us",
  "languageCode": "en",
  "currentResults": [],
  "monitorEnabled": false,
  "monitorId": "",
  "maxTotalChargeUsd": 1,
  "sources": [
    {
      "name": "Google Search Results (via apify/google-search-scraper)",
      "authorization": "public_search_results",
      "estimated_cost_usd": 0.0018
    }
  ]
}
````

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("om_kh/vigia-serp-rank-delta").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("om_kh/vigia-serp-rank-delta").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call om_kh/vigia-serp-rank-delta --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=om_kh/vigia-serp-rank-delta",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Rank Monitor — SERP Change Alerts (Vigia)",
        "description": "Track Google search rankings for your keywords and get only what changed: positions gained or lost, new competitors entering, drop-outs from results. Charged per change event, not per check. Ideal for SEO agents and automated rank-tracking workflows.",
        "version": "0.1",
        "x-build-id": "1G4RtR8fl12ob2ko5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/om_kh~vigia-serp-rank-delta/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-om_kh-vigia-serp-rank-delta",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/om_kh~vigia-serp-rank-delta/runs": {
            "post": {
                "operationId": "runs-sync-om_kh-vigia-serp-rank-delta",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/om_kh~vigia-serp-rank-delta/run-sync": {
            "post": {
                "operationId": "run-sync-om_kh-vigia-serp-rank-delta",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "keywords",
                    "trackedDomains",
                    "maxTotalChargeUsd"
                ],
                "properties": {
                    "keywords": {
                        "title": "Keywords to track",
                        "type": "array",
                        "description": "Search keywords/queries to check on Google.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "trackedDomains": {
                        "title": "Tracked domains",
                        "type": "array",
                        "description": "Your domain(s) — Vigia reports the best ranking position for each of these on each keyword.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "countryCode": {
                        "title": "Country code",
                        "type": "string",
                        "description": "Google country to search from, e.g. \"us\", \"ca\", \"fr\".",
                        "default": "us"
                    },
                    "languageCode": {
                        "title": "Language code",
                        "type": "string",
                        "description": "Search language, e.g. \"en\", \"fr\".",
                        "default": "en"
                    },
                    "currentResults": {
                        "title": "Current SERP results (advanced)",
                        "type": "array",
                        "description": "Bring your own organicResults (e.g. from a prior Google Search Results Scraper run) instead of Vigia fetching them.",
                        "default": []
                    },
                    "monitorEnabled": {
                        "title": "Monitor only rank changes",
                        "type": "boolean",
                        "description": "The first monitored run stores a free baseline. Later runs deliver and charge only rank changes.",
                        "default": false
                    },
                    "monitorId": {
                        "title": "Monitor ID (optional)",
                        "type": "string",
                        "description": "Pins the persistent baseline to a name of your choice. Leave empty to derive it automatically.",
                        "default": ""
                    },
                    "maxTotalChargeUsd": {
                        "title": "Maximum Vigia charge (USD)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Hard maximum amount that this run's own rank-change events may charge. Does not cap the separate cost of the chained Google Search Results Scraper call.",
                        "default": 1
                    },
                    "sources": {
                        "title": "Declared upstream sources and estimated costs",
                        "type": "array",
                        "description": "Declare every upstream source before this run.",
                        "default": [
                            {
                                "name": "Google Search Results (via apify/google-search-scraper)",
                                "authorization": "public_search_results",
                                "estimated_cost_usd": 0.0018
                            }
                        ]
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
