# Google Maps Scraper - Places, Phones, Websites, Ratings & Hours (`socialscrapers/google-maps-scraper`) Actor

Scrape Google Maps without logging in: every place in a city, region, country or radius, past the 120-place limit, or by URL or place ID. Name, category, address, coordinates, phone, website, rating, reviews, hours, closed status. JSON, CSV, Excel. $0.46 per 1,000 places.

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

## Pricing

from $0.37 / 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 Scraper

**Google Maps Scraper** extracts places from Google Maps without a Google account, cookies or login. Search any business type in a city, region or whole country, or around a point, and get every place with its name, categories, full address and address parts, coordinates, phone number, website, star rating, number of reviews, opening hours, closed status and plus code. It goes past the 120 to 180 places Google Maps shows for one search by splitting the area into smaller map cells until the whole area is covered. It costs **$0.46 per 1,000 places**.

> 💡 **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 Scraper do?

- **Search a whole area.** Type what you would type into Google Maps (`dentist`, `coffee shop`, `car repair`) and a location (`Austin, Texas, USA`, `Bavaria, Germany`, `Portugal`). The area is split into smaller map cells, and dense cells into smaller ones again, until every cell is fully listed, so a city or a country gives every place Google Maps has, not just the first 120.
- **Or search around a point.** Center coordinates and a radius in kilometers.
- **Or look up places you know.** Google Maps place links, share links (`maps.app.goo.gl`, `share.google`), `?cid=` links, place IDs (`ChIJ...`) and CIDs. Search links copied from your browser (`/maps/search/pizza/@40.73,-73.99,14z`) cover the map view they show; a Google search link is searched by its query, and plain text in the link list is searched like a search term.
- **Filters.** Minimum star rating, places with or without a website (a ready lead list of businesses without one), and skipping permanently or temporarily closed places. Places the filters leave out are free.
- **Each place once.** A place found by several search terms or map cells is saved once per run, with the search term that found it first.
- **Any language.** Category names, addresses and opening hours in the language you pick.
- **Pay only for places delivered.** 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 Google Maps shows nothing for it.

| Field | Description |
|---|---|
| `title`, `placeId`, `url` | Name, Google place ID and the place on Google Maps |
| `categoryName`, `categories` | Main category and all categories |
| `description` | The short description Google Maps shows, where there is one |
| `address`, `neighborhood`, `street`, `city`, `postalCode`, `state`, `countryCode` | Full address and its parts |
| `location`, `plusCode` | Coordinates (`lat`, `lng`) and the full plus code of the spot |
| `phone`, `phoneUnformatted` | Phone number as written locally, and in international form (`+15125550100`) |
| `website` | The place's website |
| `totalScore`, `reviewsCount` | Average star rating and number of Google reviews |
| `price` | Price level (`$$`) when Google Maps shows one (for few places) |
| `openingHours` | Hours for each day, Monday first: `day`, `hours` |
| `permanentlyClosed`, `temporarilyClosed` | Closed status |
| `claimThisBusiness` | `true` when nobody has claimed the business on Google yet |
| `timezone`, `imageUrl`, `imagesCount` | Time zone, main photo and number of photos |
| `cid`, `fid`, `kgmid` | Google's other IDs for the place |
| `searchString`, `searchPageUrl` | The search term that found the place and the Google Maps page it was found on |
| `language`, `scrapedAt` | Language of the texts and when the place was read |

### How to scrape Google Maps

1. Open the Actor and add one or more **Search terms**.
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 the filters you need.
4. Click **Start**, then download the places as JSON, CSV, Excel, XML or HTML, or read them through the API.

### How much does it cost?

You pay per place delivered to the dataset: **$0.46 per 1,000 places**. Apify subscribers pay less: **Silver −10%** ($0.414 per 1,000) and **Gold, Platinum and Diamond −20%** ($0.368 per 1,000). Each run also carries Apify's standard Actor start charge of $0.001 (one per GB of memory, at least one).

| Job | Places | Price (no discount) |
|---|---|---|
| Every dentist in a large city | 1,000 | $0.46 |
| Every restaurant in a large city | 10,000 | $4.60 |
| A national lead list of one business type | 100,000 | $46.00 |

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 once it is reached and keeps everything collected so far.

### Input example

```json
{
  "searchStringsArray": ["dentist", "orthodontist"],
  "locationQuery": "Austin, Texas, USA",
  "maxCrawledPlacesPerSearch": 0,
  "language": "en",
  "placeMinimumStars": "four",
  "website": "allPlaces",
  "skipClosedPlaces": true
}
```

Around a point instead of a named location:

```json
{
  "searchStringsArray": ["coffee shop"],
  "coordinates": "30.2672, -97.7431",
  "radiusKm": 3
}
```

Places you already know:

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

The scraper picks Apify Proxy's tier itself: datacenter first, residential only when a request is refused.

### Output example

A real place from a test run (the photo link shortened):

```json
{
  "title": "Jo's Coffee – South Congress",
  "placeId": "ChIJ1S_Bov20RIYRe7MiR8tYawY",
  "categoryName": "Coffee shop",
  "categories": ["Coffee shop", "Cafe", "Takeout Restaurant", "Sandwich shop"],
  "description": "La Colombe coffee, specialty beverages & snacks in a down-to-earth, convivial locale.",
  "address": "1300 S Congress Ave, Austin, TX 78704",
  "neighborhood": "Bouldin Creek",
  "street": "1300 S Congress Ave",
  "city": "Austin",
  "postalCode": "78704",
  "state": "Texas",
  "countryCode": "US",
  "location": { "lat": 30.2510458, "lng": -97.7493717 },
  "plusCode": "86247722+C7",
  "phone": "(512) 852-2300",
  "phoneUnformatted": "+15128522300",
  "website": "https://www.joscoffee.com/south-congress-jos",
  "totalScore": 4.4,
  "reviewsCount": 2012,
  "price": null,
  "openingHours": [
    { "day": "Monday", "hours": "7 AM–7 PM" },
    { "day": "Tuesday", "hours": "7 AM–7 PM" },
    { "day": "Wednesday", "hours": "7 AM–7 PM" },
    { "day": "Thursday", "hours": "7 AM–7 PM" },
    { "day": "Friday", "hours": "7 AM–7 PM" },
    { "day": "Saturday", "hours": "7 AM–7 PM" },
    { "day": "Sunday", "hours": "7 AM–7 PM" }
  ],
  "permanentlyClosed": false,
  "temporarilyClosed": false,
  "claimThisBusiness": false,
  "timezone": "America/Chicago",
  "imageUrl": "https://lh3.googleusercontent.com/…",
  "imagesCount": 2011,
  "cid": "462561016830669691",
  "fid": "0x8644b4fda2c12fd5:0x66b58cb4722b37b",
  "kgmid": "/m/020z01l",
  "url": "https://www.google.com/maps/search/?api=1&query=Jo's%20Coffee%20%E2%80%93%20South%20Congress&query_place_id=ChIJ1S_Bov20RIYRe7MiR8tYawY",
  "searchString": "coffee shop",
  "searchPageUrl": "https://www.google.com/maps/search/coffee+shop/@30.296114,-97.73297,11z?hl=en",
  "language": "en",
  "scrapedAt": "2026-11-12T23:10:56.434Z"
}
```

### Use cases

- **Lead generation:** every business of a type in your territory, with phone, website, rating and review count. Filter for places without a website or with unclaimed listings to find businesses to offer your services to.
- **Market research:** how many competitors an area has, where they are, how they are rated, and their opening hours.
- **Local SEO:** track ratings, review counts, categories and claimed status of your own locations and your competitors'.
- **Location intelligence:** coordinates, plus codes and address parts for mapping, territory planning or site selection.
- **Data enrichment:** look up places you already have by place ID, CID or link to refresh their details.

### 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-scraper').call({
    searchStringsArray: ['dentist'],
    locationQuery: 'Austin, Texas, USA',
    maxCrawledPlacesPerSearch: 0,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/google-maps-scraper").call(run_input={
    "searchStringsArray": ["coffee shop"],
    "coordinates": "30.2672, -97.7431",
    "radiusKm": 3,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["phone"], item["website"], item["totalScore"])
```

Connect it to **Make, Zapier, n8n, Google Sheets** 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

- **Borders.** A city, region or country is covered as the rectangle Google Maps frames it in. Places in other countries and other states are left out; for a city, places just outside its border in the same state can be included. Use the `city` and `postalCode` fields when you need exact borders.
- **Very dense spots.** Where a few hundred meters hold more matching places than Google Maps lists for one view (a large mall, for example), a few places there can be missing. The run log counts such spots.
- **Opening hours** are as Google Maps shows them for the coming week, including holiday hours it already knows.
- **Price level** is filled only when Google Maps shows one, which is rare today.
- **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.

**Does it scrape Google reviews?**
No. Review texts are not included: Google Maps does not show them to logged-out visitors in a form this Actor reads. Each place comes with its average rating (`totalScore`) and number of reviews (`reviewsCount`).

**How much does a large job cost?**
$0.46 per 1,000 places, so 50,000 places cost $23.00 before subscriber discounts. Filtered-out places and duplicates are free.

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

**Why did I get fewer places than I asked for?**
The area has fewer places for your search and filters, a place was already saved by another search term in the same run, or the run reached its maximum total charge. The run log says which, for each search, and the `RUN_SUMMARY` record in the run's key-value store lists every search with its counts.

**Can I search several locations?**
Each run covers one location (or one circle), with as many search terms as you like. For several cities, start one run per city, or use the Google Maps search links of each area in **Google Maps URLs**.

**How fast is it?**
In our tests, two searches covering all of Austin, Texas ("dentist" and "coffee shop") gave 974 places in 37 seconds, and a 60-second run over every restaurant in Texas saved 1,868 places before it stopped for its time limit. Large areas take longer: give a state or a country a long run timeout.

**Is it legal to scrape Google Maps?**
The Actor reads only what Google Maps shows to every visitor, without logging in. You are responsible for using the data lawfully, including Google's terms. Business listings can contain personal data, such as the name and phone number of a sole trader: when you store or contact them, data-protection laws such as the GDPR (EU) and CCPA (California) apply.

### 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 Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [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). <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>.

## `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, or only those that do not (a lead list of businesses to offer a website to).

## `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: datacenter first, residential only when a request is refused. Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurant"
  ],
  "locationQuery": "New York, USA",
  "maxCrawledPlacesPerSearch": 50,
  "language": "en",
  "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": [
        "restaurant"
    ],
    "locationQuery": "New York, USA",
    "maxCrawledPlacesPerSearch": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/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",
    "maxCrawledPlacesPerSearch": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/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 '{
  "searchStringsArray": [
    "restaurant"
  ],
  "locationQuery": "New York, USA",
  "maxCrawledPlacesPerSearch": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call socialscrapers/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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