# Google Maps Phone/Email Extractor (`faisalrjbd/google-maps-phone-email-extractor`) Actor

Extract Google Maps contact details. Scrape phones, emails, websites, social media links, addresses, zip codes, ratings, and reviews from Google Maps business listings. Export as JSON or CSV, run via API, schedule runs, or integrate with other tools.

- **URL**: https://apify.com/faisalrjbd/google-maps-phone-email-extractor.md
- **Developed by:** [Mohammad Faisal Ahmad](https://apify.com/faisalrjbd) (community)
- **Categories:** Lead generation
- **Stats:** 173 total users, 10 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 4.14 out of 5 stars

## Pricing

from $5.00 / 1,000 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Maps Phone/Email Extractor

Extract business contact details from Google Maps at scale. Search by keyword and location, get **phones, emails, websites, social media links**, and full business data — all exported as clean JSON or CSV.

### Features

- **Phone Numbers** — Extracted from Google and business websites, formatted as (XXX) XXX-XXXX
- **Email Addresses** — Scraped from business websites including contact and about pages
- **Social Media Links** — Facebook, Instagram, Twitter/X, LinkedIn, YouTube, TikTok, Pinterest, Discord
- **Full Business Data** — Name, rating, review count, category, image, open/closed status
- **Detailed Address** — Street, city, state, postal code parsed into separate fields
- **Smart Filtering** — Filter by minimum star rating, skip closed businesses
- **Lightweight** — Runs within 512 MB memory
- **Flexible Search** — Search by keyword + location, or provide direct Google Maps URLs
- **Export Anywhere** — JSON, CSV, Excel, XML output formats

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `searchStringsArray` | Array of strings | What to search for on Google Maps (e.g. `["pizza", "plumber"]`) | `["restaurant"]` |
| `locationQuery` | String | Location to search in (e.g. `"New York, USA"`) | — |
| `maxCrawledPlacesPerSearch` | Integer (1-500) | Maximum number of places per search term | `20` |
| `language` | String | Language code for results (e.g. `"en"`, `"es"`, `"fr"`) | `"en"` |
| `skipClosedPlaces` | Boolean | Skip permanently or temporarily closed places | `false` |
| `placeMinimumStars` | Number (0-5) | Only include places with this rating or higher. Set to `0` to disable | `0` |
| `scrapeEmails` | Boolean | Enable full contact extraction (emails, phones, social media) | `true` |
| `startUrls` | Array of URLs | Direct Google Maps search URLs to scrape (alternative to keyword search) | — |

#### Example Input

```json
{
  "searchStringsArray": ["dentist", "orthodontist"],
  "locationQuery": "Los Angeles, CA",
  "maxCrawledPlacesPerSearch": 50,
  "language": "en",
  "skipClosedPlaces": true,
  "placeMinimumStars": 4,
  "scrapeEmails": true
}
```

### Output

Each result contains the following fields:

#### Business Information

| Field | Type | Example |
|-------|------|---------|
| `title` | String | `"Joe's Pizza"` |
| `totalScore` | Number | `4.5` |
| `reviewsCount` | Number | `25000` |
| `categoryName` | String | `"Pizza"` |
| `imageUrl` | String | `"https://lh5.googleusercontent.com/..."` |
| `openingHours` | Array | `[{"day": "Monday", "hours": "11AM-10PM"}]` |
| `temporarilyClosed` | Boolean | `false` |
| `permanentlyClosed` | Boolean | `false` |

#### Contact Details

| Field | Type | Example |
|-------|------|---------|
| `phone` | String | `"(212) 594-8939"` |
| `website` | String | `"https://www.joespizzanyc.com/"` |
| `emails` | Array | `["info@joespizza.com"]` |

#### Location

| Field | Type | Example |
|-------|------|---------|
| `address` | String | `"27 Prince St, New York, NY 10012"` |
| `street` | String | `"27 Prince St"` |
| `city` | String | `"New York"` |
| `state` | String | `"NY"` |
| `postalCode` | String | `"10012"` |
| `url` | String | `"https://www.google.com/maps?cid=..."` |
| `placeId` | String | `"cid:12345678901234"` |
| `latitude` | Number | `40.7128` |
| `longitude` | Number | `-74.0060` |

#### Social Media

| Field | Type | Example |
|-------|------|---------|
| `facebooks` | Array | `["https://www.facebook.com/joespizza"]` |
| `instagrams` | Array | `["https://www.instagram.com/joespizza"]` |
| `twitters` | Array | `["https://www.twitter.com/joespizza"]` |
| `linkedIns` | Array | `["https://www.linkedin.com/company/joespizza"]` |
| `youtubes` | Array | `["https://www.youtube.com/@joespizza"]` |
| `tiktoks` | Array | `["https://www.tiktok.com/@joespizza"]` |
| `pinterests` | Array | `["https://www.pinterest.com/joespizza"]` |
| `discords` | Array | `["https://discord.gg/joespizza"]` |

#### Example Output

```json
{
  "imageUrl": "https://lh5.googleusercontent.com/p/AF1QipN...",
  "title": "David Hicks Plumbing",
  "totalScore": 4.6,
  "reviewsCount": 190,
  "categoryName": "Plumber",
  "address": "Houston, TX",
  "street": null,
  "city": "Houston",
  "state": "TX",
  "postalCode": null,
  "phone": "(713) 528-0141",
  "website": "https://davidhicksplumbing.com/",
  "url": "https://www.google.com/maps?cid=1234567890",
  "placeId": "cid:1234567890",
  "openingHours": null,
  "latitude": null,
  "longitude": null,
  "temporarilyClosed": false,
  "permanentlyClosed": false,
  "emails": ["office@davidhicksplumbing.com"],
  "facebooks": ["https://www.facebook.com/Davidhicksplumbing"],
  "instagrams": ["https://www.instagram.com/davidhicksplumbing"],
  "twitters": ["https://www.twitter.com/davidhicksplumb"],
  "linkedIns": [],
  "youtubes": ["https://www.youtube.com/channel/UCxyz"],
  "tiktoks": [],
  "pinterests": [],
  "discords": []
}
```

### Use Cases

- **Lead Generation** — Build targeted contact lists for outreach campaigns
- **Local Business Research** — Analyze competitors and market landscape
- **Sales Prospecting** — Find decision-maker contacts for B2B sales
- **Marketing Lists** — Create email lists for targeted marketing campaigns
- **Market Analysis** — Understand business density, ratings, and social presence by area
- **Data Enrichment** — Supplement existing business databases with fresh contact details

### Tips

- Set `scrapeEmails` to `true` for the most complete contact extraction
- Use `placeMinimumStars` to filter for quality businesses (e.g. `4.0` for 4+ star rated only)
- Enable `skipClosedPlaces` to avoid wasting results on closed businesses
- The actor works best with specific search terms — `"italian restaurant"` gives better results than `"food"`
- For large extractions, increase `maxCrawledPlacesPerSearch` (up to 500 per search term)
- Combine multiple search terms to cover related categories in a single run

### Output Export

Results are stored in the Apify dataset and can be exported in:

- **JSON** — Structured data for programmatic use
- **CSV** — Spreadsheet-ready format for Excel, Google Sheets
- **Excel** — Direct .xlsx download
- **XML** — For system integrations
- **RSS** — For feed readers

The dataset view has 4 tabs:

- **Overview** — Business name, category, rating, reviews, phone, emails, website, address, city
- **Contact Details** — Phone, emails, website, Facebook, Instagram, Twitter/X, LinkedIn, YouTube, TikTok, Pinterest, Discord
- **Location** — Full address, street, city, state, postal code, latitude, longitude, Google Maps link
- **Business Info** — Category, rating, reviews, image, open/closed status

# Actor input Schema

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

What to search for on Google Maps (e.g. 'restaurant', 'bar', 'dentist')

## `locationQuery` (type: `string`):

Location to search in (e.g. 'New York, USA', 'London, UK')

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

Maximum number of places to extract per search term

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

Language for Google Maps results

## `skipClosedPlaces` (type: `boolean`):

Skip permanently or temporarily closed places

## `placeMinimumStars` (type: `number`):

Only scrape places with this rating or higher (0 = no filter)

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

Enable full contact extraction (emails, phones, social media)

## `startUrls` (type: `array`):

Direct Google Maps search URLs to scrape

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurant"
  ],
  "maxCrawledPlacesPerSearch": 20,
  "language": "en",
  "skipClosedPlaces": false,
  "placeMinimumStars": 0,
  "scrapeEmails": true
}
```

# Actor output Schema

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

Dataset containing business names, phones, emails, websites, social media links, addresses, ratings, and reviews from Google Maps

# 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": [
        "restaurant"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("faisalrjbd/google-maps-phone-email-extractor").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": ["restaurant"] }

# Run the Actor and wait for it to finish
run = client.actor("faisalrjbd/google-maps-phone-email-extractor").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": [
    "restaurant"
  ]
}' |
apify call faisalrjbd/google-maps-phone-email-extractor --silent --output-dataset

```

## MCP server setup

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

```

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/AC9CY4Mk9XDkprmZg/builds/phjgtn9oQIwPIHD9N/openapi.json
