# Google Maps Email Extractor - Emails, Phones & Social Links (`socialscrapers/google-maps-email-extractor`) Actor

Google Maps email extractor: businesses in any city, region or country with the emails, phones and LinkedIn, Facebook, Instagram, X and YouTube links from their own websites, plus address, phone, rating and hours. No login. JSON, CSV, Excel. $3.80 per 1,000 places.

- **URL**: https://apify.com/socialscrapers/google-maps-email-extractor.md
- **Developed by:** [Social Scrapers](https://apify.com/socialscrapers) (community)
- **Categories:** Lead generation, Business, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.04 / 1,000 places

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Google Maps Email Extractor

**Google Maps Email Extractor** finds businesses on Google Maps and reads each one's own website for its **emails, phone numbers and social profiles**. Search any business type in a city, region or whole country, or give place URLs, and get one row per place: name, categories, address, coordinates, phone, website, rating, review count and opening hours from Google Maps, plus the **emails**, **phone numbers in E.164**, **LinkedIn, Facebook, Instagram, X, YouTube and TikTok profiles** and the **contact page** found on its website. No login, no Google account, no API key. It costs **$3.80 per 1,000 places**, plus **$1.90 per 1,000 places whose website gave contact details** the listing does not already show.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does Google Maps Email Extractor do?

- 📍 **Finds the businesses.** Type what you would type into Google Maps (`dentist`, `plumber`, `coffee shop`) and a location (`Austin, Texas, USA`, `Bavaria, Germany`, `Portugal`). The area is split into smaller map cells until every cell is fully listed, so a city or a country gives every place Google Maps has, not just the first 120.
- 🔎 **Or around a point, or places you know.** Center coordinates and a radius, Google Maps place links, share links (`maps.app.goo.gl`, `share.google`), search links, Google search links and place IDs.
- 📧 **Reads each place's website.** The start page first, then the contact page, the legal notice (Impressum), about and team pages, up to the number of pages you set. Emails hidden from robots (`name [at] domain [dot] com`, encoded addresses, protected `mailto:` links) are read too.
- 📞 **Phone numbers in E.164** (`+15125550134`), read with the place's own country from Google Maps. Fax, VAT, company-register and bank numbers are left out.
- 👥 **Social profiles** as clean profile URLs: LinkedIn, Facebook, Instagram, X (Twitter), YouTube, TikTok, Pinterest, GitHub, WhatsApp and Telegram (share buttons, posts and videos left out).
- 🧾 **A status for every place's website**: read, no website, social media page, blocked, JavaScript-only or could not be read, with the reason.
- 🎯 **Filters**: minimum star rating, places with or without a website, skip closed places. Places the filters leave out are free.
- 💸 **Pay only for what you get.** Contact details are charged only for places whose website gave something new. The run stops cleanly at the spending limit you set.

### What data can you extract?

One item per place. Every field is always present; `null` or `[]` means there is nothing for it.

| Field | Description |
|---|---|
| `title`, `categoryName`, `categories` | Name, main category and all categories |
| `address`, `street`, `city`, `postalCode`, `state`, `countryCode` | Full address and its parts |
| `phone`, `phoneUnformatted` | The phone number Google Maps shows, as written locally and in international form |
| `website` | The place's website |
| `emails` | Email addresses on the website |
| `phones`, `phonesUncertain` | Phone numbers on the website (E.164 when readable); `phonesUncertain` are numbers in the text with no phone label |
| `linkedIns`, `facebooks`, `instagrams`, `twitters`, `youtubes`, `tiktoks`, `pinterests`, `githubs`, `whatsapps`, `telegrams` | Social profile URLs linked from the website |
| `contactPageUrl` | The website's contact page (else its legal notice) |
| `contactsStatus`, `contactsError`, `websitePagesRead` | What happened to the website (see below), why, and how many pages were read |
| `totalScore`, `reviewsCount` | Star rating and number of Google reviews |
| `openingHours`, `permanentlyClosed`, `temporarilyClosed` | Hours for each day and closed status |
| `location`, `plusCode`, `neighborhood` | Coordinates, plus code and neighborhood |
| `placeId`, `cid`, `fid`, `kgmid`, `url` | Google's IDs and the place on Google Maps |
| `description`, `price`, `claimThisBusiness`, `timezone`, `imageUrl`, `imagesCount` | Other Google Maps details |
| `searchString`, `searchPageUrl`, `language`, `scrapedAt` | The search that found the place, the page it was found on, the language and when it was read |

`contactsStatus` is one of:

| Status | Meaning |
|---|---|
| `read` | The website was read; its contact details are in the row (there may be none) |
| `no-website` | Google Maps lists no website for the place |
| `social-page` | The website is (or forwards to) a social media or link page; that profile is in the row, nothing else is read |
| `blocked` | The website refused automated visits |
| `js-only` | The website shows its content with JavaScript only |
| `failed` | The website could not be read: down, not found, parked or not a web page |
| `not-read` | The website was not read because the run stopped first |

### How to extract emails from Google Maps

1. Open the Actor and add one or more **Search terms**, such as `dentist`.
2. Set a **Location** (a city, region or country), or **Center coordinates** and a **Radius**. Or add **Google Maps URLs** or **Place IDs** instead.
3. Set **Max places per search** (`0` = every place in the area) and **Max pages per website** (5 by default, contact pages first).
4. Optionally keep **Same-domain emails only**, and filter by rating, website or closed status.
5. Click **Start**, then download the places as JSON, CSV, Excel, XML or HTML, or read them through the API.

### How much does it cost?

| Event | Price | When it is charged |
|---|---|---|
| Place | **$3.80 per 1,000** | For each place saved to the dataset |
| Place contact details | **$1.90 per 1,000** | For each saved place whose website gave at least one email, social profile or phone number that the Google Maps listing does not already show |

Places without a website, and places whose website gave nothing new (no contacts, the same phone as on Google Maps, blocked or down), pay only the place price. Apify subscribers pay less: **Silver −10%** ($3.42 and $1.71 per 1,000) and **Gold, Platinum and Diamond −20%** ($3.04 and $1.52 per 1,000). Each run also carries Apify's standard Actor start charge of $0.00005 (one per GB of memory, at least one).

In a test run over 240 plumbers and dentists with websites, 79% of the places got contact details their listing lacked. With that share:

| Job | Places | With contact details | Price (no discount) |
|---|---|---|---|
| Every dentist with a website in a mid-sized city | 500 | 395 | $1.90 + $0.75 = **$2.65** |
| Every plumber with a website in a large city | 2,000 | 1,580 | $7.60 + $3.00 = **$10.60** |
| A national list of one business type | 50,000 | 39,500 | $190.00 + $75.05 = **$265.05** |

Places the filters leave out, places already saved by another search of the same run, and searches with no results cost nothing. To cap spending, set a **maximum total charge** in the run options: the Actor stops cleanly before the first place that would go over it and keeps everything collected so far.

### Input example

```json
{
  "searchStringsArray": ["dentist", "orthodontist"],
  "locationQuery": "Austin, Texas, USA",
  "maxCrawledPlacesPerSearch": 0,
  "maxPagesPerWebsite": 5,
  "sameDomainEmailsOnly": false,
  "language": "en",
  "website": "withWebsite",
  "skipClosedPlaces": true
}
```

Places you already know:

```json
{
  "startUrls": [{ "url": "https://maps.app.goo.gl/..." }],
  "placeIds": ["ChIJ1S_Bov20RIYRe7MiR8tYawY"],
  "maxPagesPerWebsite": 8
}
```

### Output example

A real place from a test run (some Google Maps fields left out for brevity):

```json
{
  "title": "Tech Ridge Dental",
  "categoryName": "Dentist",
  "address": "12400 N Interstate Hwy 35 Ste A131, Austin, TX 78753",
  "city": "Austin",
  "state": "Texas",
  "countryCode": "US",
  "phone": "(512) 821-2394",
  "phoneUnformatted": "+15128212394",
  "website": "http://www.techridgedental.com/",
  "totalScore": 5,
  "reviewsCount": 1191,
  "emails": ["info@techridgedental.com"],
  "phones": ["+15128212394"],
  "phonesUncertain": [],
  "linkedIns": [],
  "facebooks": ["https://www.facebook.com/techridgedental"],
  "instagrams": [],
  "twitters": [],
  "youtubes": [],
  "tiktoks": [],
  "pinterests": [],
  "githubs": [],
  "whatsapps": [],
  "telegrams": [],
  "contactPageUrl": "https://www.techridgedental.com/contact.html",
  "contactsStatus": "read",
  "contactsError": null,
  "websitePagesRead": 5,
  "url": "https://www.google.com/maps/search/?api=1&query=Tech%20Ridge%20Dental&query_place_id=ChIJg6Z3MsjORIYRZh2Pk4RntBw",
  "searchString": "dentist",
  "language": "en",
  "scrapedAt": "2026-11-13T00:02:05.221Z"
}
```

### Use cases

- **Lead generation:** every business of a type in your territory with its email, phone and social profiles, ready for your CRM or outreach tool.
- **Local marketing and agencies:** find businesses without a website, with few reviews or with unclaimed listings, and reach them on the channels they use.
- **Sales research:** the contact page and social presence of each business before you call.
- **Market research:** how many businesses of a type an area has, how they are rated and which channels they use.
- **Data enrichment:** look up places you already have by place ID or link to add their website contacts.

### API, Python, JavaScript & integrations

**JavaScript**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/google-maps-email-extractor').call({
    searchStringsArray: ['plumber'],
    locationQuery: 'Denver, Colorado, USA',
    maxCrawledPlacesPerSearch: 200,
    website: 'withWebsite',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((p) => [p.title, p.emails.join(', '), p.phones.join(', ')]));
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/google-maps-email-extractor").call(run_input={
    "searchStringsArray": ["accountant"],
    "locationQuery": "Manchester, UK",
    "maxCrawledPlacesPerSearch": 100,
    "sameDomainEmailsOnly": True,
})
for place in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(place["title"], place["emails"], place["linkedIns"], place["contactsStatus"])
```

Connect it to **Make, Zapier, n8n, Google Sheets, HubSpot** and other tools with [Apify integrations](https://docs.apify.com/platform/integrations), get notified with [webhooks](https://docs.apify.com/platform/integrations/webhooks), run it on a [schedule](https://docs.apify.com/platform/schedules), or call it from AI agents through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Limits

- **Websites behind a bot check** that refuses automated visits get the status `blocked`; websites that build their pages with JavaScript only get `js-only`. Their places are saved with their Google Maps details, and their contact details are not charged.
- **Contact forms** are not filled in; only details shown on the pages are collected. Addresses shown only as images cannot be read.
- **Social media pages as websites** (a Facebook page listed as the website) are not read; the profile is put in its column.
- **Up to 10 pages per website.** Contact pages are read first, so 3 to 5 pages find most details.
- **Speed.** Each website is read at a gentle pace, many websites at once. In a test run at the default memory (512 MB) the Actor saved about 54 places a minute, reading 4 pages per website on average; with 1,024 MB it reads twice as many websites at once. Give large runs a long timeout: a run that reaches it stops cleanly and keeps what it saved.
- **A run with 0 results still succeeds.** When a location is unknown, a link or ID leads to no place, or nothing matches a search and its filters, the run ends as Succeeded with a status message naming each search and why, and no results are charged. When nothing in the input can be used (only links to other websites, or a location without a search term), the run also ends as Succeeded, before any request: its status message starts with "Nothing to scrape:", names each entry it could not use and how to fix the input, and no results are charged. A run fails only when Google Maps refuses every one of 3 or more searches and a check on a public search as well.

### FAQ

**How many places can I get?**
Every place Google Maps has for your search in the area: set **Max places per search** to `0`. One search on Google Maps shows at most 120 to 180 places; this Actor splits the area into cells, so a city or a country gives far more.

**What share of places get an email?**
It depends on the business type. In a test run over 240 plumbers and dentists in Denver with websites, 91% of the websites were read, 79% of the places got contact details their Google Maps listing lacks, and 52% got at least one email. Restaurants and shops more often show only a phone number and social profiles.

**Am I charged for places without an email?**
Each place costs the place price. The contact-details price is added only when the website gave at least one email, social profile or phone number the listing does not already show. Use **Website: Only places with a website** to skip places that have none.

**Do I need a Google account or an API key?**
No. The Actor works logged out, without the Google Places API and without any key.

**Why is a place's website `blocked` or `failed`?**
The website may refuse automated visits, be down, have moved, or be parked. `contactsError` says which. Such places pay only the place price.

**Can I get only the company's own email addresses?**
Yes: turn on **Same-domain emails only** to keep `info@acme.com` for acme.com and leave out webmail and third-party addresses.

**Is it legal to extract emails from Google Maps?**
The Actor reads only what Google Maps and each business's website show to every visitor, without logging in. You are responsible for using the data lawfully. Emails and phone numbers can be personal data (for example of sole traders): data-protection laws such as the **GDPR** in the EU and UK and the **CCPA** in California apply when you store or use them, and anti-spam laws such as CAN-SPAM, CASL and the ePrivacy rules apply before you send any message. Collect only what you need, and ask a lawyer if you are unsure.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |

# Actor input Schema

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

What you would type into Google Maps, e.g. <code>dentist</code>, <code>coffee shop</code> or <code>car repair</code>. Each term is one search in the location below. Without a location, a term is searched as typed (write the place into it, e.g. <code>dentist in Austin TX</code>), up to the number of places Google Maps lists for one search.

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

The city, region or country to cover, e.g. <code>Austin, Texas, USA</code>, <code>Bavaria, Germany</code> or <code>Portugal</code>. The area is split into smaller map cells until each cell is fully listed, so a search goes past the 120 to 180 places Google Maps shows for one search. Add the state or country to a town's name so it is not mistaken for another one.

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

How many places to save for each search term (and each search URL), each with its website's contact details. <b>0 or empty means all of them</b>: the whole location is covered.

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

The language of category names, addresses and opening hours, as Google Maps writes them. Any Google language code works, e.g. <code>de</code> or <code>pt-BR</code>.

## `maxPagesPerWebsite` (type: `integer`):

The most pages read on each place's website, contact pages first: the start page, then the contact page, the legal notice (Impressum), about and team pages. <code>1</code> reads the start page only; at most <code>10</code>.

## `sameDomainEmailsOnly` (type: `boolean`):

Keep only email addresses on the website's own domain (<code>info@acme.com</code> for acme.com), leaving out free webmail addresses and addresses of other companies named on the website.

## `coordinates` (type: `string`):

Latitude and longitude of the center, as Google Maps copies them (right-click a spot on the map), e.g. <code>30.2672, -97.7431</code>.

## `radiusKm` (type: `number`):

How far from the center to search, in kilometers, e.g. <code>5</code> or <code>0.5</code>. Default: 5 km.

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

Links copied from Google Maps: a place (<code>https://www.google.com/maps/place/...</code>, <code>maps.app.goo.gl/...</code> share links, <code>?cid=</code> links), or a search in the map view you see (<code>https://www.google.com/maps/search/pizza/@40.73,-73.99,14z</code>), which covers that view.

## `placeIds` (type: `array`):

Google place IDs (<code>ChIJ...</code>) or CIDs (the number in a <code>?cid=</code> link). One place per entry.

## `placeMinimumStars` (type: `string`):

Only places rated at least this many stars (places without a rating are left out). Empty: every place. A number such as <code>4.2</code> works too.

## `website` (type: `string`):

Keep only places that list a website (every place then gets its website read), or only those that do not. Places without a website are saved with their Google Maps details and the status <code>no-website</code>.

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

Leave out places Google Maps marks as permanently or temporarily closed.

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

Apify Proxy (the default) is recommended. The scraper picks Apify Proxy's tier itself, for Google Maps and for the websites: datacenter first, residential only when a request is refused. Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "searchStringsArray": [
    "dentist"
  ],
  "locationQuery": "Austin, Texas, USA",
  "maxCrawledPlacesPerSearch": 20,
  "language": "en",
  "maxPagesPerWebsite": 5,
  "sameDomainEmailsOnly": false,
  "website": "allPlaces",
  "skipClosedPlaces": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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": [
        "dentist"
    ],
    "locationQuery": "Austin, Texas, USA",
    "maxCrawledPlacesPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/google-maps-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": ["dentist"],
    "locationQuery": "Austin, Texas, USA",
    "maxCrawledPlacesPerSearch": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/google-maps-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": [
    "dentist"
  ],
  "locationQuery": "Austin, Texas, USA",
  "maxCrawledPlacesPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call socialscrapers/google-maps-email-extractor --silent --output-dataset

```

## MCP server setup

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