# Local Rank Grid – Google Maps Rank by Location (`publicrows/geo-grid-rank-tracker`) Actor

Your Google Maps rank from each point of a 3 × 3 to 11 × 11 grid around the business: one row per keyword and point with rank, rating, review count, the top result and the top 3, as CSV or JSON. Licensed live Maps data, no scraping. $0.012 a point, first 9 free.

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

## Pricing

from $8.40 / 1,000 grid point scanneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Local Rank Grid – Google Maps Rank by Location

Your Google Maps rank from each point of a 3 × 3 to 11 × 11 grid around the business: one row per keyword and point with rank, rating, review count, the top result and the top 3, as CSV or JSON. Licensed live Maps data, no scraping. $0.012 a point, first 9 free.

### Who this is for

Local SEO agencies reporting map-pack visibility to clients, multi-location businesses checking where each branch wins and loses, and anyone who wants the geo-grid view that local rank tools charge monthly for, as rows they own.

### Sample output

```json
{
  "keyword": "coffee shop",
  "business_name": "Gumption Coffee",
  "business_cid": null,
  "point_index": 5,
  "point_row": 2,
  "point_col": 2,
  "point_lat": 40.758,
  "point_lng": -73.9855,
  "distance_km": 0,
  "business_found": true,
  "business_rank": 3,
  "business_title": "Gumption Coffee",
  "business_rating": 4.5,
  "business_reviews": 318,
  "top_1_title": "Le Parisien Bakery",
  "top_1_rating": 4.8,
  "top_3_titles": "[\"Le Parisien Bakery\",\"787 coffee\",\"Gumption Coffee\"]",
  "results_count": 20,
  "google_maps_url": "https://google.com/maps/search/coffee+shop/@40.758,-73.9855,15z?hl=en&gl=US&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
  "checked_at": "2026-11-15T13:45:47.000Z",
  "row_key": "coffee shop|2-2",
  "source_url": "https://dataforseo.com/apis/serp-api"
}
```

### What you get

One row per keyword. Every row also carries `_source` (attribution) and the recipe version.

| Field | Type |
| --- | --- |
| `keyword` | string, always present |
| `business_name` | string |
| `business_cid` | string |
| `point_index` | number, always present |
| `point_row` | number |
| `point_col` | number |
| `point_lat` | number, always present |
| `point_lng` | number, always present |
| `distance_km` | number |
| `business_found` | boolean |
| `business_rank` | number |
| `business_title` | string |
| `business_rating` | number |
| `business_reviews` | number |
| `top_1_title` | string |
| `top_1_rating` | number |
| `top_3_titles` | string |
| `results_count` | number |
| `google_maps_url` | url |
| `checked_at` | datetime |
| `row_key` | string, always present |
| `source_url` | string |

Every row is one live Google Maps search at one grid point, bought through the DataForSEO SERP API under its licence; the actor never scrapes Google. The grid is `gridSize` × `gridSize` points centred on `latitude`,`longitude` and `spacingKm` apart; `point_row` counts from the north, `point_col` from the west, and `distance_km` is the point's distance from the centre.

`business_rank` is the tracked business's position among the local results at that point (up to 20 are read), `business_found` is false when it is not among them, and `top_1_title`, `top_1_rating` and `top_3_titles` show who wins there instead. Match by `cid` for an exact hit, or by `businessName` as a case-insensitive substring.

Each point costs $0.012 and the first 9 rows of every run are free, so a 3 × 3 check costs nothing; a 7 × 7 scan is $0.59 and a 9 × 9 scan $0.97 per keyword. Scans run one point at a time with a short pause, about a minute for 49 points. A weekly schedule with the same inputs gives you the trend.

Bring your own DataForSEO credentials in the two optional inputs if you prefer the supplier charge on your own account; the row price here stays the same either way.

### Pricing

Pay per keyword: $0.012 each ($12.00 per 1,000). The first 9 rows of every run are free, so a test costs nothing.

### How to run

1. Keep the defaults for the standard sample, or set the inputs (listed last, below).
2. Run. Results land in the dataset as JSON, CSV or Excel.
3. From code or an agent: call it through the API, or as an MCP tool via mcp.apify.com.

### Source and fair use

Data: Google Maps results through the DataForSEO SERP API, licensed. The data is bought from the supplier under its API terms on every run; nothing is scraped from any website. Rows are facts about keywords, and no personal data of individuals is included.

### FAQ

**How fresh is the data?** Each run fetches live from the source.
**Can I get more fields?** Open an issue naming the field and where it appears at the source.
**Something broke?** Open an issue. Issues are answered within 12 hours.
**Found it useful?** A short review on this page helps other people find it, and tells us what to improve.

### Inputs

- `keywords`: What a customer would search on Google Maps, one per line ("coffee shop", "emergency plumber"). Each keyword is scanned over the whole grid.
- `businessName`: The business to track, as its name appears on Google Maps. Matched case-insensitively as a substring, so "Gumption" finds "Gumption Coffee".
- `cid`: Optional Google Maps CID of the business (the number after cid= in a Maps share link). Exact and safer than the name when several businesses share it.
- `latitude`: Centre of the grid in decimal degrees, usually the business location (40.7580).
- `longitude`: Centre of the grid in decimal degrees (-73.9855).
- `gridSize`: Points per side. 5 × 5 covers a neighbourhood, 7 × 7 or 9 × 9 a town; each point is one lookup.
- `spacingKm`: Distance between neighbouring points.
- `language`: Language of the Maps results.
- `sandbox`: Use the supplier's test environment: same row structure, dummy data, no supplier charge. For wiring tests only.
- `dfsLogin`: Optional: your own DataForSEO API login (the account e-mail). Leave empty to use ours.
- `dfsPassword`: Optional: your own DataForSEO API password. Leave empty to use ours.
- `maxItems`: Stop after this many rows.

# Actor input Schema

## `keywords` (type: `string`):

What a customer would search on Google Maps, one per line ("coffee shop", "emergency plumber"). Each keyword is scanned over the whole grid.

## `businessName` (type: `string`):

The business to track, as its name appears on Google Maps. Matched case-insensitively as a substring, so "Gumption" finds "Gumption Coffee".

## `cid` (type: `string`):

Optional Google Maps CID of the business (the number after cid= in a Maps share link). Exact and safer than the name when several businesses share it.

## `latitude` (type: `string`):

Centre of the grid in decimal degrees, usually the business location (40.7580).

## `longitude` (type: `string`):

Centre of the grid in decimal degrees (-73.9855).

## `gridSize` (type: `string`):

Points per side. 5 × 5 covers a neighbourhood, 7 × 7 or 9 × 9 a town; each point is one lookup.

## `spacingKm` (type: `string`):

Distance between neighbouring points.

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

Language of the Maps results.

## `sandbox` (type: `boolean`):

Use the supplier's test environment: same row structure, dummy data, no supplier charge. For wiring tests only.

## `dfsLogin` (type: `string`):

Optional: your own DataForSEO API login (the account e-mail). Leave empty to use ours.

## `dfsPassword` (type: `string`):

Optional: your own DataForSEO API password. Leave empty to use ours.

## `maxItems` (type: `integer`):

Stop after this many rows.

## Actor input object example

```json
{
  "keywords": "coffee shop",
  "businessName": "Gumption Coffee",
  "cid": "",
  "latitude": "40.7580",
  "longitude": "-73.9855",
  "gridSize": "3",
  "spacingKm": "0.5",
  "language": "en",
  "sandbox": false,
  "maxItems": 2000
}
```

# Actor output Schema

## `rows` (type: `string`):

Dataset items, one per keyword (keyword, business_name, business_cid, point_index, point_row, point_col, point_lat, point_lng, distance_km, business_found, business_rank, business_title, business_rating, business_reviews, top_1_title, top_1_rating, top_3_titles, results_count, google_maps_url, checked_at, row_key, source_url). Append ?format=csv or ?format=xlsx for other formats.

## `runSummary` (type: `string`):

Pages fetched, response classes, cost estimate and the quality-gate checks for this run.

# 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": "coffee shop",
    "businessName": "Gumption Coffee",
    "cid": "",
    "latitude": "40.7580",
    "longitude": "-73.9855",
    "gridSize": "3",
    "spacingKm": "0.5",
    "language": "en",
    "maxItems": 2000
};

// Run the Actor and wait for it to finish
const run = await client.actor("publicrows/geo-grid-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": "coffee shop",
    "businessName": "Gumption Coffee",
    "cid": "",
    "latitude": "40.7580",
    "longitude": "-73.9855",
    "gridSize": "3",
    "spacingKm": "0.5",
    "language": "en",
    "maxItems": 2000,
}

# Run the Actor and wait for it to finish
run = client.actor("publicrows/geo-grid-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": "coffee shop",
  "businessName": "Gumption Coffee",
  "cid": "",
  "latitude": "40.7580",
  "longitude": "-73.9855",
  "gridSize": "3",
  "spacingKm": "0.5",
  "language": "en",
  "maxItems": 2000
}' |
apify call publicrows/geo-grid-rank-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,publicrows/geo-grid-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/euoPhwyPEm5ctx50h/builds/q2rUj0ebHJxeb5IWy/openapi.json
