# Google Maps Rank Tracker - Geo Grid for Local SEO (`scrape_api/google-maps-geogrid`) Actor

See where a business ranks in Google Maps on a grid of points around any location. Get the rank at each point, the top competitors on the spot and average position summaries for local SEO reporting.

- **URL**: https://apify.com/scrape_api/google-maps-geogrid.md
- **Developed by:** [Scrape_API](https://apify.com/scrape_api) (community)
- **Categories:** SEO tools, Marketing, Business
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 measured grid points

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 Maps Rank Tracker - Geo Grid for Local SEO

Google Maps Rank Tracker measures where one business appears on a grid of points around a location. Use it to compare local visibility around a branch, inspect the competing businesses at every point, and export a per-keyword summary for local SEO reporting.

A single search from the center of a city cannot describe visibility in every neighborhood. This Google Maps Rank Tracker repeats the same keyword at nearby coordinates, keeps the map zoom consistent, and reports the target business rank separately for each location. It also distinguishes a valid search where the business is absent from a point that could not be measured. That distinction makes the averages and the billed measurement count easier to interpret.

### Google Maps Rank Tracker input

Provide `keywords`, `center_lat`, `center_lng`, and either `place_id` or `business_name`. Coordinates are required; the actor does not convert a city name into a center. The recommended identifier is the exact Google place ID. Hexadecimal place identifiers and Google Maps URLs containing that identifier are also accepted.

When you supply a business name, matching starts at the center. The first matching business is locked for that keyword, so another branch of the same chain cannot replace it elsewhere on the grid. An exact normalized name is preferred before matching all name words. If several businesses qualify, the output includes a warning. Use a place identifier when selecting a particular branch matters.

Choose an odd `grid_size` between 3 and 15. The default is 5, which produces 25 points per keyword. `spacing` is the distance between neighboring points, rather than the radius of the whole grid. Its default is 1 kilometer; choose `distance_unit: mi` to use miles. Row zero is the north side, and column zero is the west side.

`zoom` controls the map viewport and defaults to 13. `max_rank` defaults to 20 and supports up to 100. `top_competitors` selects zero to twenty competitors per point, with three by default. Country `gl` and language `hl` affect the results. Language defaults to English. When country is omitted, the actor infers it from the first measured point and includes the chosen value in the output. Set it explicitly when comparing repeated scans.

A concrete starting input, taken from a recorded New York scan: keyword `dentist`, place ID `ChIJaT-yiqNYwokRjC18nrpyb60`, center latitude 40.758, longitude -73.9855, `grid_size` 3 and `spacing` 2. The observed business was Park Smiles NYC Cosmetic Dentistry. Those observations are a recorded snapshot from 2026-11-06, rather than a promise of the same future rankings.

### Output and visibility metrics

The dataset contains point rows and summary rows. Both `_type` and `record_type` identify the kind of row. Each point includes its keyword, coordinates, grid row and column, target rank, whether the target was found, and measurement status. Target identifiers and observed name accompany the results. The competitor list includes observed names, identifiers, positions, coordinates, ratings, review counts, and available address, website and phone fields. Missing source fields remain null.

A real point row from that New York scan looks like this (competitor list omitted here for readability; a delivered row carries up to twenty entries):

```json
{
  "_type": "grid_point",
  "keyword": "dentist",
  "place_id": "ChIJaT-yiqNYwokRjC18nrpyb60",
  "place_name": "Park Smiles NYC Cosmetic Dentistry",
  "row": 0,
  "col": 0,
  "lat": 40.776087,
  "lng": -74.009219,
  "distance_from_center": 2.834593226407664,
  "status": "measured",
  "rank": 1,
  "found": true,
  "target_rating": 4.7,
  "target_reviews_count": 574,
  "results_count": 20
}
```

Each keyword ends with one summary row over the whole grid:

```json
{
  "_type": "summary",
  "keyword": "dentist",
  "grid_size": 3,
  "spacing": 2,
  "arp": 2.125,
  "atrp": 4.222222222222222,
  "solv": 77.77777777777777,
  "points_total": 9,
  "points_measured": 9,
  "points_found": 8,
  "points_no_results": 0,
  "points_out_of_area": 0,
  "points_failed": 0
}
```

A `measured` point is a valid search, including a search where the target does not appear within `max_rank`. Such a miss has `rank: null` and `found: false`. Other statuses are `no_results`, `out_of_area`, and `failed`. These describe unavailable measurements and are excluded from ranking averages. Distances help distinguish nearby competitors from remote results in sparsely populated regions.

Points that cannot be measured do not disappear from the dataset. When some points fail after retries or come back with no places, the scan still returns their rows as diagnostics without a measurement event, sets `partial: true` on the run and adds a warning for each cause, for example "Some grid points could not be measured after retries". The scan only ends as `not_found` when every point of every keyword is genuinely empty, so a mixed scan of measured, empty and failed points keeps its summary. A summary with no measured point at all reports null for ARP, ATRP and SoLV.

ARP averages ranks only where the target was found. ATRP averages all valid measurements and assigns `max_rank + 1` to a miss. Share of local voice, `solv`, is the percentage of valid measurements where the target ranks in the top three. Summary counts show measured, found, empty, outside-area and failed points. A metric is null when no eligible observations exist.

### What teams use it for

Local SEO agencies produce a before-and-after visibility picture for a client: one scan before a campaign, one after it, and a grid image per keyword. Multi-location chains compare neighborhoods around each branch instead of a single city-center query. Freelancers check whether a new Google Business Profile listing reaches the local pack two streets away, and which competitors take those positions instead. Because every point row carries coordinates, rows feed straight into a map heatmap or a spreadsheet pivot without extra cleanup.

### Compared with other local rank trackers

Buyers usually consider a subscription dashboard first: Local Falcon, Semrush's Map Rank Tracker, BrightLocal and similar tools render a polished grid in their own interface. This actor is the data source alternative. You choose the grid, the keyword list and the country, the run delivers raw rows you own, and the bill follows the points you actually measured rather than a monthly seat. If you already keep reports in your own templates, a pay-per-scan Google Maps Rank Tracker that hands over the underlying rows tends to be cheaper than another dashboard seat and leaves no data behind in someone else's UI.

### Comparing results over time

Keep center coordinates, spacing, zoom, country, language, keyword and target identifier unchanged between scans. A geographic measurement can differ from Google Maps on a phone because a phone search can include personal and local signals. This actor measures the specified map location consistently; it does not recreate every individual user's search context. Rankings can also change as Google updates its results. Long-term repeatability over days and weeks has not been established. The effect of advertisements on the returned order has not been established either.

### Pricing and the limited trial

The billing unit is one successfully measured grid point for one keyword. A valid search with no matching target still counts because it establishes that the business was absent from the inspected results. Summary rows, failed points, empty source results, and outside-area points do not incur a measurement event. Consult the current Pricing tab for the active event price before starting a large scan.

For non-paying Apify users, the actor limits the scan to a three by three grid and rank twenty. This delivers nine point measurements and one summary for the first keyword. Larger requested grids are reduced before collection. Paying users can request the supported grid size and keyword list. The actor handles continuation automatically when the complete scan requires several requests.

### FAQ

#### Why is my business missing at some points?

A business can be visible near its location and fall outside the inspected ranks farther away. A null rank on a `measured` point means it was not found within your configured limit. Check country, language, zoom and the exact branch identifier before comparing scans.

#### Does a summary create another paid point?

No. The summary aggregates the existing measurements and does not create a measurement event. Diagnostic points that could not be measured also do not create that event.

#### Can I use a chain name instead of a place ID?

Yes, but a chain name can match several branches. The actor locks the first matching branch from the center for each keyword and warns about ambiguity. An exact place ID is the clearest way to select the intended location.

#### Can I export the scan for a client report?

Yes. Use Apify dataset exports such as JSON or CSV. Point rows support geographic visualizations; summary rows provide the keyword metrics. Include unavailable-point counts so readers can judge how complete the scan was.

#### How big should the grid be?

A three by three grid answers "is this branch visible nearby". A five by five grid, the default, is the usual reporting size: 25 points per keyword. Larger grids show how far visibility reaches, at the price of one measurement event per point and keyword.

# Actor input Schema

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

Search keywords to measure at every grid point. Each keyword produces its own summary.

## `place_id` (type: `string`):

Recommended: exact Google ChIJ place ID, hexadecimal fid, or a Google Maps URL containing a fid.

## `business_name` (type: `string`):

Business name used when place_id is absent. The first matching branch from the center is locked per keyword.

## `center_lat` (type: `number`):

Grid center latitude.

## `center_lng` (type: `number`):

Grid center longitude.

## `grid_size` (type: `integer`):

Odd number of points per side, from 3 to 15. A 5 by 5 grid contains 25 points. Allowed values: 3, 5, 7, 9, 11, 13, 15.

## `spacing` (type: `number`):

Distance between neighboring grid points, in distance_unit.

## `distance_unit` (type: `string`):

Unit for spacing and distance_from_center; competitor distances are always kilometers.

## `zoom` (type: `integer`):

Map viewport zoom. Keep zoom fixed when comparing scans.

## `max_rank` (type: `integer`):

Maximum rank to consider found. A valid measurement without the target is still billable.

## `top_competitors` (type: `integer`):

Number of competing places per point, excluding the locked target business.

## `hl` (type: `string`):

Google Maps language code; this affects the search results.

## `gl` (type: `string`):

Two-letter country code. If omitted it is inferred once from the first measured point; set explicitly for repeatable scans.

## `cursor` (type: `string`):

Opaque next_cursor from the previous response. Resend all original scan fields unchanged.

## Actor input object example

```json
{
  "keywords": [
    "dentist"
  ],
  "place_id": "ChIJaT-yiqNYwokRjC18nrpyb60",
  "center_lat": 40.758,
  "center_lng": -73.9855,
  "grid_size": 5,
  "spacing": 1,
  "distance_unit": "km",
  "zoom": 13,
  "max_rank": 20,
  "top_competitors": 3,
  "hl": "en",
  "gl": "us"
}
```

# Actor output Schema

## `results` (type: `string`):

Grid point rows and per-keyword summary rows produced by this run.

## `output` (type: `string`):

Delivered rows, charges, free-tier status, warnings and the next cursor.

# 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": [
        "dentist"
    ],
    "place_id": "ChIJaT-yiqNYwokRjC18nrpyb60",
    "center_lat": 40.758,
    "center_lng": -73.9855,
    "gl": "us"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrape_api/google-maps-geogrid").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": ["dentist"],
    "place_id": "ChIJaT-yiqNYwokRjC18nrpyb60",
    "center_lat": 40.758,
    "center_lng": -73.9855,
    "gl": "us",
}

# Run the Actor and wait for it to finish
run = client.actor("scrape_api/google-maps-geogrid").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": [
    "dentist"
  ],
  "place_id": "ChIJaT-yiqNYwokRjC18nrpyb60",
  "center_lat": 40.758,
  "center_lng": -73.9855,
  "gl": "us"
}' |
apify call scrape_api/google-maps-geogrid --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrape_api/google-maps-geogrid"
        }
    }
}
```

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/qXceZkhfPdQGbj66s/builds/Brmt86IWQPkbj3i9C/openapi.json
