# Google Maps Rank Tracker — Geographic Grid Rankings (`sian.agency/google-maps-grid-rank-tracker`) Actor

Measure a business’s Google Maps rank at each point in a geographic grid. Export ranks, not-found observations, coordinates, and the full competing-business list for each point. Includes grid summary metrics and an HTML report. One completed grid point is one billable record.

- **URL**: https://apify.com/sian.agency/google-maps-grid-rank-tracker.md
- **Developed by:** [SIÁN OÜ](https://apify.com/sian.agency) (community)
- **Categories:** Marketing, Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $55.00 / 1,000 grid rankings

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

## Google Maps Rank Tracker — Local Grid Rankings 📍

[![SIÁN Agency Store](https://img.shields.io/badge/Store-SI%C3%81N%20Agency-1AE392)](https://apify.com/sian.agency?fpr=sian) [![Local Business Data Scraper](https://img.shields.io/badge/Store-Local%20Business%20Data%20Scraper-1AE392)](https://apify.com/sian.agency/local-business-data-scraper?fpr=sian) [![Google Search Scraper](https://img.shields.io/badge/Store-Google%20Search%20Scraper-4285F4)](https://apify.com/sian.agency/google-serp-scraper?fpr=sian) [![Google Maps Photos Scraper](https://img.shields.io/badge/Store-Google%20Maps%20Photos%20Scraper-4285F4)](https://apify.com/sian.agency/google-maps-photos-scraper?fpr=sian)

#### 🔲 Check a business's rank at 9–225 geographic grid points

##### Local rank tracking for SEO agencies, consultants and business owners

### 🔎 What is the Google Maps Rank Tracker — and when should you use it?

The **Google Maps Rank Tracker** turns geographic grid ranks for one Google Maps business and keyword into clean, structured rows you can filter, export and feed straight into a spreadsheet, database or AI agent. No account, no portal API key, no browser automation to maintain.

**Use it when you need:** found/absent observations, ranks, coordinates and competing businesses at each grid point.

**Use something else when:** you want ordinary Google web rankings by city. Use [Google Search Scraper](https://apify.com/sian.agency/google-serp-scraper?fpr=sian) for keyword-based organic web results. This actor measures Maps rankings on a square grid; it accepts one business and keyword per run.

### 🤖 Use with AI agents

Already connected to the [Apify MCP server](https://mcp.apify.com)? Just ask for this Actor by name: sian.agency/google-maps-grid-rank-tracker

**Your agent can pay for its own runs.** This Actor is eligible for [agentic payments](https://docs.apify.com/platform/actors/publishing/monetize), so an agent can discover it, run it and settle the bill over [x402](https://www.x402.org/) (USDC on Base) or [Skyfire](https://www.skyfire.xyz/) — without an Apify account or API token of its own. Each returned grid point is charged once, including not-found observations. The complete grid must fit the billing limit. Failed retrievals have no point-event charge; a run-start fee applies.

Otherwise copy this prompt into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```text
I want a local Maps rank grid and competing-business context using the Apify Actor `sian.agency/google-maps-grid-rank-tracker`.

Use it when I need: found/absent observations, ranks, coordinates and competing businesses at each grid point.

Don't use it when: you want ordinary Google web rankings by city — use google-serp-scraper instead.

How to call it: set operation to grid, supply query, placeId, latitude and longitude, then choose gridSize, distance and distanceUnits. Read one record per completed point and its businesses array.

Start with this input:
{
  "operation": "grid",
  "query": "web design",
  "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
  "latitude": 37.341759,
  "longitude": -121.938314,
  "gridSize": "3",
  "distance": 1,
  "distanceUnits": "km"
}

Ask me which Google Place ID, keyword and geographic center they want checked, then run the Actor and summarise the results as a table.
```

**Things you can ask your agent for:**

- *Track this business for web design around its service area.*
- *Compare the businesses outranking this Place ID on a 3×3 grid.*
- *Export a rank grid and flag points where the target was not found.*

Machine-readable API, MCP config and OpenAPI definition for this Actor are published at [apify.com/sian.agency/google-maps-grid-rank-tracker.md](https://apify.com/sian.agency/google-maps-grid-rank-tracker.md).

### 📋 Overview

Google Maps Rank Tracker checks where one business appears for one keyword across a square geographic grid. Each row records a search coordinate, the business's rank and the competing businesses returned there.

A single search near your office can miss changes a few streets away. Use the grid to compare those locations, then export the observations for your own reporting.

- ✅ **Point-level visibility**: Keep coordinates, ranks and absent results together.
- 📍 **Adjustable area**: Choose 3×3 through 15×15 grids with kilometer or mile spacing.
- 🏢 **Competitor context**: Inspect the complete returned business list at each point.
- 💵 **Clear billing unit**: One completed grid point is one event, even when your business is absent.
- 📊 **Summary metrics**: Review the found percentage, average ranks and top-three percentage.

Coverage has been verified for "web design" in San Jose, California. Other areas depend on Google Maps coverage. Rankings are snapshots and may change between runs.

### ✨ Features

- 🔎 **One keyword per scan**: Compare the same search phrase across a local area.
- 🏢 **Place ID matching**: Track a specific business rather than matching a name.
- 🔲 **Seven square grid sizes**: Paying accounts can choose 9, 25, 49, 81, 121, 169 or 225 points.
- ↔️ **Point spacing**: Set the distance between neighboring points in kilometers or miles.
- 🧭 **Coordinate-level records**: Use zero-based grid row and column positions alongside latitude and longitude.
- 🚫 **Not-found observations**: Preserve absent results as `found=false` and `rank=-1`.
- 🥇 **Competing businesses**: Keep ranks, names, Maps links and other available business details in nested JSON.
- 📄 **Exports and report**: Download dataset records and review the run's HTML processing report.

### 🎬 Quick Start

Open the actor's Input tab and run the supplied Baunfire example. It checks "web design" around the chosen San Jose center on a 3×3 grid. Replace the business, keyword and center before scanning your own area.

```bash
curl --request POST \
  'https://api.apify.com/v2/acts/sian.agency~google-maps-grid-rank-tracker/runs?token=YOUR_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{"operation":"grid","query":"web design","placeId":"ChIJoejvAr3Mj4ARtHrbKxtAHXI","latitude":37.341759,"longitude":-121.938314,"gridSize":"3","distance":1,"distanceUnits":"km"}'
```

This starts a run and returns its metadata. Use the dataset ID from the completed run to retrieve the point records. API callers must provide the keyword, Place ID and both center coordinates; an empty input does not run the Console example.

### 🚀 Getting Started (3 Simple Steps)

#### Step 1: Identify your business and keyword

Enter the business's Google Place ID and the search phrase to check. A Maps URL, business name or street address cannot replace the Place ID.

#### Step 2: Choose the grid area

Enter center latitude and longitude, select a grid size, and set point spacing. Start with 3×3 and 1 km if those settings suit your area. That grid spans about 2 km per side.

#### Step 3: Run and inspect the results

Check that the maximum charge covers the full grid and run-start fee, then start the actor. Open the Dataset tab for point records and the Output tab for the processing report. Export JSON to retain the nested competing-business lists.

### 📥 Input Configuration

| Field | Type | Required | Description |
|---|---|---|---|
| `operation` | string | No | Only `grid` is supported; it is the default. |
| `query` | string | Yes | One Google Maps search phrase. |
| `placeId` | string | Yes | Google Place ID of the business to track. |
| `latitude` | number | Yes | Grid center latitude, −85 to 85. |
| `longitude` | number | Yes | Grid center longitude, −180 to 180. |
| `gridSize` | string | No | `3`, `5`, `7`, `9`, `11`, `13` or `15`; default `3`. |
| `distance` | number | No | Neighboring-point spacing, 0.1–100; default 1. |
| `distanceUnits` | string | No | `km` or `mi`; default `km`. |

**Example:**

```json
{
  "operation": "grid",
  "query": "web design",
  "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
  "latitude": 37.341759,
  "longitude": -121.938314,
  "gridSize": "3",
  "distance": 1,
  "distanceUnits": "km"
}
```

The four fields required for the grid operation have Console prefills but no API defaults. `gridSize` is a string in the input. Free Apify accounts can run 3×3 grids; paying accounts can use every listed size.

**Distance is point spacing, not a radius.** A 5×5 grid with 1 km spacing spans about 4 km per side. The center can differ from your business's address. This version accepts one business and one keyword per run; use separate runs for more.

### 📤 Output

A completed 3×3 scan returns nine point rows. A business absent from the returned list still has a completed point row. Retrieval failures use an error record and do not generate a grid-point charge.

| Field | Type | Description |
|---|---|---|
| `query` / `placeId` | string | Search phrase and tracked business identifier. |
| `latitude` / `longitude` | number | This point's search coordinates, not the business address. |
| `gridRow` / `gridColumn` | integer | Zero-based position in the square grid. |
| `found` | boolean | Whether the tracked Place ID appears in the returned list. |
| `rank` | integer | Target rank; −1 means absent from the returned results. |
| `resultCount` | integer | Number of competing businesses returned at this point. |
| `businesses` | array | Complete returned business list, including the target if found. |
| `targetName` | string or null | Tracked business name when available. |
| `topBusinessName` / `topBusinessUrl` | string or null | First-ranked business and its Google Maps link. |
| `gridSize` / `distance` / `distanceUnits` | number / number / string | Scan settings; output grid size is numeric. |
| `gridSummary` | object | Summary metrics for the complete grid, repeated on point rows. |
| `status` / `errorMessage` | string / string or null | Outcome and any retrieval failure explanation. |
| `_operation` / `_fetchedAt` | string | Operation name and retrieval timestamp. |

Business objects may contain rank, Place ID, name, coordinates, address, country, reviews, rating, phone number, website, Maps link, verification status, business status, categories and identifiers. Availability varies by business. Some fields can be null.

**Recorded example, shortened to the first business in the list:**

```json
{
  "query": "web design",
  "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
  "latitude": 37.35074220495337,
  "longitude": -121.94961317961044,
  "gridRow": 0,
  "gridColumn": 0,
  "found": true,
  "rank": 3,
  "resultCount": 20,
  "businesses": [
    {
      "rank": 1,
      "place_id": "ChIJaX7WMV3Lj4ARD8HHKvim9y0",
      "name": "Arkido Web Service - Website Designers Santa Clara California",
      "lat": 37.347752,
      "lng": -121.9466222,
      "address": "890 Jackson St, Santa Clara, CA 95050",
      "sab": false,
      "place_link": "https://www.google.com/maps/place/data=!3m1!4b1!4m2!3m1!1s0x808fcb5d31d67e69:0x2df7a6f82ac7c10f",
      "country": "US",
      "reviews": 6,
      "rating": 5,
      "phone_number": "+917042128686",
      "website": "https://www.arkidoweb.com/website-designers-santa-clara",
      "verified": true,
      "business_status": "OPEN",
      "subtypes": [
        "Website designer",
        "Branding agency",
        "Design agency",
        "Graphic designer",
        "Marketing agency",
        "Web hosting company"
      ],
      "cid": "3312299635754123535",
      "google_id": "0x808fcb5d31d67e69:0x2df7a6f82ac7c10f"
    }
  ],
  "targetName": "Baunfire",
  "topBusinessName": "Arkido Web Service - Website Designers Santa Clara California",
  "topBusinessUrl": "https://www.google.com/maps/place/data=!3m1!4b1!4m2!3m1!1s0x808fcb5d31d67e69:0x2df7a6f82ac7c10f",
  "gridSize": 3,
  "distance": 1,
  "distanceUnits": "km",
  "gridSummary": {
    "points": 9,
    "found": 8,
    "found_percent": 88.8889,
    "average_rank": 3.5,
    "average_total_rank": 5.4444,
    "top_3_rank_percent": 55.5556
  },
  "status": "success",
  "errorMessage": null,
  "_operation": "grid"
}
```

The actual first point contained 20 businesses; the shortened example shows one. The complete scan found Baunfire at eight of nine points. Those recorded ranks illustrate the output format, not a prediction for your next run. Error rows may omit ranking fields.

JSON preserves nested arrays and summary objects. CSV and Excel suit the point-level columns; nested data may appear as text. The HTML report summarizes processing and charges. It does not include an interactive ranking heatmap.

### 💼 Use Cases & Examples

#### 1. SEO agencies preparing local rank reports

**Input:** A client's Place ID, service keyword and reporting area.
**Output:** One rank observation per point with found status and coordinates.
**Use:** Explain where the client appears across a neighborhood instead of relying on one search location.

#### 2. Consultants auditing a Google Business Profile

**Input:** The business identifier and a search phrase customers use.
**Output:** Found and absent observations plus the competing-business lists.
**Use:** Document a starting snapshot before changing the client's profile or website.

#### 3. Franchise managers reviewing branches

**Input:** A separate Place ID and grid center for each branch.
**Output:** Consistent point records from individual runs.
**Use:** Compare branch visibility with the same keyword, grid size and spacing.

#### 4. Marketers researching local competitors

**Input:** A target business and relevant keyword.
**Output:** Ranked business lists with available names, reviews, ratings and Maps links.
**Use:** Identify businesses that appear ahead of the target at particular coordinates.

#### 5. Business owners exploring service areas

**Input:** Several centers in separate runs, with suitable spacing.
**Output:** Rank snapshots for each sampled area.
**Use:** Review visibility in the neighborhoods you serve. Rankings alone do not establish demand.

#### 6. Analysts maintaining historical snapshots

**Input:** The same saved input on a recurring schedule.
**Output:** Exportable point records and retrieval timestamps.
**Use:** Join snapshots in your database or spreadsheet to compare changes over time.

### 🔗 Integration Examples

#### JavaScript / Node.js

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('sian.agency/google-maps-grid-rank-tracker').call({
  operation: 'grid',
  query: 'web design',
  placeId: 'ChIJoejvAr3Mj4ARtHrbKxtAHXI',
  latitude: 37.341759,
  longitude: -121.938314,
  gridSize: '3',
  distance: 1,
  distanceUnits: 'km',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient('YOUR_TOKEN')
run = client.actor('sian.agency/google-maps-grid-rank-tracker').call(
    run_input={
        'operation': 'grid',
        'query': 'web design',
        'placeId': 'ChIJoejvAr3Mj4ARtHrbKxtAHXI',
        'latitude': 37.341759,
        'longitude': -121.938314,
        'gridSize': '3',
        'distance': 1,
        'distanceUnits': 'km',
    }
)
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

#### cURL: retrieve a completed run's dataset

```bash
curl 'https://api.apify.com/v2/datasets/YOUR_DATASET_ID/items?format=json&clean=true&token=YOUR_TOKEN'
```

Use the run-start request in Quick Start, wait for completion, then replace YOUR_DATASET_ID with that run's default dataset ID.

#### Automation Workflows (N8N / Zapier / Make)

1. **Trigger:** Schedule a scan with a saved keyword, Place ID and area.
2. **HTTP Request:** Start the actor with the JSON input above.
3. **Process:** Wait for the run to finish and retrieve its dataset.
4. **Action:** Save point records to a spreadsheet or database, then send your own report.

### 📊 Performance & Pricing

One completed point costs one **grid-point** event. The competing-business list and summary do not add events. A completed point where `found=false` and `rank=-1` is billable because it records the result of that search.

Failed retrievals have no grid-point charge. Each run has a separate run-start fee, including runs that stop before retrieval. The full selected grid must fit the remaining billing budget before the scan begins.

| Apify plan | Price per completed point | Run-start fee | Completed 3×3 scan |
|---|---:|---:|---:|
| FREE | $0.25 | $0.02 | $2.27 |
| BRONZE | $0.0625 | $0.005 | $0.5675 |
| SILVER | $0.05875 | $0.005 | $0.53375 |
| GOLD | $0.055 | $0.005 | $0.50 |
| PLATINUM | $0.055 | $0.005 | $0.50 |
| DIAMOND | $0.055 | $0.005 | $0.50 |

These scan totals equal nine point events plus the run-start fee at the default 256 MB memory. Larger memory allocations increase the run-start event count. FREE refers to the Apify account plan; this actor's events still have the listed prices. Free accounts can use 3×3, while paying accounts can select up to 15×15.

There is no promised completion time. Larger grids cover more points and cost more. [Check current pricing before a run](https://apify.com/sian.agency/google-maps-grid-rank-tracker?fpr=sian).

### ❓ Frequently Asked Questions

**What does rank −1 mean?**

The tracked Place ID was absent from the returned business list at that point. It does not prove the business is missing from Google Maps. This completed observation is billable.

**How many points can I check?**

A 3×3 grid has nine points. Paying accounts can choose 5×5, 7×7, 9×9, 11×11, 13×13 or 15×15, up to 225 points. Free accounts can use 3×3.

**Is distance the scan radius?**

No. It is spacing between neighboring points. A 3×3 grid with 1 km spacing spans about 2 km per side.

**Can I check several businesses or keywords together?**

Each run accepts one Place ID and one keyword. Use separate inputs and runs for additional businesses, locations or phrases.

**Will this match everyone's Google Maps screen?**

Google Maps results depend on the search location and phrase, and they change over time. Treat the rows as observations for the selected points. They do not guarantee a particular customer's view or future rank.

**Does it produce an interactive heatmap?**

It returns coordinates and rank data you can chart in your own tools. The included HTML report summarizes the run; it has no interactive heatmap.

**What happens if my maximum charge is too low?**

The actor stops before retrieving a grid that cannot fit the remaining point budget. Review the chosen size and pricing, then increase the limit before starting another run. The run-start fee still applies.

**Can I export the results?**

Yes. Use Apify's dataset exports for JSON, CSV or Excel, or retrieve rows through the API. Choose JSON when you need the complete nested business lists.

### 🐛 Troubleshooting

**The business is absent at every point**

Check the Place ID, keyword and center coordinates. Try an area relevant to the business. A completed all-absent grid is a valid result and has point charges.

**The input is rejected**

Supply the keyword, Place ID, latitude and longitude. Use an allowed string for `gridSize` and either `km` or `mi` for units. Check the numeric ranges in the input table.

**The area is too large or too small**

Adjust spacing as well as grid size. Spacing is the gap between adjacent points; it is not the full scan radius.

**The scan stops before retrieval**

Read the report for the reason. Check the maximum charge, account allowance and selected grid size before retrying. Free accounts can use 3×3.

**The service is temporarily unavailable**

Review the run's error message. Wait a few minutes before starting another run. The actor does not automatically retry a data scan.

### ⚖️ Legal Disclaimer

Results concern public business listings. They can include business addresses, phone numbers and other information that may identify people. Use the data for a legitimate purpose and follow applicable privacy rules and service terms.

For legal background, see [Apify's explanation of web scraping legality](https://blog.apify.com/is-web-scraping-legal/). Consult qualified counsel when you need advice for your use case.

Google and Google Maps are trademarks of Google LLC. SIÁN Agency is independent and is not affiliated with or endorsed by Google.

### 🤝 Support

For questions or reproducible issues, use the actor's [Issues tab](https://apify.com/sian.agency/google-maps-grid-rank-tracker/issues). Include the input and run URL, with sensitive information removed.

- 🛠️ [SIÁN Agency Store](https://apify.com/sian.agency?fpr=sian)
- 📧 <apify@sian-agency.online>

**Built by [SIÁN Agency](https://www.sian-agency.online)** | **[More Tools](https://apify.com/sian.agency?fpr=sian)**

# Changelog

This Actor's version history is a separate document: https://apify.com/sian.agency/google-maps-grid-rank-tracker/changelog.md

# Actor input Schema

## `operation` (type: `string`):

Check one keyword and one Google Place ID on a square geographic grid. One output row contains that grid point’s target rank, found status and complete competing-business list. A business absent from the returned results is a completed observation, not a retrieval failure.

## `query` (type: `string`):

Keyword customers would search in Google Maps, such as web design or plumber. Required together with a Google Place ID and grid center coordinates. The Console example is ready to run; API callers must supply their own keyword.

## `placeId` (type: `string`):

Google Place ID of the business whose rank you want to track. The example tracks Baunfire in San Jose. This is an identifier, not a Maps URL, name or address. A business absent from the returned results is recorded with found=false and rank=-1.

## `latitude` (type: `number`):

Latitude of your grid center, between −85 and 85. Enter this with longitude. This center defines where searches occur; it need not equal the business’s address. API callers must provide both coordinates.

## `longitude` (type: `number`):

Longitude of the grid center, between −180 and 180. Together with latitude, distance and grid size this defines your local ranking scan. API callers must provide both coordinates.

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

Square grid dimensions. Billing is per completed grid point: 3×3 means nine events, 5×5 means 25. Free Apify accounts can use 3×3; paying accounts can use all supported sizes. Larger selections require enough run budget for the complete grid.

## `distance` (type: `number`):

Distance between neighboring points in each grid row or column, from 0.1 to 100. This is point spacing, not the radius of the whole scan. Choose the measurement unit below. For example, a 3×3 grid with spacing 1 km spans about 2 km per side.

## `distanceUnits` (type: `string`):

Unit for the distance between grid points. Choose kilometers or miles. The selected unit affects the geographic area searched and is included in every returned record.

## Actor input object example

```json
{
  "operation": "grid",
  "query": "web design",
  "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
  "latitude": 37.341759,
  "longitude": -121.938314,
  "gridSize": "3",
  "distance": 1,
  "distanceUnits": "km"
}
```

# Actor output Schema

## `googleMapsGridPoints` (type: `string`):

Google Maps grid ranking observations for a specific keyword and business. rank=-1 means the target was absent from the returned results. businesses preserves the full ranked list at each point; use JSON to retain nested data.

## `scrapingSummary` (type: `string`):

HTML summary showing successful and failed results with key metrics

# 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 = {
    "operation": "grid",
    "query": "web design",
    "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
    "latitude": 37.341759,
    "longitude": -121.938314,
    "gridSize": "3",
    "distance": 1,
    "distanceUnits": "km"
};

// Run the Actor and wait for it to finish
const run = await client.actor("sian.agency/google-maps-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 = {
    "operation": "grid",
    "query": "web design",
    "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
    "latitude": 37.341759,
    "longitude": -121.938314,
    "gridSize": "3",
    "distance": 1,
    "distanceUnits": "km",
}

# Run the Actor and wait for it to finish
run = client.actor("sian.agency/google-maps-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 '{
  "operation": "grid",
  "query": "web design",
  "placeId": "ChIJoejvAr3Mj4ARtHrbKxtAHXI",
  "latitude": 37.341759,
  "longitude": -121.938314,
  "gridSize": "3",
  "distance": 1,
  "distanceUnits": "km"
}' |
apify call sian.agency/google-maps-grid-rank-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sian.agency/google-maps-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/JrhnSuqOIsvyV7HB9/builds/vf8XRVckV1PcalMeS/openapi.json
