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

Scrape Google Maps in seconds. Extract businesses, reviews, images, contacts, emails, social media, opening hours, and more. The fastest Google Maps scraper on Apify with pay-per-event pricing.

- **URL**: https://apify.com/betterdevsscrape/google-maps-scraper.md
- **Developed by:** [Better Devs Scrape](https://apify.com/betterdevsscrape) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Stats:** 47 total users, 9 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.003 / place scraped

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper - The Fastest Google Maps Scraper on Apify

**Extract business details, reviews, photos, contact info, and social media from Google Maps — faster than any other scraper on the platform.**

🚀 **Dead simple:** Enter search terms + location, click Run, get data in seconds.

---

### ⚡ Why We're Faster

| Metric | This Scraper | Other Scrapers |
|--------|-------------|----------------|
| **Speed** | 50 places in ~4 seconds | 10+ minutes |
| **Memory** | 128 MB minimum | 4 GB+ required |
| **Reviews** | 95%+ success rate | Hit-or-miss |
| **Images** | 5-20 per place | Often 0 |
| **Review limit** | Up to 500 per place | Max 20 |
| **Cost** | ~$0.31 per 100 places | $0.50+ per 100 places |

---

### 🏆 Why Use This Google Maps Scraper?

| Feature | Description |
|---------|-------------|
| ⚡ **10x faster** | Results in seconds, not minutes |
| 📝 **Reliable reviews** | Automatic retry + pagination for up to 500 reviews per place |
| 🖼️ **Real images** | 5-20 high-res photos per place, not broken URLs |
| 📧 **Contact enrichment** | Emails scraped from business websites |
| 📱 **Social media** | 8+ platforms supported |
| 📍 **Parsed addresses** | Street, city, country, postal code |
| 💰 **Cheapest on Apify** | Pay-per-event pricing, 10-30% cheaper than alternatives |

---

### 📊 What Data Can You Extract?

| Category | Data Types |
|----------|------------|
| 🏢 **Business Info** | Name, categories, price level, permanently/temporarily closed status |
| 📍 **Location** | Full address, street, city, state, country code, postal code, coordinates, Plus Code |
| 📞 **Contact** | Phone number, website URL |
| ⭐ **Ratings** | Total score, review count |
| 🕐 **Hours** | Full weekly schedule, current open/closed status |
| 📝 **Reviews** | Review text, star rating, date, reviewer info, owner responses (paginated, up to 500) |
| 🖼️ **Photos** | High-res image URLs, 5-20 per place |
| ❓ **Q&A** | Questions and answers from Google Maps |
| 🍽️ **Restaurant Data** | Menu URL, order URL, reservation URL, reservation provider (OpenTable, Resy, etc.) |
| 📧 **Contact Enrichment** | Emails, phones scraped from business websites |
| 📱 **Social Media** | Facebook, Instagram, YouTube, TikTok, Twitter, LinkedIn, Pinterest, Discord |

---

### 🆕 Key Features

#### ⚡ Blazing Fast
Results in seconds. 50 places in ~4 seconds for basic data. Even with reviews and images, 40 places finish in under 5 minutes.

#### 📝 Reliable Review Extraction
- **Automatic retry** — if the first attempt fails, tries again automatically
- **Pagination** — fetch 25, 50, or even 500 reviews per place. No 20-review limit
- **Review photos** — images from reviews are automatically included
- **95%+ success rate**

#### 🖼️ Real Image Extraction
- **5-20 high-res images** per place from the photo gallery
- **Smart fallbacks** — always tries to find at least one image
- **Review photos** merged automatically as bonus images
- **No duplicates**

#### 📧 Contact Enrichment
Don't just get the phone from Google Maps - **scrape the actual business website** to find:
- Email addresses (including Cloudflare-protected)
- Additional phone numbers
- Social media profiles (8+ platforms)

#### 📍 Parsed Address Components
Get addresses broken down into usable fields:
```json
{
  "address": "123 Main St, New York, NY 10001, USA",
  "street": "123 Main St",
  "city": "New York",
  "state": "NY",
  "countryCode": "US",
  "postalCode": "10001"
}
````

#### ⭐ Full Review Data with Pagination

Extract complete reviews with owner responses — no 20-review limit:

```json
{
  "text": "Amazing food and service!",
  "stars": 5,
  "publishedAtDate": "2 weeks ago",
  "responseFromOwnerText": "Thank you for visiting!"
}
```

#### 🎯 Smart Filtering

- **Skip closed places** - Don't waste budget on permanently/temporarily closed businesses
- **Minimum stars filter** - Only scrape places with 4+ stars
- **Website filter** - Only places with/without websites
- **Exact match** - Only places matching your search term exactly

***

### ⚙️ How to Scrape Google Maps

```
1️⃣ Enter search terms (e.g., "restaurants", "dentist", "hotels")
2️⃣ Enter location (e.g., "New York, NY" or "Paris, France")
3️⃣ Set how many places you want
4️⃣ Click "Start" and get clean, structured data in seconds
```

The scraper automatically:

- 🗺️ **Splits location into tiles** - Finds more results than Google's 120 limit
- 🔄 **Deduplicates results** - No duplicate places in your data
- 🍪 **Handles consent dialogs** - Works in EU and other regions
- 📍 **Parses addresses** - Extracts street, city, country components
- 🔁 **Retries on failure** - Automatic recovery for maximum data quality

***

### 📥 Input Options

```json
{
  "searchStringsArray": ["restaurants", "cafes"],
  "locationQuery": "Paris, France",
  "maxCrawledPlacesPerSearch": 100,
  "language": "en",
  "maxReviews": 10,
  "maxImages": 5,
  "scrapeContacts": true,
  "skipClosedPlaces": true,
  "placeMinimumStars": "4"
}
```

#### 📋 Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchStringsArray` | array | required | Search terms like "restaurants", "hotels" |
| `locationQuery` | string | - | Location to search (city, region, address) |
| `startUrls` | array | - | Direct Google Maps URLs to scrape |
| `placeIds` | array | - | Google Place IDs to scrape directly |
| `maxCrawledPlacesPerSearch` | number | 50 | Max places per search term (up to 500) |
| `language` | string | "en" | Language code for results |

#### ⭐ Review Options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `maxReviews` | number | 0 | Reviews to extract per place (up to 500, paginated) |
| `reviewsSort` | string | "newest" | Sort: "newest", "relevant", "highest", "lowest" |
| `reviewsStartDate` | string | - | Only reviews after this date (YYYY-MM-DD or "7 days") |
| `reviewsFilterString` | string | - | Only reviews containing this text |
| `scrapeReviewsPersonalData` | boolean | false | Include reviewer names and URLs |

#### 🖼️ Image Options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `maxImages` | number | 0 | Images to extract per place (up to 100) |
| `scrapeImageAuthors` | boolean | false | Include photographer info |

#### 📧 Contact Enrichment

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `scrapeContacts` | boolean | false | Extract emails/phones from websites |
| `maximumLeadsEnrichmentRecords` | number | 0 | Max places to enrich (0 = unlimited) |
| `scrapeSocialMediaProfiles` | object | all true | Which platforms to extract |

#### 🎯 Filtering Options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `skipClosedPlaces` | boolean | false | Skip permanently/temporarily closed |
| `placeMinimumStars` | string | "" | Minimum rating (e.g., "4" for 4+ stars) |
| `website` | string | "allPlaces" | "allPlaces", "withWebsite", "withoutWebsite" |
| `searchMatching` | string | "all" | "all" or "exact" (title must contain search term) |

***

### 📤 Output Format

Each place is output as a structured JSON object:

```json
{
  "title": "Le Petit Cafe",
  "totalScore": 4.7,
  "reviewsCount": 342,
  "categoryName": "Coffee shop",
  "categories": ["Coffee shop", "Cafe"],
  "address": "15 Rue de Rivoli, Paris 75001, France",
  "street": "15 Rue de Rivoli",
  "city": "Paris",
  "state": null,
  "countryCode": "FR",
  "postalCode": "75001",
  "phone": "+33 1 42 60 82 00",
  "website": "https://lepetitcafe.fr",
  "menuUrl": "https://lepetitcafe.fr/menu",
  "reservationsUrl": "https://opentable.com/...",
  "tableReservationProvider": "OpenTable",
  "openingHours": [
    {"day": "Monday", "hours": "7 AM-7 PM"},
    {"day": "Tuesday", "hours": "7 AM-7 PM"}
  ],
  "location": {"lat": 48.8606, "lng": 2.3376},
  "placeId": "ChIJLU7jZClu5kcR...",
  "url": "https://www.google.com/maps/search/?api=1&query=...",
  "reviews": [
    {
      "text": "Best croissants in Paris!",
      "stars": 5,
      "publishedAtDate": "a week ago",
      "responseFromOwnerText": "Merci beaucoup!"
    }
  ],
  "images": [
    {"imageUrl": "https://lh5.googleusercontent.com/...=w1200"}
  ],
  "contactInfo": {
    "emails": ["contact@lepetitcafe.fr"],
    "phones": ["+33142608200"],
    "facebooks": ["https://facebook.com/lepetitcafe"],
    "instagrams": ["https://instagram.com/lepetitcafe"]
  }
}
```

***

### 💰 How Much Does It Cost?

This Actor uses **Pay-Per-Event** pricing. You only pay for data actually scraped. **10-30% cheaper than alternatives.**

| Event | Cost |
|-------|------|
| 🚀 Actor start | $0.005 |
| 🏢 Place scraped | $0.003 |
| 🔍 Filter applied (place skipped) | $0.001 |
| 📝 Additional details (reviews/images/Q\&A) | $0.002 |
| 📧 Contact enrichment | $0.002 |
| ⭐ Per review | $0.0004 |
| 🖼️ Per image | $0.0004 |

#### 💵 Cost Examples

| Task | Places | Reviews | Cost |
|------|--------|---------|------|
| 100 restaurants (basic info only) | 100 | 0 | ~**$0.31** |
| 100 restaurants + 5 reviews each | 100 | 500 | ~**$0.71** |
| 50 hotels + contact enrichment | 50 | 0 | ~**$0.26** |
| 500 businesses + reviews + contacts | 500 | 2,500 | ~**$4.51** |

***

### 🎯 Use Cases

#### 📈 Lead Generation

Scrape businesses in any industry to build targeted lead lists with emails, phones, and social media.

#### 💼 Sales Prospecting

Find decision-makers at businesses with verified contact information from their websites.

#### 🔍 Market Research

Analyze competitors, discover market trends, and understand customer sentiment through reviews.

#### 🏢 Local SEO

Monitor local business listings, track ratings, and analyze competitor positioning.

#### 📊 Data Enrichment

Enhance your existing business database with Google Maps data and contact info.

***

### 💡 Tips for Best Results

#### 🧪 Start Small

Test with `maxCrawledPlacesPerSearch: 10` before scaling up.

#### 🎯 Use Specific Searches

"Italian restaurant" finds better results than just "restaurant".

#### 📍 Be Specific with Location

"Manhattan, New York" is better than just "New York".

#### ⭐ Filter for Quality

Use `placeMinimumStars: "4"` to only get well-reviewed places.

#### 📧 Limit Contact Enrichment

Set `maximumLeadsEnrichmentRecords: 100` to control costs.

#### 📝 Get More Reviews

Set `maxReviews: 50` or higher — pagination handles it automatically.

***

### ❓ FAQ

#### How is this different from other Google Maps scrapers?

We're the **fastest scraper on Apify**. We extract more data (contact enrichment, parsed addresses, paginated reviews up to 500) at a lower price. Plus we handle consent dialogs and location tiling automatically.

#### How fast is it really?

**50 places with basic info in ~4 seconds.** With 10 reviews + 5 images each, 40 places complete in ~4.5 minutes.

#### Can I scrape thousands of places?

Yes! The scraper is designed for scale. We split large areas into tiles to bypass Google's 120 result limit. Run 500 places per search term without issues.

#### How reliable are reviews?

**95%+ success rate.** Automatic retry and pagination ensure you get the reviews you asked for.

#### Can I get more than 20 reviews per place?

Yes! Set `maxReviews` up to 500. Reviews are automatically paginated.

#### Why are some places missing data?

Not all businesses have reviews, images, or websites. The scraper returns what's available on Google Maps.

#### Does contact enrichment always find emails?

No - it depends on whether the business website has publicly visible contact info. You only pay when data is found.

#### Can I scrape in different languages?

Yes! Set the `language` parameter to any supported language code (en, fr, de, es, etc.).

***

### 🔌 Integrations

#### 📦 Export Options

- **JSON** - Full structured data
- **CSV** - Spreadsheet-ready format
- **Excel** - Direct download

#### 🔗 API Access

**cURL:**

```bash
curl -X POST "https://api.apify.com/v2/acts/betterdevsscrape~google-maps-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "searchStringsArray": ["restaurants"],
    "locationQuery": "New York, USA",
    "maxCrawledPlacesPerSearch": 10,
    "maxReviews": 5,
    "maxImages": 3,
    "scrapeContacts": true
  }'
```

**Python:**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("betterdevsscrape/google-maps-scraper").call(run_input={
    "searchStringsArray": ["restaurants"],
    "locationQuery": "New York, USA",
    "maxCrawledPlacesPerSearch": 10,
    "maxReviews": 5,
    "maxImages": 3,
    "scrapeContacts": True,
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item.get("contactInfo", {}).get("emails", []))
```

**Node.js:**

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

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('betterdevsscrape/google-maps-scraper').call({
    searchStringsArray: ['restaurants'],
    locationQuery: 'New York, USA',
    maxCrawledPlacesPerSearch: 10,
    maxReviews: 5,
    maxImages: 3,
    scrapeContacts: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => console.log(item.title, item.contactInfo?.emails));
```

#### 🪝 Webhooks

Get notified when scraping completes.

#### 🔄 Integrations

Connect via Zapier, Make, or any REST API platform.

***

### 🔗 Related Tools

#### [Website Contact Extractor](https://apify.com/betterdevsscrape/contact-details-extractor)

Need even deeper contact extraction? Our **Website Contact Extractor** scrapes emails, phone numbers, and **25+ social media profiles** directly from any website — at just **$0.001 per page**.

**Perfect combo:** Use Google Maps Scraper to find businesses, then feed their websites into the Contact Extractor for comprehensive contact data including LinkedIn, Twitter, Telegram, WhatsApp, and more.

***

### 💬 Support

- 🐛 **Issues?** Contact us through Apify
- 💡 **Feature requests?** We'd love to hear from you
- ❓ **Questions?** Reach out via Apify

***

**The fastest Google Maps scraper on Apify** | [View Changelog](./CHANGELOG.md)

# Actor input Schema

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

Search terms like 'restaurant', 'hotel', 'dentist'

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

Location like 'New York, USA' or 'London, UK'

## `countryCode` (type: `string`):

Country code (us, gb, de, etc.)

## `city` (type: `string`):

City name

## `state` (type: `string`):

State or province

## `postalCode` (type: `string`):

Postal/ZIP code

## `customGeolocation` (type: `object`):

GeoJSON Polygon, MultiPolygon, or Point with radiusKm

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

Direct Google Maps URLs to scrape

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

Direct Google Place IDs

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

Maximum places to extract per search term

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

Output language code

## `maxReviews` (type: `integer`):

Number of reviews to extract (0 = none)

## `reviewsSort` (type: `string`):

Sort order for reviews (newest, mostRelevant, highestRanking, lowestRanking)

## `reviewsStartDate` (type: `string`):

Only scrape reviews after this date (YYYY-MM-DD or '7 days')

## `reviewsFilterString` (type: `string`):

Only include reviews containing this text

## `reviewsOrigin` (type: `string`):

Filter reviews by origin

## `maxImages` (type: `integer`):

Number of images to extract (0 = none)

## `scrapeImageAuthors` (type: `boolean`):

Include image author information

## `scrapeReviewsPersonalData` (type: `boolean`):

Include reviewer name, ID, photo URL

## `scrapeContacts` (type: `boolean`):

Scrape emails and social profiles from business website

## `maximumLeadsEnrichmentRecords` (type: `integer`):

Maximum number of places to enrich with contact details (0 = all)

## `scrapeSocialMediaProfiles` (type: `object`):

Which social media profiles to extract: facebooks, instagrams, youtubes, tiktoks, twitters

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

Skip permanently or temporarily closed places

## `searchMatching` (type: `string`):

How strictly to match search terms

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

Only include places with at least this rating (e.g., '4' for 4+ stars)

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

Filter places by website availability

## `scrapePlaceDetailPage` (type: `boolean`):

Whether to visit each place's detail page for full data

## `scrapeTableReservationProvider` (type: `boolean`):

Extract table reservation provider info

## `maxQuestions` (type: `integer`):

Number of Q\&A entries to extract (0 = none)

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests. Higher values are faster but may trigger rate limits. (1-10)

## `proxyConfig` (type: `object`):

Proxy settings

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurant"
  ],
  "locationQuery": "New York, USA",
  "maxCrawledPlacesPerSearch": 50,
  "language": "en",
  "maxReviews": 0,
  "reviewsSort": "newest",
  "reviewsOrigin": "all",
  "maxImages": 0,
  "scrapeImageAuthors": false,
  "scrapeReviewsPersonalData": false,
  "scrapeContacts": false,
  "maximumLeadsEnrichmentRecords": 0,
  "scrapeSocialMediaProfiles": {
    "facebooks": true,
    "instagrams": true,
    "youtubes": true,
    "tiktoks": true,
    "twitters": true
  },
  "skipClosedPlaces": false,
  "searchMatching": "all",
  "website": "allPlaces",
  "scrapePlaceDetailPage": true,
  "scrapeTableReservationProvider": false,
  "maxQuestions": 0,
  "maxConcurrency": 5,
  "proxyConfig": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Key business details at a glance - name, rating, category, address, phone, website

## `places` (type: `string`):

Complete place data including hours, coordinates, categories, and all scraped fields

## `reviews` (type: `string`):

Customer reviews with ratings, text, dates, and owner responses

## `contacts` (type: `string`):

Extracted contact information - emails, phones, social media from business websites

# 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"
    ],
    "locationQuery": "New York, USA"
};

// Run the Actor and wait for it to finish
const run = await client.actor("betterdevsscrape/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": ["restaurant"],
    "locationQuery": "New York, USA",
}

# Run the Actor and wait for it to finish
run = client.actor("betterdevsscrape/google-maps-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
  ],
  "locationQuery": "New York, USA"
}' |
apify call betterdevsscrape/google-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=betterdevsscrape/google-maps-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Scraper",
        "description": "Scrape Google Maps in seconds. Extract businesses, reviews, images, contacts, emails, social media, opening hours, and more. The fastest Google Maps scraper on Apify with pay-per-event pricing.",
        "version": "1.0",
        "x-build-id": "s3Mb4hD9wId0fPnHa"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/betterdevsscrape~google-maps-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-betterdevsscrape-google-maps-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/betterdevsscrape~google-maps-scraper/runs": {
            "post": {
                "operationId": "runs-sync-betterdevsscrape-google-maps-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/betterdevsscrape~google-maps-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-betterdevsscrape-google-maps-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchStringsArray": {
                        "title": "Search Terms",
                        "type": "array",
                        "description": "Search terms like 'restaurant', 'hotel', 'dentist'",
                        "items": {
                            "type": "string"
                        }
                    },
                    "locationQuery": {
                        "title": "Location (free text)",
                        "type": "string",
                        "description": "Location like 'New York, USA' or 'London, UK'"
                    },
                    "countryCode": {
                        "title": "Country",
                        "type": "string",
                        "description": "Country code (us, gb, de, etc.)"
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "City name"
                    },
                    "state": {
                        "title": "State/Province",
                        "type": "string",
                        "description": "State or province"
                    },
                    "postalCode": {
                        "title": "Postal Code",
                        "type": "string",
                        "description": "Postal/ZIP code"
                    },
                    "customGeolocation": {
                        "title": "Custom Geolocation (GeoJSON)",
                        "type": "object",
                        "description": "GeoJSON Polygon, MultiPolygon, or Point with radiusKm"
                    },
                    "startUrls": {
                        "title": "Google Maps URLs",
                        "type": "array",
                        "description": "Direct Google Maps URLs to scrape",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "placeIds": {
                        "title": "Place IDs",
                        "type": "array",
                        "description": "Direct Google Place IDs",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxCrawledPlacesPerSearch": {
                        "title": "Max Places Per Search",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum places to extract per search term",
                        "default": 50
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Output language code",
                        "default": "en"
                    },
                    "maxReviews": {
                        "title": "Max Reviews Per Place",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Number of reviews to extract (0 = none)",
                        "default": 0
                    },
                    "reviewsSort": {
                        "title": "Reviews Sort Order",
                        "enum": [
                            "newest",
                            "mostRelevant",
                            "highestRanking",
                            "lowestRanking"
                        ],
                        "type": "string",
                        "description": "Sort order for reviews (newest, mostRelevant, highestRanking, lowestRanking)",
                        "default": "newest"
                    },
                    "reviewsStartDate": {
                        "title": "Reviews Start Date",
                        "type": "string",
                        "description": "Only scrape reviews after this date (YYYY-MM-DD or '7 days')"
                    },
                    "reviewsFilterString": {
                        "title": "Reviews Filter String",
                        "type": "string",
                        "description": "Only include reviews containing this text"
                    },
                    "reviewsOrigin": {
                        "title": "Reviews Origin",
                        "enum": [
                            "all",
                            "google"
                        ],
                        "type": "string",
                        "description": "Filter reviews by origin",
                        "default": "all"
                    },
                    "maxImages": {
                        "title": "Max Images Per Place",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Number of images to extract (0 = none)",
                        "default": 0
                    },
                    "scrapeImageAuthors": {
                        "title": "Scrape Image Authors",
                        "type": "boolean",
                        "description": "Include image author information",
                        "default": false
                    },
                    "scrapeReviewsPersonalData": {
                        "title": "Include Reviewer Personal Data",
                        "type": "boolean",
                        "description": "Include reviewer name, ID, photo URL",
                        "default": false
                    },
                    "scrapeContacts": {
                        "title": "Extract Company Contacts",
                        "type": "boolean",
                        "description": "Scrape emails and social profiles from business website",
                        "default": false
                    },
                    "maximumLeadsEnrichmentRecords": {
                        "title": "Max Leads Enrichment Records",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of places to enrich with contact details (0 = all)",
                        "default": 0
                    },
                    "scrapeSocialMediaProfiles": {
                        "title": "Social Media Profiles to Scrape",
                        "type": "object",
                        "description": "Which social media profiles to extract: facebooks, instagrams, youtubes, tiktoks, twitters",
                        "default": {
                            "facebooks": true,
                            "instagrams": true,
                            "youtubes": true,
                            "tiktoks": true,
                            "twitters": true
                        }
                    },
                    "skipClosedPlaces": {
                        "title": "Skip Closed Places",
                        "type": "boolean",
                        "description": "Skip permanently or temporarily closed places",
                        "default": false
                    },
                    "searchMatching": {
                        "title": "Search Matching",
                        "enum": [
                            "all",
                            "exact"
                        ],
                        "type": "string",
                        "description": "How strictly to match search terms",
                        "default": "all"
                    },
                    "placeMinimumStars": {
                        "title": "Minimum Stars",
                        "type": "string",
                        "description": "Only include places with at least this rating (e.g., '4' for 4+ stars)"
                    },
                    "website": {
                        "title": "Website Filter",
                        "enum": [
                            "allPlaces",
                            "withWebsite",
                            "withoutWebsite"
                        ],
                        "type": "string",
                        "description": "Filter places by website availability",
                        "default": "allPlaces"
                    },
                    "scrapePlaceDetailPage": {
                        "title": "Scrape Place Detail Page",
                        "type": "boolean",
                        "description": "Whether to visit each place's detail page for full data",
                        "default": true
                    },
                    "scrapeTableReservationProvider": {
                        "title": "Scrape Table Reservation Provider",
                        "type": "boolean",
                        "description": "Extract table reservation provider info",
                        "default": false
                    },
                    "maxQuestions": {
                        "title": "Max Questions",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Number of Q&A entries to extract (0 = none)",
                        "default": 0
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Maximum number of parallel requests. Higher values are faster but may trigger rate limits. (1-10)",
                        "default": 5
                    },
                    "proxyConfig": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
