# Google Local Rank Tracker: Map Pack Rankings & Competitors (`scrapemint/google-local-rank-tracker`) Actor

Track where your business ranks in Google's local results (map pack and local finder) for each keyword and city or ZIP, with the top 20-60 competitors: rating, reviews, category, address, phone and hours. Rank changes between runs.

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

## Pricing

$8.00 / 1,000 local results checked (per 20)s

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 Local Rank Tracker: Map Pack Rankings & Competitors

**Where does your business rank in Google's local results, keyword by keyword and place by place?** Give it the searches your customers make, the cities or ZIP codes you serve and your business name, and get one row per keyword and location:

- **Your rank** in Google's local finder (the list behind the map pack), and whether you are **in the map pack** (top 3)
- **Rank change** since your last run
- **Your listing:** rating, review count, category, address, phone and hours as Google shows them
- **Every competitor checked (20, 40 or 60):** name, rating, reviews, category, years in business, address, phone, hours, a review snippet, and Google's CID and Maps link
- **Top competitor** for that keyword and place

Use ZIP codes as locations to build a simple **geo-grid**: one check per ZIP shows where you are strong and where competitors take over.

### What you get

Per check: `keyword`, `location`, `query`, `yourRank`, `inMapPack`, `yourListing`, `resultsChecked`, `topCompetitor`, `results`, `previousRank`, `rankChange`, `lastCheckedAt`, `country`, `checkedAt`

Per business in `results`: `position`, `name`, `rating`, `reviews`, `category`, `priceLevel`, `yearsInBusiness`, `area`, `address`, `phone`, `hours`, `reviewSnippet`, `hasWebsite`, `sponsored`, `cid`, `placeId`, `mapsUrl`

### Example input

A plumber tracking two keywords across a city and two ZIP codes:

```json
{
  "keywords": ["plumber", "water heater repair"],
  "locations": ["Austin, TX", "78744", "78759"],
  "yourBusiness": ["Reliant Plumbing"],
  "depth": 40
}
```

Just your rank, no competitor list (cheaper, stops at the page your listing is on):

```json
{
  "keywords": ["dentist", "emergency dentist"],
  "locations": ["Denver, CO"],
  "yourBusiness": ["(303) 555-0100"],
  "includeResults": false
}
```

### Example output

```json
{
  "keyword": "plumber",
  "location": "Austin, TX",
  "query": "plumber Austin, TX",
  "yourRank": 2,
  "inMapPack": true,
  "resultsChecked": 40,
  "previousRank": 2,
  "rankChange": 0,
  "results": [
    {
      "position": 26,
      "name": "Plumbing Outfitters",
      "rating": 4.9,
      "reviews": 449,
      "category": "Plumber",
      "yearsInBusiness": "3+ years in business",
      "area": "Austin, TX",
      "address": "8329 N Mopac Expy Suite 153, Austin, TX 78759",
      "phone": "(512) 309-5406",
      "hours": "Open · Closes 4 PM",
      "reviewSnippet": "He finished in a timely manner and did a great job on the new water heater.",
      "hasWebsite": true,
      "cid": "17203130384750838411",
      "mapsUrl": "https://maps.google.com/?cid=17203130384750838411"
    }
  ]
}
```

### Uses

- **Local SEO agencies:** weekly rank reports per client, keyword and service area
- **Multi-location businesses:** compare every branch's visibility across ZIP codes
- **Competitor research:** who outranks you, with how many reviews and what rating
- **Lead generation:** local businesses in any category with phone and address
- **Pair it with** [Google Maps Scraper](https://apify.com/scrapemint/google-maps-scraper) for full place details and reviews

### Notes

- Your business is matched by name (any part of it, case-insensitive), phone number or Google CID. Add several values for multiple brands or branches.
- Google personalises local results by location, so results reflect the place in the query, not a GPS point.
- Rank history lives in a key-value store named `local-rank-tracker-history` in your own account.

### Pricing

- **$0.008** per keyword and location, for each 20 results read (depth 20 = $0.008, depth 60 = $0.024)
- No start fee. Pages that cannot be fetched are free.

# Actor input Schema

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

Searches your customers make, one per line, e.g. plumber, emergency plumber, water heater repair.

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

Cities, neighbourhoods or ZIP codes, one per line, e.g. Austin, TX / 78744 / Round Rock, TX. Every keyword runs for every location. A list of ZIP codes works as a coarse geo-grid.

## `yourBusiness` (type: `array`):

How to recognise your listing: its name (or part of it), its phone number, or its Google CID. Add several for multiple locations or brands. Leave empty to just collect the rankings.

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

20, 40 or 60 businesses per keyword and location. Each 20 is one charged page.

## `includeResults` (type: `boolean`):

Add every business checked (name, rating, reviews, category, address, phone, hours, CID). Off = just your rank and the top competitor, and reading stops at the page your listing is on.

## `trackChanges` (type: `boolean`):

Remember your last rank per keyword and location and add previousRank and rankChange. History lives in your named key-value store local-rank-tracker-history.

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

Two-letter country code (gl), e.g. us, gb, ca, au.

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

Interface language (hl), e.g. en, es, fr.

## Actor input object example

```json
{
  "keywords": [
    "plumber",
    "emergency plumber"
  ],
  "locations": [
    "Austin, TX"
  ],
  "yourBusiness": [
    "Reliant Plumbing"
  ],
  "depth": 20,
  "includeResults": true,
  "trackChanges": true,
  "country": "us",
  "language": "en"
}
```

# Actor output Schema

## `checks` (type: `string`):

Your rank, map pack yes/no, rank change, top competitor and the businesses checked.

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

Checks and pages read.

# 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",
        "emergency plumber"
    ],
    "locations": [
        "Austin, TX"
    ],
    "yourBusiness": [
        "Reliant Plumbing"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/google-local-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",
        "emergency plumber",
    ],
    "locations": ["Austin, TX"],
    "yourBusiness": ["Reliant Plumbing"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/google-local-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",
    "emergency plumber"
  ],
  "locations": [
    "Austin, TX"
  ],
  "yourBusiness": [
    "Reliant Plumbing"
  ]
}' |
apify call scrapemint/google-local-rank-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapemint/google-local-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/xzgMGc5Bk1bCO7fJD/builds/Mq1tzrVCMPxQ0FD1u/openapi.json
