# Google Maps Business Leads & Changes API (`solidscrape/google-maps-business-leads`) Actor

Find businesses, extract source-linked website contacts, and compare repeat searches for new and changed records. Strict spending, result and time limits.

- **URL**: https://apify.com/solidscrape/google-maps-business-leads.md
- **Developed by:** [SolidScrape](https://apify.com/solidscrape) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 82.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 business checkeds

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 Business Leads & Changes API

Find business listings, extract website contact details with source URLs, and compare repeat searches for new or updated records. Run through the Apify API or Console and export JSON or CSV.

### What you receive

- Stable business identifiers based on Google's feature ID, with place ID retained when available.
- Name, address, phone, website, categories, coordinates, rating and review count when Google provides them.
- Business email addresses and social links from up to three HTML pages. Every email includes its source URL. Email deliverability is **not verified**.
- `baseline`, `new`, `updated` or `unchanged` change status, with field-level previous/current values.
- Search diagnostics, contact extraction status, observation timestamps and explicit stop reasons.

### Quick start

```json
{
  "searchQueries": ["coffee shops in Brooklyn, New York"],
  "maxItems": 20,
  "enrichContacts": true,
  "maxSearchRequests": 3,
  "maxSpendUsd": 0.25
}
```

For a repeat check, pass the previous run's `defaultKeyValueStoreId` as `previousSnapshotStoreId`. Keep the same searches, locale, center, result/request limits and enrichment settings. `changesOnly: true` suppresses unchanged rows from the output dataset; **unchanged businesses are still checked, billed and saved in SNAPSHOT**.

The first run creates a baseline, not a list of newly opened businesses. A business newly appearing in search is `new` to your saved baseline; this does not establish its opening date. Businesses absent from a repeat search appear in `NOT_SEEN`, never automatically as deleted or closed. Missing upstream fields and failed contact checks do not erase previously known data in change comparisons.

Change detection compares name, address, phone, website, rating, review count, hours and eligible contact observations. Google category lists are returned but excluded from change alerts because their subsets can vary with the search response. Changes describe observed source values, not independent confirmation that the business itself changed. `comparisonStatus: partial` identifies incomplete comparisons.

### Pricing

| Event | USD | What it covers |
|---|---:|---|
| Actor start | $0.001 per allocated GB, minimum one | Startup and location resolution |
| Maps search request | $0.02 | One bounded request attempt, including empty, blocked or unrecognized responses; recorded in SEARCH_REPORT |
| Business checked | $0.002 | One unique business saved in SNAPSHOT and compared with the baseline, including unchanged businesses |
| Website checked | $0.002 | One business website attempt, up to three pages, including blocked websites or no contacts found |

Example: one search request yielding 20 checked businesses with 20 website checks costs $0.101 at up to 1 GB. Ten businesses without websites would reduce that example to $0.081. Extra search pages add $0.02 each. Pricing is not a guarantee of result count or email yield.

No filter surcharges. Residential discovery traffic and compute are included in the event prices. The lower of `maxSpendUsd` and Apify's maximum event-charge budget applies. The Actor stops before starting work that cannot fit the remaining budget. Maximum allocated memory is 1 GB. Each billed search request allows up to three connection attempts within 30 seconds when no response bytes arrive. Responses are not automatically retried.

### Outputs

The default dataset contains business records. The default key-value store contains:

- `SNAPSHOT`: all businesses checked, including suppressed unchanged records; use this run's store ID for the next check.
- `SUMMARY`: output counts, stopping reason, prices and estimated charges.
- `SEARCH_REPORT`: each Maps request, bytes, parsed results and failures.
- `NOT_SEEN`: previously observed businesses absent from the current limited sample.
- `PROGRESS`: checkpoints used to avoid duplicate work during migration or resurrection.

Save previous snapshots in retained storage if needed beyond your account's storage retention period. Snapshots belong to each run; there is no shared cross-customer baseline.

Snapshots carry forward previously seen businesses that disappear from one limited search sample, so reappearance is not automatically classified as new. History retains up to 500 businesses, prioritizing the current sample and then recently seen records. `observedInRun` and `currentBusinessIds` distinguish fresh observations from carried history; old observation timestamps remain unchanged. `SUMMARY.historyEvictions` reports any older records dropped at the history limit. Businesses absent from the current search are not billed as checked.

### API example

Send the quick-start JSON to `POST https://api.apify.com/v2/acts/solidscrape~google-maps-business-leads/runs` with your Apify bearer token. Poll the returned run ID, then read `GET /v2/datasets/{defaultDatasetId}/items` and `GET /v2/key-value-stores/{defaultKeyValueStoreId}/records/SUMMARY`. Keep tokens in authorization headers rather than query strings.

### Coverage and limits

Google search ranking and availability vary. This Actor returns a bounded sample, not an exhaustive regional census. It currently checks up to six pages per query and does not use geographic tiling. Narrow geographic queries are recommended. An empty response may reflect no matches or a changed upstream response format; SEARCH_REPORT states this uncertainty.

Up to 500 businesses can be checked per run. When location resolution supplies an area polygon, results outside that simplified boundary are excluded. Otherwise a returned bounding box is used. An explicit center supplies a search bias without an area boundary. These modes do not establish exhaustive coverage. Large website HTML is read only up to the byte limit; contacts found in that prefix are retained and the page is labeled truncated/partial.

Contact extraction uses HTML and follows same-host contact/about links. It does not render JavaScript, solve access challenges, verify mailbox delivery, or provide employee enrichment. Incomplete website responses are labeled partial or failed. Primary emails match the website domain or use a public email provider; other published addresses are retained separately in `contacts.otherEmails` with an external-domain label. These labels do not verify ownership. Review source evidence before using contacts.

Location resolution uses OpenStreetMap Nominatim at a paced rate. Supply an explicit center if unavailable. The Actor fails rather than silently searching a guessed region. Map data is sourced from Google Maps; location lookup data is © OpenStreetMap contributors.

No claim of universal superiority or guaranteed profit is made. Release decisions should use measured output quality and operating costs on representative workloads.

# Actor input Schema

## `searchQueries` (type: `array`):

Include a city or area in each query. Maximum 20 distinct searches.

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

Hard cap on unique checked businesses across the entire run. Up to 500 per run keeps snapshot checkpoints bounded.

## `enrichContacts` (type: `boolean`):

$0.002 per website check, covering up to three HTML pages. Charged for completed attempts, including blocked or empty websites. Email delivery is not verified.

## `websitePages` (type: `integer`):

Home page and same-host contact/about links, up to three pages.

## `previousSnapshotStoreId` (type: `string`):

Select the previous run's default key-value store with identical search settings. Reads its SNAPSHOT record. Keep the previous storage available; no shared global customer history is used.

## `changesOnly` (type: `boolean`):

Requires a previous snapshot. All checked businesses are still billed and saved in SNAPSHOT, including unchanged records.

## `maxSpendUsd` (type: `number`):

The lower of this limit and the platform spending limit applies. Includes startup, search requests, website checks and business checks.

## `maxSearchRequests` (type: `integer`):

$0.02 per completed search request, including empty or blocked searches. Each page yields up to about 20 listings. Up to three zero-byte connection attempts are included within 30 seconds; responses are not retried. Details are saved in SEARCH_REPORT.

## `maxRunSeconds` (type: `integer`):

Stop new work when this time limit is reached and save partial results.

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

Google Maps result language, for example en or de.

## `countryCode` (type: `string`):

Two-letter country code. This biases searches and phone parsing; it does not establish a business's actual country.

## `center` (type: `object`):

Explicit {latitude, longitude, zoom}. Useful when location resolution is unavailable. Without this, the location in the query is resolved via OpenStreetMap Nominatim.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee shops in Brooklyn, New York"
  ],
  "maxItems": 50,
  "enrichContacts": true,
  "websitePages": 3,
  "changesOnly": false,
  "maxSpendUsd": 1,
  "maxSearchRequests": 10,
  "maxRunSeconds": 300,
  "language": "en"
}
```

# Actor output Schema

## `businesses` (type: `string`):

No description

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

No description

## `snapshot` (type: `string`):

No description

## `searchReport` (type: `string`):

No description

## `notSeen` (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 = {
    "searchQueries": [
        "coffee shops in Brooklyn, New York"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("solidscrape/google-maps-business-leads").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 = { "searchQueries": ["coffee shops in Brooklyn, New York"] }

# Run the Actor and wait for it to finish
run = client.actor("solidscrape/google-maps-business-leads").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 '{
  "searchQueries": [
    "coffee shops in Brooklyn, New York"
  ]
}' |
apify call solidscrape/google-maps-business-leads --silent --output-dataset

```

## MCP server setup

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

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/JnMX2HOjLdDtbhJd1/builds/wHGsdXdqmoMAKNVAC/openapi.json
