# Google Maps Email Scraper (`perfectscrape/google-maps-scraper-with-email`) Actor

A powerful and efficient tool that scrapes business information and emails from Google Maps. It allows users to search for businesses by keyword and location, extract key data like emails, phone numbers, social media links, and more. Extract emails from google maps.

- **URL**: https://apify.com/perfectscrape/google-maps-scraper-with-email.md
- **Developed by:** [Sadnan](https://apify.com/perfectscrape) (community)
- **Categories:** Lead generation, E-commerce
- **Features:** Full permissions
- **Stats:** 1,290 total users, 4 monthly users, 100.0% runs succeeded, 33 bookmarks
- **User rating**: 1.68 out of 5 stars

## 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 Scraper with Email

The Google Maps Business Email Scraper is a powerful and efficient tool designed to help you gather business information from Google Maps at scale, using specific keywords. Scrape google maps emails, phone, website, social media (instagram, facebook, twitter, linkedin and more). This tool goes one step ahead and scrapes emails of businesses from their website listed in Google Maps. Whether you need contact details for outreach or social media links for brand analysis, this tool simplifies and accelerates the process, enabling you to retrieve crucial business data, including emails and social media links. This tool stands out because it not only scrapes the basic business information but also captures emails directly from the business domains listed on Google Maps, enhancing the depth and usability of the data.

### 🚀 Key Features

- **Mass scraping of Google Maps businesses** using keywords
- **Automatic email extraction** from business websites
- **Location-based targeting** for relevant results
- **Social media links discovery** (optional)
- **High-speed scraping and Resource-efficient** uses HTTP requests to scrape Google Maps
- **Customizable results count**: Set how many pages to scrape
- **Email filtering**: Option to only keep results with emails

### 📋 Output Data

- **Business Name**
- **Address**
- **Phone Number**
- **Website URL**
- **Email Address** (optional)
- **Rating & Reviews Count**
- **Category**
- **Social Media Links** (optional)

### How to Use

#### Input Configuration:

1. **Keywords**: Enter a list of keywords for the business types you want to search for, such as "restaurant" or "salon."
2. **Location**: Specify a single location for the search, e.g., "New York."
3. **Max Pages to Scrape**: Define the maximum number of pages to scrape per keyword. Each page has 20 raw results. By default, it retrieves up to 10 pages (200 results per keyword).
4. **Email Filtering**: Enable or disable options to filter results to only include businesses with email addresses.
5. **Social Media Links**: Enable or disable collection of social media links (Facebook, Twitter, LinkedIn, TikTok, Instagram).

#### Start the Scraper:

- Run the scraper on Apify. It will start processing the specified keywords and location.
- Monitor progress and view intermediate results as the tool scrapes data from Google Maps and collects emails.

#### Access Results:

- After completion, download the dataset in your preferred format (JSON, CSV) and use it for marketing, outreach, or analysis.

#### Input Parameters Example

```json
{
    "maxResults": 1,
    "onlyEmails": false,
    "additionalInfo": true,
    "scrapeEmails": true,
    "keywords": ["spa", "salon"],
    "location": "New York"
}
```

### 🎯 Use Cases

- **Lead generation** for targeted sales outreach
- **Cold email outreach** for business development and prospecting
- **Building comprehensive business directories** for niche markets
- **Marketing campaign preparation** with verified business contacts
- **Local business outreach** for partnership or collaboration opportunities
- **Email list building** for email marketing and CRM integration
- **Anything else** that fits your any needs

### 📊 Output Example

```json
{
    "keyword": "spa",
    "name": "Sample Salon",
    "address": "123 Main St, New York, NY 10001",
    "phone": "+1 (555) 123-4567",
    "website": "https://samplesalon.com",
    "email": ["contact@samplesalon.com", "support@samplesalon.com"],
    "rating": 4.5,
    "reviewsCount": 234,
    "businessType": "Beauty Salon",
    "socialMedia": {
        "facebook": ["https://facebook.com/samplesalon"],
        "instagram": ["https://instagram.com/samplesalon"],
        "tiktok": ["https://tiktok.com/@samplesalon"],
        "linkedin": ["https://linkedin.com/company/samplesalon"],
        "pinterest": ["https://pinterest.com/samplesalon"]
    }
}
```

# Actor input Schema

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

Enter the business keywords (e.g., restaurants, salons) you want to search for in Google Maps.

## `location` (type: `string`):

Specify the location to search in Google Maps (e.g., New York, Delhi India). Only one location is supported.

## `maxResults` (type: `integer`):

1 Page has 20 results. Specify the page number of business results to retrieve per keyword. Default is 10.

## `scrapeEmails` (type: `boolean`):

Enable to scrape emails of the businesses. If not enabled, only business information will be scraped from Google Maps.

## `onlyEmails` (type: `boolean`):

Enable to only keep results that have an email address.

## `additionalInfo` (type: `boolean`):

Enable to scrape social media links (e.g., Facebook, Twitter, LinkedIN, Tiktok, Instagram) of the businesses. (Does not require extra resources)

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

Configure Apify Proxy for scraping Google Maps. Residential proxies are recommended.

## Actor input object example

```json
{
  "keywords": [
    "restaurant",
    "salon"
  ],
  "location": "New York",
  "maxResults": 1,
  "scrapeEmails": false,
  "onlyEmails": false,
  "additionalInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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": [
        "restaurant",
        "salon"
    ],
    "location": "New York"
};

// Run the Actor and wait for it to finish
const run = await client.actor("perfectscrape/google-maps-scraper-with-email").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": [
        "restaurant",
        "salon",
    ],
    "location": "New York",
}

# Run the Actor and wait for it to finish
run = client.actor("perfectscrape/google-maps-scraper-with-email").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": [
    "restaurant",
    "salon"
  ],
  "location": "New York"
}' |
apify call perfectscrape/google-maps-scraper-with-email --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,perfectscrape/google-maps-scraper-with-email"
        }
    }
}
```

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/4MFUJefQQvTGq60PQ/builds/giRRdnkFL9ANFZym5/openapi.json
