# Google Places Scraper (`seemuapps/google-places-scraper`) Actor

Search Google Maps for businesses and places  by text query or by coordinates and export structured place data, ratings, contact info, and reviews to a dataset.

- **URL**: https://apify.com/seemuapps/google-places-scraper.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** SEO tools, Lead generation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 place results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Google Places Scraper

Find any business or point of interest on Google Maps — by free-text query or by coordinates and radius — and export the full place record: name, address, coordinates, rating, phone, website, hours, and reviews.

### What you get

- **One dataset row per place** with placeId, display name, formatted address, latitude/longitude, place types, rating, review count, price level, website, phone numbers, business status, opening hours, and Google Maps URL
- **Optional reviews** — up to 5 per place with author, rating, text, and timestamps
- **Two search modes** — Text (free text + optional location bias) or Nearby (lat/lng + radius + types)
- **Auto-pagination** — Text search fetches up to 60 places per run; resume the next page via NEXT_PAGE_ID
- **Localized** — request results in any language and bias by region code
- **Wall-clock-safe** — saves the resume cursor 60s before the actor times out so large runs don't lose progress

### Use cases

- **Local business directory** — pull every coffee shop, dentist, or gym in a city
- **Lead generation** — extract phone numbers, websites, and addresses for outbound campaigns
- **Competitive intelligence** — track ratings and review counts of competitors in a region
- **Real estate / site selection** — count amenities within a radius of a candidate location
- **Travel guides & directory sites** — build curated lists with addresses, hours, and Google Maps links

### How to use

1. Pick a **Search mode**:
   - **Text** — type a query like "coffee shops in Brooklyn" or "best ramen Tokyo". Optionally bias with latitude/longitude/radius.
   - **Nearby** — set latitude, longitude, radius (meters), and optional included place types.
2. (Optional) Set **Language code** (`en`, `es`, `fr`, …) and **Region code** (`us`, `gb`, `de`, …) for localized results.
3. Set **Max items** — Text mode paginates up to 60; Nearby returns up to 20 in a single call.
4. (Optional) Toggle **Include reviews** to add up to 5 reviews per place.
5. Run — every place appears as its own dataset row.
6. To fetch more Text-search results, copy `NEXT_PAGE_ID` from the **Key-value store** tab and paste it into **Page ID** on the next run. If `NEXT_PAGE_ID` is `null`, the list is exhausted.

### Place types reference

Use the place-type tokens documented by Google — common ones include `restaurant`, `cafe`, `bar`, `gym`, `hair_care`, `lodging`, `tourist_attraction`, `gas_station`, `pharmacy`, `dentist`, `doctor`, `hospital`, `school`, `bank`, `atm`, `supermarket`, `clothing_store`, `electronics_store`. Stack multiple types in **Included place types** to broaden the search.

### Output schema

| Field | Type | Description |
|---|---|---|
| `placeId` | string | Stable Google Place ID |
| `displayName` | string | Place name |
| `formattedAddress` | string | Full address |
| `latitude` / `longitude` | number | Coordinates |
| `types` | string[] | All Google place types |
| `primaryType` | string | Primary place type |
| `rating` | number | 1–5 average rating |
| `userRatingCount` | number | Total ratings |
| `priceLevel` | string | PRICE_LEVEL_FREE … PRICE_LEVEL_VERY_EXPENSIVE |
| `websiteUri` | string | Business website |
| `internationalPhoneNumber` | string | E.164 phone |
| `nationalPhoneNumber` | string | National-format phone |
| `businessStatus` | string | OPERATIONAL, CLOSED_TEMPORARILY, CLOSED_PERMANENTLY |
| `weekdayDescriptions` | string[] | Human-readable opening hours |
| `googleMapsUri` | string | Canonical Google Maps URL |
| `iconMaskBaseUri` | string | Icon for the place type |
| `iconBackgroundColor` | string | Hex color for the icon mask |
| `reviews` | array | Up to 5 reviews (when Include reviews is on) |

### Tips

- **Text mode** is the easiest way to get a city-wide list — Google handles geographic interpretation for you.
- **Nearby mode** is more deterministic — useful when you want every place inside a precise radius.
- Setting **Include reviews** materially increases cost-per-place — only enable when you actually need them.
- Phone, website, and hours aren't filled in on every place — small businesses often lack them.
- For large multi-city pulls, run one query per city and resume each via `NEXT_PAGE_ID`.

# Actor input Schema

## `searchMode` (type: `string`):

Text searches accept a free-text query like 'coffee shops in Brooklyn'. Nearby searches require a latitude/longitude center and a radius in meters.
## `textQuery` (type: `string`):

Free-text query, e.g. 'best ramen in Brooklyn' or 'dentist near Times Square'. Used when search mode is Text.
## `latitude` (type: `number`):

Center latitude (-90 to 90). Used in Nearby mode; optional as a bias in Text mode.
## `longitude` (type: `number`):

Center longitude (-180 to 180). Used in Nearby mode; optional as a bias in Text mode.
## `radius` (type: `integer`):

Search radius around the center in meters. Used in Nearby mode (max 50000).
## `includedTypes` (type: `array`):

Restrict nearby results to these place types (e.g. restaurant, cafe, gym). See Google's place-type table. Leave empty for any type.
## `languageCode` (type: `string`):

BCP-47 language code for localized results (e.g. en, es, fr).
## `regionCode` (type: `string`):

Two-letter region/country code to bias results (e.g. us, gb, de).
## `maxItems` (type: `integer`):

Maximum number of places. Text search auto-paginates in batches of 20 (up to 60 total). Nearby returns at most 20.
## `includeReviews` (type: `boolean`):

Include up to 5 reviews per place (author, rating, text, publish time).
## `pageId` (type: `string`):

Paste NEXT_PAGE_ID from the previous run's Key-value store to resume Text-search pagination.

## Actor input object example

```json
{
  "searchMode": "text",
  "textQuery": "coffee shops in Brooklyn",
  "radius": 1000,
  "languageCode": "en",
  "maxItems": 60,
  "includeReviews": false
}
````

# Actor output Schema

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

One record per place: placeId, displayName, formattedAddress, latitude, longitude, types, primaryType, rating, userRatingCount, priceLevel, websiteUri, internationalPhoneNumber, nationalPhoneNumber, businessStatus, weekdayDescriptions, googleMapsUri, reviews.

## `nextPageId` (type: `string`):

NEXT\_PAGE\_ID record in the default key-value store. Paste into Page ID on the next run to resume; null when the list is exhausted.

# 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 = {
    "textQuery": "coffee shops in Brooklyn"
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/google-places-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 = { "textQuery": "coffee shops in Brooklyn" }

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/google-places-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "textQuery": "coffee shops in Brooklyn"
}' |
apify call seemuapps/google-places-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=seemuapps/google-places-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Places Scraper",
        "description": "Search Google Maps for businesses and places  by text query or by coordinates and export structured place data, ratings, contact info, and reviews to a dataset.",
        "version": "1.0",
        "x-build-id": "Zc4nXLdBFIelJ3Krm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/seemuapps~google-places-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-seemuapps-google-places-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/seemuapps~google-places-scraper/runs": {
            "post": {
                "operationId": "runs-sync-seemuapps-google-places-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/seemuapps~google-places-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-seemuapps-google-places-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchMode": {
                        "title": "Search mode",
                        "enum": [
                            "text",
                            "nearby"
                        ],
                        "type": "string",
                        "description": "Text searches accept a free-text query like 'coffee shops in Brooklyn'. Nearby searches require a latitude/longitude center and a radius in meters.",
                        "default": "text"
                    },
                    "textQuery": {
                        "title": "Text query",
                        "type": "string",
                        "description": "Free-text query, e.g. 'best ramen in Brooklyn' or 'dentist near Times Square'. Used when search mode is Text."
                    },
                    "latitude": {
                        "title": "Latitude",
                        "type": "number",
                        "description": "Center latitude (-90 to 90). Used in Nearby mode; optional as a bias in Text mode."
                    },
                    "longitude": {
                        "title": "Longitude",
                        "type": "number",
                        "description": "Center longitude (-180 to 180). Used in Nearby mode; optional as a bias in Text mode."
                    },
                    "radius": {
                        "title": "Radius (meters)",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Search radius around the center in meters. Used in Nearby mode (max 50000).",
                        "default": 1000
                    },
                    "includedTypes": {
                        "title": "Included place types (Nearby only)",
                        "type": "array",
                        "description": "Restrict nearby results to these place types (e.g. restaurant, cafe, gym). See Google's place-type table. Leave empty for any type.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "languageCode": {
                        "title": "Language code",
                        "type": "string",
                        "description": "BCP-47 language code for localized results (e.g. en, es, fr).",
                        "default": "en"
                    },
                    "regionCode": {
                        "title": "Region code",
                        "type": "string",
                        "description": "Two-letter region/country code to bias results (e.g. us, gb, de)."
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 60,
                        "type": "integer",
                        "description": "Maximum number of places. Text search auto-paginates in batches of 20 (up to 60 total). Nearby returns at most 20.",
                        "default": 60
                    },
                    "includeReviews": {
                        "title": "Include reviews",
                        "type": "boolean",
                        "description": "Include up to 5 reviews per place (author, rating, text, publish time).",
                        "default": false
                    },
                    "pageId": {
                        "title": "Page ID (pagination)",
                        "type": "string",
                        "description": "Paste NEXT_PAGE_ID from the previous run's Key-value store to resume Text-search pagination."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
