# Google Maps Scraper — Places, Leads & Emails (`rbbscrap/google-maps-scraper`) Actor

Ultra-fast Google Maps & Places business lead scraper. Extract company names, phone numbers, addresses, websites, star ratings, review co.... Compatible Make.com, Zapier, n8n, Sheets & Webhooks. 256MB RAM & sub-second speed.

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

## Pricing

$0.80 / 1,000 scraped google maps places

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?

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

<p align="center">
  <img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/y0h5Xh4ZLYL8d8YO7-actor-bhwgopYTkqggBneVi-LUP3T7HfD4-fast-google-maps-scraper.png" width="110" height="110" style="border-radius: 24px;" alt="Google Maps Scraper — Places, Leads & Emails Official Logo" />
</p>

## Google Maps Scraper — Places, Leads & Emails

**Google Maps Scraper** extracts structured Google Maps records, metadata, metrics, and direct links in real time. Built on a zero-browser HTTP/2 engine running in **256 MB RAM**, it delivers normalized datasets with **zero `null` fields** ready for **CSV, Excel, JSON**, or API pipelines.

> **Looking for related scrapers?** Check out [Google Autocomplete & SEO Scraper](https://apify.com/rbbscrap/google-autocomplete-keyword-scraper), [Google Search Scraper](https://apify.com/rbbscrap/google-search-scraper), [Google News Scraper](https://apify.com/rbbscrap/google-news-scraper), [Google Trends Scraper](https://apify.com/rbbscrap/google-trends-scraper), or browse our [full catalog of 118+ dedicated scrapers](https://apify.com/rbbscrap).

***

### What does Google Maps Scraper do?

Ultra-fast Google Maps & Places business lead scraper. Extract company names, phone numbers, addresses, websites, star ratings, review co.... Compatible Make.com, Zapier, n8n, Sheets & Webhooks. 256MB RAM & sub-second speed.

Whether you need to monitor Google Maps at scale, enrich B2B/B2C databases, or feed structured records into analytics and AI workflows, **Google Maps Scraper** handles pagination, field normalization, and schema validation automatically:

- **Bulk Data Extraction:** Collect Google Maps listings, items, and detailed attributes in batches using keywords, filters, or direct URLs.
- **Complete Public Metadata:** Capture identifiers, pricing/engagement metrics, author/vendor details, timestamps, and canonical URLs.
- **Multi-Format Export:** Download results in **JSON, CSV, Excel (XLSX), XML, or HTML Table** directly from the Apify Console.
- **Ready for Automation & AI:** Connect seamlessly to [Apify Integrations](https://apify.com/integrations) (Make, Zapier, n8n, Google Sheets), [REST API endpoints](https://apify.com/rbbscrap/google-maps-scraper/api), or the [Apify MCP Server](https://apify.com/rbbscrap/google-maps-scraper/api/mcp).

#### Beyond the Official Google Maps API

- **No API Keys or Approval Delays:** Start extracting public Google Maps data immediately without registering developer apps or waiting for quota approvals.
- **No Restrictive Rate Quotas:** Bypass strict per-minute API limits and expensive enterprise tiers while capturing the complete public data points displayed on Google Maps.
- **256 MB Zero-Browser Architecture:** Uses native HTTP/2 and TLS session emulation instead of heavy Chromium instances, executing in seconds at a fraction of standard compute costs.

***

### What data can you scrape from Google Maps?

**Google Maps Scraper** extracts the following data points from Google Maps:

<table>
<tr>
<td>📝 <b>Search Queries</b> (<code>searchQueries</code>)</td>
<td>📝 <b>Language</b> (<code>language</code>)</td>
<td>⭐ <b>Min Rating</b> (<code>minRating</code>)</td>
</tr>
<tr>
<td>👀 <b>Min Reviews</b> (<code>minReviews</code>)</td>
<td>📝 <b>Title</b> (<code>title</code>)</td>
<td>📅 <b>Category</b> (<code>category</code>)</td>
</tr>
<tr>
<td>📍 <b>Address</b> (<code>address</code>)</td>
<td>📧 <b>Phone</b> (<code>phone</code>)</td>
<td>📝 <b>Website</b> (<code>website</code>)</td>
</tr>
<tr>
<td>📧 <b>Emails</b> (<code>emails</code>)</td>
<td>📝 <b>Social Media</b> (<code>socialMedia</code>)</td>
<td>⭐ <b>Rating</b> (<code>rating</code>)</td>
</tr>
</table>

| Data Category | Extracted Fields & Data Points |
| :--- | :--- |
| **Identity & Core Identifiers** | `title` (Title), `placeId` (Place ID) |
| **Metrics, Pricing & Engagement** | `minReviews` (Min Reviews), `reviewsCount` (Reviews Count) |
| **Details, Attributes & Context** | `searchQueries` (Search Queries), `language` (Language), `address` (Address), `phone` (Phone), `website` (Website), `emails` (Emails) |
| **Direct Links, Media & Timestamps** | `minRating` (Min Rating), `category` (Category), `rating` (Rating), `latitude` (Latitude), `googleMapsUrl` (Google Maps URL), `scrapedAt` (Scraped At) |

***

### Why scrape Google Maps? (Typical Use Cases & Guides)

You can use **Google Maps Scraper** for a wide range of data and business workflows:

- **B2B Lead Generation:** Source local businesses, plumbers, dentists, restaurants with verified emails and direct phones for outbound outreach.
- **Local SEO & Competitor Audits:** Track local rankings, rating trends, and review volumes across target postal codes and cities.
- **Directory & CRM Enrichment:** Feed fresh business records straight into HubSpot, Salesforce, Airtable, or Notion.
- **AI Agents, RAG & LLM Knowledge Pipelines:** Stream clean, structured Google Maps JSON records into vector databases, Claude, GPT-4, or LangChain workflows.
- **Automated BI Dashboards & Scheduled Alerts:** Schedule daily or hourly runs and push live Google Maps updates directly to Google Sheets, Looker Studio, Slack, or webhooks.
- **[Market Research & Competitor Analysis](https://apify.com/use-cases/market-research):** Benchmark Google Maps offerings, pricing strategies, and market share across regions.
- **[Lead Generation & CRM Enrichment](https://blog.apify.com/marketing-leads-scraping-with-apify/):** Build targeted prospect lists and sync verified records straight into HubSpot, Salesforce, or Clay.
- **[AI Agents & RAG Pipelines via MCP](https://blog.apify.com/how-to-use-mcp/):** Connect live Google Maps data directly to Claude Desktop, Cursor, or LangChain agents.

***

### How to scrape Google Maps data

**Google Maps Scraper** is designed for a zero-configuration start, even if you have never scraped data before:

1. [Create a free Apify account](https://console.apify.com/sign-up) using your email (includes **$5.00 in free monthly credits**).
2. Open **[Google Maps Scraper](https://apify.com/rbbscrap/google-maps-scraper)** and click on the **[Input tab](https://apify.com/rbbscrap/google-maps-scraper/input)** — all required fields are already pre-filled with a working example.
3. Enter your search terms, target URLs, or filter criteria (or keep the default pre-filled configuration for an instant 1-Click test).
4. Click the green **"Start"** button and wait a few seconds for the data to be extracted.
5. Download your dataset in **JSON, CSV, Excel (XLSX), or HTML**, or fetch it via the [API tab](https://apify.com/rbbscrap/google-maps-scraper/api).

> For more technical details on every parameter, check out the [Input Schema tab](https://apify.com/rbbscrap/google-maps-scraper/input-schema) or read the [Apify Platform Documentation](https://docs.apify.com/platform/actors/running).

#### 🔗 How to scrape Google Maps by Search Term or Direct URL

<table>
<tr>
<td><b>Scraping by Search Term / Filter 🔑</b></td>
<td>Enter keywords, categories, or filter parameters just as you would search on Google Maps. Set the maximum number of items you want to extract and click <b>Start</b>.</td>
</tr>
<tr>
<td><b>Scraping by Direct URL 🔗</b></td>
<td>Paste one or more direct Google Maps links (or import a list of URLs from a Google Sheet / CSV) to extract targeted item or profile details in bulk.</td>
</tr>
</table>

***

### ⬇️ Input Configuration & Examples

To start scraping Google Maps, fill in the visual input form in the Apify Console or pass a JSON payload via the API. Full technical specifications are available on the [Input Schema tab](https://apify.com/rbbscrap/google-maps-scraper/input-schema).

#### Input Parameters Reference

| Parameter | Type | Default / Prefill | Description |
| :--- | :---: | :---: | :--- |
| `searchQueries` | `array` | `["dentist in New York"]` | Local business search queries (e.g. 'dentist in New York', 'plumber in Austin TX', 'Italian restaurants in Paris'). |
| `language` | `string` | `en` | Language for Google Maps results (e.g., 'en', 'fr', 'es', 'de'). |
| `minRating` | `number` | `0` | Filter businesses by minimum Google rating (e.g. 4.0 or 4.5). |
| `minReviews` | `integer` | `0` | Only keep businesses with at least this number of customer reviews. |
| `skipClosedPlaces` | `boolean` | `true` | Automatically discard places marked as permanently or temporarily closed on Google Maps. |
| `onlyWithWebsite` | `boolean` | `false` | Discard places that do not have a public website URL. |
| `onlyWithPhone` | `boolean` | `false` | Discard places that do not provide a direct telephone number. |
| `categoryFilter` | `string` | — | Optional keyword to filter business categories (e.g., 'Dentist', 'Restaurant', 'Clinic'). |
| `extractEmails` | `boolean` | `true` | Automatically inspect business website homepages to extract contact emails. |
| `extractSocialMedia` | `boolean` | `true` | Automatically extract direct social media links from the company website. |
| `maxItemsPerQuery` | `integer` | `30` | Maximum number of places/leads to extract per query. |
| `proxyConfiguration` | `object` | `{"useApifyProxy":true}` | Select Apify Proxy (Residential or Datacenter) to prevent Google rate limits and IP blocks. |

#### Example 1: Standard Extraction (1-Click Default)

```json
{
  "searchQueries": [
    "dentist in New York"
  ],
  "language": "en",
  "minRating": 0,
  "minReviews": 0
}
```

#### Example 2: Filtered & Batch Extraction

```json
{
  "searchQueries": [
    "dentist in New York"
  ],
  "language": "en",
  "minRating": 0,
  "minReviews": 0,
  "skipClosedPlaces": true,
  "onlyWithWebsite": true,
  "onlyWithPhone": true,
  "extractEmails": true,
  "extractSocialMedia": true,
  "maxItemsPerQuery": 60
}
```

***

### ⬆️ Output Example (Table View, JSON & Fields Reference)

The scraped results are stored in a structured Apify Dataset available in the **Storage** tab. Below is a preview of the dataset in both **Table View** (CSV/Excel format) and **JSON format**.

#### Table View (CSV / Excel Dataset Preview)

| Search Queries | Language | Min Rating | Min Reviews |
| :--- | :--- | :--- | :--- |
| `dentist in New York` | `en` | `0` | `0` |
| `dentist in New York` | `en` | `1` | `1` |
| `dentist in New York` | `en` | `1` | `1` |

#### JSON Output Example

```json
{
  "searchQueries": [
    "dentist in New York"
  ],
  "language": "en",
  "minRating": 0,
  "minReviews": 0
}
```

#### Output Fields Reference

| Field Name | Type | Description |
| :--- | :---: | :--- |
| `searchQueries` | `array` | Extracted search queries value. |
| `language` | `string` | Extracted language value. |
| `minRating` | `number` | Extracted min rating value. |
| `minReviews` | `number` | Extracted min reviews value. |
| `title` | `string` | Business or place name |
| `category` | `string` | Primary category (e.g. Dental clinic, Plumber, Restaurant) |
| `address` | `string` | Full street address |
| `phone` | `string` | Business telephone number |
| `website` | `string` | Official company website URL |
| `emails` | `array` | Extracted business email addresses |
| `socialMedia` | `object` | Social media profile links (Facebook, Instagram, LinkedIn, Twitter/X) |
| `rating` | `number` | Average Google star rating (1.0 to 5.0) |
| `reviewsCount` | `integer / number` | Total number of user reviews |
| `isClosed` | `boolean` | Whether the place is permanently or temporarily closed |
| `placeId` | `string` | Google Place ID or unique CID |
| `latitude` | `number` | Geographical latitude coordinate |
| `longitude` | `number` | Geographical longitude coordinate |
| `googleMapsUrl` | `string` | Direct Google Maps place URL |
| `searchQuery` | `string` | Original search keyword |
| `scrapedAt` | `string` | ISO timestamp of extraction |

***

### 🔗 Scrape any data you need with dedicated scrapers

Combine **Google Maps Scraper** with our other dedicated scrapers from [@RBBscrap](https://apify.com/rbbscrap) if you want to extract specialized data across platforms:

<table>
<tr>
<td>🔹 <a href="https://apify.com/rbbscrap/google-autocomplete-keyword-scraper"><b>Google Autocomplete & SEO Scraper</b></a></td>
<td>🔹 <a href="https://apify.com/rbbscrap/google-search-scraper"><b>Google Search Scraper</b></a></td>
<td>🔹 <a href="https://apify.com/rbbscrap/google-news-scraper"><b>Google News Scraper</b></a></td>
</tr>
<tr>
<td>🔹 <a href="https://apify.com/rbbscrap/google-trends-scraper"><b>Google Trends Scraper</b></a></td>
<td>🔹 <a href="https://apify.com/rbbscrap/google-play-scraper"><b>Google Play Scraper</b></a></td>
<td>🔹 <a href="https://apify.com/rbbscrap/google-patents-scraper"><b>Google Patents Scraper</b></a></td>
</tr>
</table>

| Scraper | Extracted Data & Primary Use Case |
| :--- | :--- |
| **[Google Autocomplete & SEO Scraper](https://apify.com/rbbscrap/google-autocomplete-keyword-scraper)** | Search Ideas |
| **[Google Search Scraper](https://apify.com/rbbscrap/google-search-scraper)** | SERP & People Also Ask |
| **[Google News Scraper](https://apify.com/rbbscrap/google-news-scraper)** | Global Headlines & PR |
| **[Google Trends Scraper](https://apify.com/rbbscrap/google-trends-scraper)** | Real |
| **[Google Play Scraper](https://apify.com/rbbscrap/google-play-scraper)** | Apps, Installs & Reviews |
| **[Google Patents Scraper](https://apify.com/rbbscrap/google-patents-scraper)** | Prior Art & Claims |

***

### ⚠️ Error Items & Resilience Reference

**Google Maps Scraper** is engineered to process multi-query and batch runs resiliently without crashing if a single query or URL fails:

| Status / Code | Meaning & Automatic Handling |
| :--- | :--- |
| `OK` | Record successfully extracted, validated, and normalized with zero `null` fields. |
| `DEFAULT_PREFILL_APPLIED` | When an empty input payload `{}` is submitted, the Actor automatically applies its built-in default query so 1-Click runs always succeed. |
| `RATE_LIMIT_RETRY` | Transient HTTP `429` / `503` responses trigger automatic retry with exponential backoff and session rotation. |
| `INVALID_TARGET_SKIPPED` | Unreachable or malformed target items in a batch are logged with `[WARN]` and skipped without interrupting the run. |

***

### ❓ Frequently Asked Questions (FAQ)

#### How much does scraping Google Maps cost?

**Google Maps Scraper** uses transparent **Pay-Per-Event (`PAY_PER_EVENT`)** pricing set **10x cheaper than the market leader** ($\div 10$):

- **Event Rate:** **$0.0004** per *Scraped Google Maps Scraper Record* (**$0.4 per 1,000 items**).
- **🎁 1st Run 100% FREE:** Your very first execution is **100% free** (`$0.00` event charges are applied on your initial run).
- **Apify Free Plan ($5.00/month included):** Every Apify account receives **$5.00 in free monthly credits**, which is enough to extract up to **~12,500 items per month for free**.
- View full details on the [Pricing tab](https://apify.com/rbbscrap/google-maps-scraper/pricing) and the [Apify Pricing page](https://apify.com/pricing).

#### Can I integrate Google Maps Scraper with Make, Zapier, n8n, or Google Sheets?

Yes. **Google Maps Scraper** can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations), including [Make](https://docs.apify.com/platform/integrations/make), [Zapier](https://docs.apify.com/platform/integrations/zapier), [n8n](https://docs.apify.com/platform/integrations/n8n), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [Google Sheets](https://docs.apify.com/platform/integrations/google-sheets), [Google Drive](https://docs.apify.com/platform/integrations/drive), and [webhooks](https://docs.apify.com/platform/integrations/webhooks).

#### Can I use Google Maps Scraper with the Apify API (Python & Node.js)?

Yes. The Apify API gives you programmatic access to run **Google Maps Scraper**, schedule jobs, and fetch datasets. Use the `apify-client` [PyPI package](https://apify.com/rbbscrap/google-maps-scraper/api/python) for Python or the `apify-client` [NPM package](https://apify.com/rbbscrap/google-maps-scraper/api/javascript) for Node.js, or check the [Apify API Reference](https://docs.apify.com/api/v2):

**Python (`apify-client`)**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run = client.actor("rbbscrap/google-maps-scraper").call(run_input={
    "searchQueries": ["dentist in New York"],
    "language": "en",
    "minRating": 0,
    "minReviews": 0
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js (`apify-client`)**

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

const client = new ApifyClient({ token: 'YOUR_APIFY_API_TOKEN' });

const run = await client.actor('rbbscrap/google-maps-scraper').call({
    searchQueries: ["dentist in New York"],
    language: "en",
    minRating: 0,
    minReviews: 0
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Can I use Google Maps Scraper through an MCP Server (Claude Desktop, Cursor, AI Agents)?

Yes. With the Apify API, you can use **Google Maps Scraper** in conjunction with an MCP server to connect directly to **Claude Desktop, Cursor, Windsurf, or LibreChat**. Read the official guide on [how to set up Apify Actors with MCP](https://blog.apify.com/how-to-use-mcp/), or go to the [MCP tab](https://apify.com/rbbscrap/google-maps-scraper/api/mcp):

1. Start a Server-Sent Events (SSE) session to receive a `sessionId`.
2. Send API messages using that `sessionId` to trigger **Google Maps Scraper** with your input parameters.
3. Receive structured Google Maps dataset records directly inside your AI agent conversation.

#### Do I need residential proxies or login cookies to scrape Google Maps?

No. **Google Maps Scraper** operates on a zero-browser HTTP/2 protocol engine (256 MB RAM) and works out-of-the-box without requiring login cookies or external proxies for standard workloads. For high-volume enterprise runs, you can optionally use [Apify Proxy](https://docs.apify.com/proxy) in the input configuration.

#### Is it legal to scrape data from Google Maps?

Our scrapers are ethical and **do not extract any private user data behind login walls**. They only extract what is shared publicly on the web. However, please keep in mind that personal data is protected by **GDPR ([EU Regulation 2016/679](https://eur-lex.europa.eu/eli/reg/2016/679/oj))** and other regulations worldwide. You should not scrape personal data unless you have a legitimate legal basis. Read more in Apify's guide on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

#### Your feedback & support

We are continuously improving the performance of our Actors. If you have any technical feedback for **Google Maps Scraper**, need a custom feature, or found a bug, please create an issue on the Actor's [Issues tab](https://apify.com/rbbscrap/google-maps-scraper/issues/open) in the Apify Console.

# Actor input Schema

## `searchQueries` (type: `array`):

Local business search queries (e.g. 'dentist in New York', 'plumber in Austin TX', 'Italian restaurants in Paris').

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

Language for Google Maps results (e.g., 'en', 'fr', 'es', 'de').

## `minRating` (type: `number`):

Filter businesses by minimum Google rating (e.g. 4.0 or 4.5).

## `minReviews` (type: `integer`):

Only keep businesses with at least this number of customer reviews.

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

Automatically discard places marked as permanently or temporarily closed on Google Maps.

## `onlyWithWebsite` (type: `boolean`):

Discard places that do not have a public website URL.

## `onlyWithPhone` (type: `boolean`):

Discard places that do not provide a direct telephone number.

## `categoryFilter` (type: `string`):

Optional keyword to filter business categories (e.g., 'Dentist', 'Restaurant', 'Clinic').

## `extractEmails` (type: `boolean`):

Automatically inspect business website homepages to extract contact emails.

## `extractSocialMedia` (type: `boolean`):

Automatically extract direct social media links from the company website.

## `maxItemsPerQuery` (type: `integer`):

Maximum number of places/leads to extract per query.

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

Select Apify Proxy (Residential or Datacenter) to prevent Google rate limits and IP blocks.

## `maxExecutionTimeSecs` (type: `integer`):

Fail-Fast safety ceiling timeout in seconds (15 to 90s). Prevents long-running runs from wasting compute units.

## Actor input object example

```json
{
  "searchQueries": [
    "dentist in New York"
  ],
  "language": "en",
  "minRating": 0,
  "minReviews": 0,
  "skipClosedPlaces": true,
  "onlyWithWebsite": false,
  "onlyWithPhone": false,
  "categoryFilter": "",
  "extractEmails": true,
  "extractSocialMedia": true,
  "maxItemsPerQuery": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxExecutionTimeSecs": 75
}
```

# 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 = {
    "searchQueries": [
        "dentist in New York"
    ],
    "language": "en",
    "minRating": 0,
    "minReviews": 0,
    "skipClosedPlaces": true,
    "onlyWithWebsite": false,
    "onlyWithPhone": false,
    "categoryFilter": "",
    "extractEmails": true,
    "extractSocialMedia": true,
    "maxItemsPerQuery": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    },
    "maxExecutionTimeSecs": 75
};

// Run the Actor and wait for it to finish
const run = await client.actor("rbbscrap/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 = {
    "searchQueries": ["dentist in New York"],
    "language": "en",
    "minRating": 0,
    "minReviews": 0,
    "skipClosedPlaces": True,
    "onlyWithWebsite": False,
    "onlyWithPhone": False,
    "categoryFilter": "",
    "extractEmails": True,
    "extractSocialMedia": True,
    "maxItemsPerQuery": 30,
    "proxyConfiguration": { "useApifyProxy": True },
    "maxExecutionTimeSecs": 75,
}

# Run the Actor and wait for it to finish
run = client.actor("rbbscrap/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 '{
  "searchQueries": [
    "dentist in New York"
  ],
  "language": "en",
  "minRating": 0,
  "minReviews": 0,
  "skipClosedPlaces": true,
  "onlyWithWebsite": false,
  "onlyWithPhone": false,
  "categoryFilter": "",
  "extractEmails": true,
  "extractSocialMedia": true,
  "maxItemsPerQuery": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxExecutionTimeSecs": 75
}' |
apify call rbbscrap/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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