# GMB Scraper: Google My Business Profile Data (`prattsolutions/gmb-scraper`) Actor

Scrape Google My Business (Google Business Profile) data in bulk: name, category, phone, website, address, rating, reviews, claimed status and seven profile checks with a 0–100 score.

- **URL**: https://apify.com/prattsolutions/gmb-scraper.md
- **Developed by:** [John Pratt](https://apify.com/prattsolutions) (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

from $1.50 / 1,000 profile scrapeds

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

GMB Scraper extracts **Google My Business profiles in bulk**, now called Google Business Profiles, straight from a Google Maps search. Search `dentists in Boise, ID` or a single business's name, and every profile found comes back as one flat row: **name, category, phone, website, address, star rating and review count**, whether its owner has **claimed** it, and **seven profile checks** with a 0–100 score and a list of issues. Use it to export GMB data to CSV or Excel, audit clients' listings, or find local businesses whose profiles need work.

### What does GMB Scraper do?

- **Audits every profile a Google Maps search finds**, up to around 120 per search, or one business when you search its name and city.
- **Runs seven checks** on each profile and lists the ones it fails in plain words, such as `No opening hours` or `Not claimed by the owner`.
- **Scores each profile from 0 to 100**, the share of checks it passes, so you can sort a whole market by profile quality.
- **Counts negative reviews** and finds the first 1- or 2-star review on the profile that the owner hasn't answered.
- **Saves only the profiles worth pitching** when you set a maximum score, and charges only for the profiles it saves.

### What the GMB audit checks

| Check | Field | Passes when |
| --- | --- | --- |
| Claimed | `claimed` | An owner has claimed the listing. Unclaimed listings show "Claim this business" on Google Maps. |
| Website | `has_website` | The profile links a website of its own. A Facebook, Instagram, Yelp or similar page doesn't count. |
| Phone | `has_phone` | The profile lists a phone number. |
| Hours | `has_hours` | The profile lists opening hours. |
| Rating | `rating_4_plus` | The average rating is 4.0 or higher. |
| Reviews | `reviews_25_plus` | The business has at least 25 Google reviews. |
| Review replies | `replies_to_reviews` | The owner replied to at least one of the reviews shown on the profile. |

`audit_score` is the share of checks passed: 100 passes all seven, 86 fails one, 71 fails two, and so on. `issues` names every failed check.

### How to scrape Google My Business profiles

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter searches in **Search queries**, one per line: a business type plus a location, such as `plumbers in Tulsa, OK`, or a business's name and city to audit just that one.
3. To keep only profiles with at least one issue, set **Maximum audit score** to `85`. Leave it at `100` to save every profile.
4. Click **Start**.
5. When the run finishes, open the **Audits** view on the **Output** tab, or export the dataset as CSV or Excel.

#### Find local SEO prospects

Search the business type you sell to in each city or neighborhood you cover, and set **Maximum audit score** to `71`. Every profile you get fails at least two checks, such as no hours and no replies to reviews, and each issue is something you can offer to fix. Set **Minimum number of reviews** to `10` to skip businesses too new to need help yet.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array of strings | required | Google Maps searches, one per item: a business type plus a location, or a business's name and city. |
| `maxAuditScore` | integer, 0 to 100 | `100` | Save only profiles that score at most this. |
| `minReviews` | integer | `0` | Skip businesses with fewer reviews than this. |
| `depth` | integer, 1 or more | `10` | How many times to scroll each search's results list. A higher value audits more businesses for broad searches but takes longer. The Console form starts at 1 for a quick first run. |
| `maxPlacesPerSearch` | integer | none | Audit at most this many places per search, the first ones Google lists. Empty audits every place. The Console form starts at 10 for a quick first run. |
| `language` | string | `en` | Google interface language code, such as `en`, `es`, `de` or `fr`. |

```json
{
    "keywords": ["dentists in Boise, ID", "orthodontists in Boise, ID"],
    "maxAuditScore": 85,
    "minReviews": 10
}
```

### Output

Each business is one item in the dataset. This example is fictional:

```json
{
    "name": "Example Family Dental",
    "category": "Dentist",
    "phone": "+1 208-555-0142",
    "website": "https://www.example.com/",
    "address": "250 Main St, Boise, ID 83702, United States",
    "street": "250 Main St",
    "city": "Boise",
    "state": "Idaho",
    "postal_code": "83702",
    "country": "US",
    "rating": 4.6,
    "review_count": 88,
    "google_maps_url": "https://www.google.com/maps/place/...",
    "place_id": "ChIJ...",
    "latitude": 43.6166,
    "longitude": -116.2008,
    "audit_score": 71,
    "issues": ["No opening hours", "No owner replies to the reviews on its profile"],
    "claimed": true,
    "has_website": true,
    "has_phone": true,
    "has_hours": false,
    "rating_4_plus": true,
    "reviews_25_plus": true,
    "replies_to_reviews": false,
    "one_star_reviews": 4,
    "two_star_reviews": 1,
    "reviews_checked": 5,
    "reviews_with_owner_reply": 0,
    "unanswered_negative_review": "Waited 40 minutes past my appointment time.",
    "unanswered_negative_review_date": "2026-06-14T02:29:26.883541Z",
    "query": "dentists in Boise, ID"
}
```

`rating`, `review_count`, `latitude` and `longitude` are numbers, or `null` when Google has no value. The checks are `true` or `false`. `reviews_checked` is how many reviews the profile shows, usually 5, and the reply check and `unanswered_negative_review` use those reviews.

### How much does it cost?

It costs **$1.50 per 1,000 profiles** ($0.0015 per profile saved). Profiles that score above your maximum, or that your filters remove, aren't saved, so they aren't charged. Each run also has Apify's standard start fee of $0.00005, and there's no separate charge for compute.

- Auditing all 120 dentists one search finds costs **$0.18**.
- 1,000 audited profiles cost **$1.50**.

To cap what a run can cost, set **Maximum cost per run** in the run options (`maxTotalChargeUsd` in the API). When a run reaches the cap, it stops saving profiles.

### API

Get your API token in **Apify Console → Settings → API & Integrations**, then start a run:

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~gmb-scraper/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["dentists in Boise, ID"], "maxAuditScore": 85}'
```

The response's `data.defaultDatasetId` is the dataset ID. When the run has finished, `GET https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv&token=YOUR_APIFY_TOKEN` returns the audits as CSV.

Python, with the [`apify-client`](https://docs.apify.com/api/client/python) package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("prattsolutions/gmb-scraper").call(
    run_input={"keywords": ["dentists in Boise, ID"], "maxAuditScore": 85}
)
for profile in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(profile["name"], profile["audit_score"], "; ".join(profile["issues"]))
```

### FAQ

#### Can I audit my own business or a client's profile?

Yes. Search the business's name and city, such as `Example Family Dental, Boise`. The first place Google Maps finds for that search is audited. Add the street address when the name is common.

#### How does it know whether a listing is claimed?

Google Maps lists the owner's account on every listing an owner has claimed, and shows **Claim this business** on the ones nobody has. The Actor reads that owner account. A listing without one is reported with `claimed: false` and the issue `Not claimed by the owner`.

#### Why does the reply check use only a few reviews?

The checks use what Google Maps shows on the profile itself, which includes about five reviews. If the owner answered none of those, the profile fails the check. That's also what a customer sees first.

#### How long does a run take?

Searches run one after another. A broad search takes a few minutes, because the scraper opens every business on the list. Each search is capped at 10 minutes: businesses not reached by then are left out, and the run still succeeds. Set **Maximum places per search** to audit only the first businesses of each list.

#### Why was my first run in a while slow to start?

When nobody has used the scraper for a few weeks, its backend needs a few minutes to wake up. The log shows `Lambda is waking up (...); retrying in 15s.`, and the run then continues normally.

#### Is this affiliated with Google?

No. The Actor reads only what Google Maps shows publicly on each profile. It doesn't sign in to Google, and it can't see or change anything in a Google Business Profile account.

# Actor input Schema

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

What to search on Google Maps, one query per line, worded as you would type it into Google Maps: a business type plus a location, such as "dentists in Boise, ID", or one business's name and city. A business found by several queries is audited once.

## `maxAuditScore` (type: `integer`):

Save only profiles that score at most this, from 0 to 100. Set it to 85 to keep only profiles that fail at least one check, the ones worth pitching an optimization to. 100 saves every profile.

## `minReviews` (type: `integer`):

Skip businesses with fewer Google reviews than this. 0 keeps every business.

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

How many times to scroll each search's results list. Each scroll loads more businesses, so a higher value finds more businesses for broad searches but makes each search take longer. The form starts at 1 so a first run finishes quickly. Runs that leave it out use 10.

## `maxPlacesPerSearch` (type: `integer`):

Check at most this many places of each search's results list, the first ones Google lists. A cap keeps runs short and costs predictable. The form starts at 10 for a quick first run. Leave it empty to check every place.

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

Google interface language code, such as en, es, de or fr. It sets the language of the categories Google returns.

## Actor input object example

```json
{
  "keywords": [
    "dentists in Boise, ID",
    "Katz's Delicatessen, New York"
  ],
  "maxAuditScore": 100,
  "minReviews": 0,
  "depth": 1,
  "maxPlacesPerSearch": 10,
  "language": "en"
}
```

# Actor output Schema

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

All places in the run's default dataset. Each field is described in the dataset schema.

# 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": [
        "dentists in Boise, ID"
    ],
    "depth": 1,
    "maxPlacesPerSearch": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/gmb-scraper").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": ["dentists in Boise, ID"],
    "depth": 1,
    "maxPlacesPerSearch": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/gmb-scraper").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": [
    "dentists in Boise, ID"
  ],
  "depth": 1,
  "maxPlacesPerSearch": 10
}' |
apify call prattsolutions/gmb-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,prattsolutions/gmb-scraper"
        }
    }
}
```

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/cgxBpir8TR3ZvhhQN/builds/1FNofZdORSEEKknBC/openapi.json
