# Google Maps Scraper (`khnaami/actor-google-maps-scraper`) Actor

Google Maps B2B Leads Scraper: Extract business listings, company phone numbers, physical addresses, websites, geo-coordinates, customer ratings, review counts, and operational hours without rate limits. Perfect for local B2B lead generation, sales prospecting, and market mapping at scale.

- **URL**: https://apify.com/khnaami/actor-google-maps-scraper.md
- **Developed by:** [khalid naami](https://apify.com/khnaami) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 B2B Leads Scraper (Places, Phone, Website & Reviews)

Extract targeted B2B leads, local business contacts, phone numbers, websites, addresses, star ratings, and GPS coordinates from Google Maps at scale.

***

### 🌟 Key Features

- 🏢 **Complete B2B Contact Profiles**: Extracts business name, category, complete street address, phone number, website URL, and opening hours.
- ⭐ **Reputation Metrics**: Captures average rating score (0.0 to 5.0) and total user reviews count.
- 🗺️ **Accurate GPS Geolocation**: Extracts exact latitude and longitude coordinates from map pins.
- 🔄 **Smart Infinite Scroll**: Automatically navigates Google Maps feed listings with automated consent dialog bypass.
- 🌐 **Global Multilingual Support**: Supports any language (`language` code) and any localized query around the world.
- 🛡️ **Apify Proxy Integration**: Ready to connect with Apify Residential and Datacenter proxies for uninterrupted scraping.

***

### 📥 Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `searchStringsArray` | Array | `["restaurants in New York"]` | List of keywords or locations to search (e.g. `'dentists in New York'`, `'plumbers in Berlin'`). |
| `maxCrawledPlacesPerSearch` | Integer | `40` | Maximum number of places to scrape per search query. |
| `language` | String | `"en"` | Language code for names and descriptions (e.g. `en`, `es`, `fr`, `de`, `ar`). |
| `includeOpeningHours` | Boolean | `true` | Extract full weekly operating schedule. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Apify Proxy configuration settings. |

***

### 📤 Output Data Format

Each dataset record contains rich business intelligence:

```json
{
  "title": "Monmouth Coffee Company",
  "category": "Coffee shop",
  "address": "27 Monmouth St, London WC2H 9EU, United Kingdom",
  "phone": "+44 20 7232 3010",
  "website": "https://www.monmouthcoffee.co.uk/",
  "totalScore": 4.6,
  "reviewsCount": 1845,
  "openStatus": "Open ⋅ Closes 6 PM",
  "openingHours": [
    "Monday: 7:30 AM – 6:00 PM",
    "Tuesday: 7:30 AM – 6:00 PM",
    "Wednesday: 7:30 AM – 6:00 PM",
    "Thursday: 7:30 AM – 6:00 PM",
    "Friday: 7:30 AM – 6:00 PM",
    "Saturday: 8:00 AM – 6:00 PM",
    "Sunday: Closed"
  ],
  "latitude": 51.513518,
  "longitude": -0.126584,
  "placeId": "0x487604cc863bc0d9:0x8992ad34e12e138a",
  "url": "https://www.google.com/maps/place/Monmouth+Coffee+Company/...",
  "searchQuery": "restaurants in New York",
  "scrapedAt": "2026-11-09T13:40:00.000Z"
}
```

***

### 💡 Practical Use Cases

1. **B2B Cold Outreach & Sales**: Collect qualified business leads (phone numbers, addresses, websites) for digital agencies, SaaS companies, and contractors.
2. **Local Directory & Marketplace Aggregation**: Populate local directories with verified business listings and opening hours.
3. **Competitive Benchmarking**: Analyze market density, pricing levels, and rating distribution in specific neighborhoods or cities.
4. **GIS & Location Analytics**: Map business distributions across geographical regions using accurate GPS coordinates.

***

### ⚖️ License

Apache-2.0

# Actor input Schema

## `searchStringsArray` (type: `array`):

List of keywords or locations to search (e.g. 'restaurants in New York', 'dentists in Chicago', 'hotels in Paris').

## `maxCrawledPlacesPerSearch` (type: `integer`):

Maximum number of places/businesses to extract per search query.

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

Language for interface and names (e.g. 'en', 'es', 'fr', 'de', 'ar', 'it').

## `includeOpeningHours` (type: `boolean`):

Extract full weekly operating hours schedule if available.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy (Residential or Datacenter) to bypass Google geoblocking and rate limits.

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurants in New York"
  ],
  "maxCrawledPlacesPerSearch": 40,
  "language": "en",
  "includeOpeningHours": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Scraped records stored in the default Apify dataset.

## `overview` (type: `string`):

High-level summary report and execution metrics stored in Key-Value store.

# 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 = {
    "searchStringsArray": [
        "restaurants in New York"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("khnaami/actor-google-maps-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 = { "searchStringsArray": ["restaurants in New York"] }

# Run the Actor and wait for it to finish
run = client.actor("khnaami/actor-google-maps-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 '{
  "searchStringsArray": [
    "restaurants in New York"
  ]
}' |
apify call khnaami/actor-google-maps-scraper --silent --output-dataset

```

## MCP server setup

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