# Google Keyword Rank Tracker — SERP Position by City (`steadyscrape/google-keyword-rank-tracker`) Actor

Google rank tracker and SERP position checker API: each domain's organic ranking per keyword, country and city or ZIP (uule), down to 100 results, with the ranking URL, top results and SERP features (AI Overview, local pack, People also ask). Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/google-keyword-rank-tracker.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 keyword checks

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Keyword Rank Tracker — SERP Position by City

**Google Keyword Rank Tracker** checks where your website ranks in **Google's organic search results** for every
keyword you give it, from any **city, ZIP or postal code, or country**, down to the first **100 results**. Each check
gives every domain you list — yours and your competitors' — its **organic position**, the **ranking URL**, the **top
results** of that search and the **SERP features** Google showed (AI Overview, local pack, People also ask). One row
per keyword and location; export to JSON, CSV or Excel, or get it via API.

Local SEO agencies use it to report a client's Google ranking in each city they serve; site owners schedule it weekly
to follow their keyword positions next to their competitors'.

### What the Google rank tracker gives you

- **The organic position of each domain** for each keyword and location (`positions`: `{ "rotorooter.com": 1,
  "angi.com": 11 }`), counted the way SEO tools count it: web results only, across every page read. Ads, the map pack,
  People also ask and the AI Overview are not counted. Subdomains count: `blog.hubspot.com` ranks for `hubspot.com`.
- **The ranking URL**, its title and page (`rankings`). When Google links a result through its own redirect, the
  domain is still exact and the row gives the address Google prints under the title (`displayedUrl`).
- **The top results** of the search: position, page, title, URL, printed address and domain (`organicResults`).
- **SERP features** on page 1 (`serpFeatures`): `ai_overview`, `ai_overview_loading`, `local_pack`, `people_also_ask`.
- **Where Google answered from**: the location searched (`locationCanonical`, Google's own name for it) and the
  place Google's page says it answered for (`locationShownByGoogle`, e.g. "Austin, TX").

### Rank tracking by city, ZIP code or country

Google ranks local searches differently in every city. Write the places you care about the way you would say them —
`Austin, TX`, `78704`, `London, UK`, `Toronto, ON`, `Sydney NSW` — or as Google's canonical name
(`Austin,Texas,United States`). The Actor looks each one up in Google's own list of locations (the Google Ads
geotargets list, 270,000 places) and sends it to Google as a `uule` location, the same mechanism Google uses to set a
search's place. Leave the locations empty for one country-wide check per keyword.

A name that several places share (`Springfield`, `Portland`, `Austin` alone) or that Google's list lacks is a **free**
row that says how to write it (it lists the places to choose from); nothing is searched for it.

### Use cases

- **Local SEO reporting**: a client's position for "plumber", "emergency plumber" and "water heater repair" in each
  of the 15 towns it serves.
- **Competitor rank tracking**: your site and four competitors on the same keywords, side by side, in one row.
- **Keyword position monitoring**: a weekly scheduled run, exported to Google Sheets, to see which keywords move.
- **SERP feature tracking**: which keywords show an AI Overview or a local pack above the organic results.

### Input

| Field | What it is |
|---|---|
| `keywords` | One per line. Each keyword is searched once per location. Up to 1,000. |
| `domains` | Your site and your competitors', one per line (`rotorooter.com`; a full address works too). Up to 20. |
| `depth` | How many results to read: `10` (Google's first page, default) to `100` (ten pages), in whole pages of 10. |
| `stopWhenAllFound` | Stop paging once every domain has its position (fewer extra pages). Default off. |
| `locations` | Cities, ZIP or postal codes, one per line. Optional, up to 100. Every keyword is checked in every location. |
| `country` | The Google to search, picked from the 219 countries Google targets (`us`, `gb`, `de`, `in`…). Default `us`. |
| `language` | Google's interface language (`en`, `de`, `es`, `pt-BR`…). Default `en`. |

```json
{
    "keywords": ["plumber", "emergency plumber"],
    "domains": ["rotorooter.com", "angi.com"],
    "locations": ["Austin, TX", "78704", "Round Rock, TX"],
    "depth": 30,
    "country": "us",
    "language": "en"
}
```

### Output

One row per keyword and location (shortened: real rows carry every result read):

```json
{
    "keyword": "plumber",
    "country": "us",
    "language": "en",
    "location": "Austin, TX",
    "locationCanonical": "Austin,Texas,United States",
    "locationType": "City",
    "locationShownByGoogle": "Austin, TX",
    "status": "ok",
    "reason": null,
    "positions": { "rotorooter.com": 1, "angi.com": 11 },
    "rankings": [
        { "domain": "rotorooter.com", "position": 1, "page": 1, "title": "Austin Plumber - $55 Off Plumbing & Drain", "url": "https://www.rotorooter.com/austin/", "displayedUrl": "https://www.rotorooter.com › austin" },
        { "domain": "angi.com", "position": 11, "page": 2, "title": "10 Best Plumbers in Austin, TX - Nov 2026 (Verified Reviews)", "url": null, "displayedUrl": "https://www.angi.com › companylist › austin › plumbing" }
    ],
    "domainsFound": 2,
    "depth": 20,
    "pagesRead": 2,
    "resultsRead": 18,
    "scanEnd": "depth",
    "serpFeatures": ["local_pack", "people_also_ask"],
    "organicResults": [
        { "position": 1, "page": 1, "title": "Austin Plumber - $55 Off Plumbing & Drain", "url": "https://www.rotorooter.com/austin/", "displayedUrl": "https://www.rotorooter.com › austin", "domain": "rotorooter.com" },
        { "position": 2, "page": 1, "title": "THE BEST 10 PLUMBING IN AUSTIN, TX - (2026 GUIDE)", "url": "https://www.yelp.com/search?cflt=plumbing&find_loc=Austin%2C+TX", "displayedUrl": "https://www.yelp.com › Home Services › Plumbing", "domain": "yelp.com" }
    ],
    "unreadFields": [],
    "googleUrl": "https://www.google.com/search?q=plumber&hl=en&gl=us&pws=0&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM%3D",
    "checkedAt": "2026-11-15T05:29:51.000Z"
}
```

#### Fields

| Field | Meaning |
|---|---|
| `keyword` / `country` / `language` | The search as checked. A location in another country is searched in its own (`London, UK` → `gb`). |
| `location` / `locationCanonical` / `locationType` | The location as you wrote it (`null` for a country-wide check), Google's name for the place searched from, and its kind (City, Postal Code, State…). |
| `locationShownByGoogle` | The place Google's page says it answered for ("Results for Austin, TX"), when it prints one: local searches do, others often don't. |
| `status` | `ok` (charged), or a free row: `no_results`, `location_not_found`, `location_ambiguous`, `blocked`, `unreadable` (`reason` says why). |
| `positions` | Each domain's organic position, `null` when it is not among the results read. One column per domain in CSV and Excel. |
| `rankings` | Per domain: `position`, `page`, `title`, `url` and `displayedUrl` of its first result. |
| `domainsFound` | How many of your domains were found within the results read. |
| `depth` / `pagesRead` / `resultsRead` / `scanEnd` | The depth asked, the pages and web results read, and why reading stopped: `depth`, `all_found`, `end_of_results`, `blocked`, `unreadable` or `spending_limit`. |
| `serpFeatures` | Page-1 features: `ai_overview` (inline), `ai_overview_loading` (Google's placeholder a browser fills), `local_pack`, `people_also_ask`. |
| `organicResults` | Every web result read: `position`, `page`, `title`, `url`, `displayedUrl`, `domain`. |
| `unreadFields` | Fields the row could not read on Google's page (`domain` when a result's site could not be told); empty normally. |
| `googleUrl` / `checkedAt` | The same search to open in a browser, and when it was checked (UTC). |

### Pricing

- **US$0.005 per keyword check** (`keyword-check`): one keyword in one location, Google's first page read (its first
  \~10 results) and every domain's position from it.
- **US$0.004 per extra page** (`extra-page`): each further page of 10 results read, down to the depth you ask.

A check at depth 10 costs US$0.005; at depth 30, US$0.013; at depth 100, US$0.041. 50 keywords in 3 cities at depth
20 cost US$1.35. A page that brings no new result, a page Google did not answer, a location that is not in Google's
list or that names several places, a search with no results and a page the Actor cannot read are all free. Turn on
`stopWhenAllFound` to skip the extra pages once every domain is found.

### Limits and how Google answers

- **Positions are one live reading at the time stamped in `checkedAt`.** Google answers each request from one of
  Apify's proxy IPs and serves two versions of page 1 that can order results differently, so the same keyword can
  move a few places between two checks minutes apart. That is the nature of rank tracking: compare runs over time.
- **Pages are read one at a time through different IPs**, so a result can rarely appear on two pages or be skipped
  between them; a result seen twice is counted once.
- **Location**: the place is sent as Google's `uule` parameter. For local searches Google's page usually says where it
  answered for (`locationShownByGoogle`); without a location, the search is pinned to the country itself. Measured on
  the build day: "plumber" from Austin and Seattle gave each city's own plumbers; "pizza near me" without any location
  answered for Kanagawa, Japan, and with the country set it answered for the United States. Every page is asked from
  the location, but Google does not always honour it past page 1: in one of four readings of "plumber" from Austin,
  page 2 held general results (plumber salaries, a college in Tucson) instead of Austin plumbers. For local searches,
  page 1's positions are the firm ones.
- **Ranking URL**: Google links some results through its own redirect. The domain is always read (from the link or
  the address Google prints), and `url` is `null` on those results while `displayedUrl` still shows the address.
  A result whose site cannot be read is named in `unreadFields`; a page where most results show no readable site is
  never charged (a free `unreadable` row on page 1, `scanEnd: "unreadable"` on a later page), because a position
  there would not be proven.
- **Depth**: Google stopped showing 100 results on one page, so each 10 results is one more page; a search with
  fewer results ends early (`scanEnd: "end_of_results"`) and is charged only for the pages that brought results.
- **When Google asks for verification**, the Actor never solves or bypasses it: it asks again through another IP of
  Apify's Google search proxy, and after three verification pages in a row it stops asking and delivers free `blocked`
  rows. The run still succeeds.

### Is it legal to scrape Google search rankings?

This Actor reads public Google Search results pages, the same pages anyone sees without logging in, and collects no
personal data. Scraping public pages is generally lawful, but Google's terms of service do not allow automated access,
and laws differ by country: use the data responsibly and check with a lawyer for your use case. This Actor is not
affiliated with, endorsed by or sponsored by Google.

# Actor input Schema

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

One per line: <code>plumber</code>, <code>emergency plumber austin</code>. Each keyword is searched on Google once per location and is one <code>keyword-check</code>: every domain's organic position on Google's first page, its ranking URL, the top results and the SERP features shown.

## `domains` (type: `array`):

Your site and your competitors', one per line: <code>rotorooter.com</code>, <code>angi.com</code> (a full address works too). Each check gives every domain's first organic position; subdomains count (<code>blog.hubspot.com</code> ranks for <code>hubspot.com</code>).

## `depth` (type: `integer`):

How deep to read Google's results: <code>10</code> is its first page, <code>100</code> its first ten pages (read in whole pages of 10, so 25 reads 30). The first page is the <code>keyword-check</code>; each further page read is one <code>extra-page</code>.

## `stopWhenAllFound` (type: `boolean`):

Saves the extra pages after every domain has its position. Off, every page down to the depth is read, so the top results always go as deep as asked.

## `locations` (type: `array`):

Where to search from, one per line: <code>Austin, TX</code>, <code>78704</code>, <code>London, UK</code>, <code>Toronto, ON</code>, or Google's canonical name <code>Austin,Texas,United States</code>. Every keyword is checked in every location (Google's <code>uule</code>). Leave empty for one country-wide check per keyword. A name several places share (<code>Springfield</code>) or that Google's list lacks is a free row saying how to write it.

## `country` (type: `string`):

The country whose Google answers (Google's <code>gl</code>), from the countries Google targets. Locations are looked up in it first; a location in another country (<code>London, UK</code>) is searched in its own.

## `language` (type: `string`):

Google's interface language (<code>hl</code>): <code>en</code>, <code>de</code>, <code>es</code>, <code>pt-BR</code>…

## Actor input object example

```json
{
  "keywords": [
    "plumber"
  ],
  "domains": [
    "rotorooter.com",
    "angi.com"
  ],
  "depth": 20,
  "stopWhenAllFound": false,
  "locations": [
    "Austin, TX"
  ],
  "country": "us",
  "language": "en"
}
```

# Actor output Schema

## `rankings` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "keywords": [
        "plumber"
    ],
    "domains": [
        "rotorooter.com",
        "angi.com"
    ],
    "depth": 20,
    "locations": [
        "Austin, TX"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/google-keyword-rank-tracker").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 = {
    "keywords": ["plumber"],
    "domains": [
        "rotorooter.com",
        "angi.com",
    ],
    "depth": 20,
    "locations": ["Austin, TX"],
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/google-keyword-rank-tracker").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "keywords": [
    "plumber"
  ],
  "domains": [
    "rotorooter.com",
    "angi.com"
  ],
  "depth": 20,
  "locations": [
    "Austin, TX"
  ]
}' |
apify call steadyscrape/google-keyword-rank-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/google-keyword-rank-tracker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Wt3D0Ayb8W52sOgHu/builds/8zJGRfhI3sncibd0g/openapi.json
