# Google Maps Scraper & Extractor - Postal Code Lists (`h1018y/anvil-google-maps-api`) Actor

Scrapes Google Maps for any search term and place. Give it search terms plus a location or a list of postal codes; get each business's name, address, phone, website, rating, review count, opening hours, picture and coordinates as rows.

- **URL**: https://apify.com/h1018y/anvil-google-maps-api.md
- **Developed by:** [ANVIL Tools](https://apify.com/h1018y) (community)
- **Categories:** Lead generation, Marketing, Travel
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 - Postal Code Lists

**Google Maps Scraper** - Google Maps places searched by a whole list of postal codes - every place says which code found it - with a picture link on every row.

### What does Google Maps Scraper do?

A list of postal codes where every code is really searched and every place carries searchPostalCode, a picture link per place and a hard stop at the asked number - same field names as the most used Google Maps Scraper.

- Postal code list: every code is searched on its own and each place says which code found it (searchPostalCode)
- A picture link on every place (imageUrl, imageUrls)
- Stops exactly at the asked number of places per search
- onlyNew returns just new or changed places; same field names as the most used Google Maps Scraper

### Who uses Google Maps Scraper, and for what

- Agencies - build a local lead list for a city, one postal code at a time
- Developers - call it from code with the same fields as the #1 tool
- Analysts - track ratings of competitors every day with onlyNew
- Sales teams - find businesses with or without a website

### What this Google Maps Scraper does that users of the usual tools ask for

- **Every postcode in a list is searched, and each place says which postcode found it** - in the `searchPostalCode` field
- **Picture links on every place** - in the `imageUrls` field
- **Stops at the asked count** - in the `title` field

#### Switching takes one minute

The input and result field names are the ones the most used Google Maps Scraper has, so the input JSON your code already sends works unchanged and your pipeline reads the same fields - plus the new ones above.

### Why this Google Maps Scraper?

Tools with different field names or no scheduling mode cost users rework, so they stay with the leader. This Google Maps Scraper checks every run and tells you plainly when a page could not be read, instead of returning empty or wrong rows.

### Data you get from Google Maps Scraper

Every result is one flat row with these fields (values from a real run):

| Field | Example |
|---|---|
| `title` | The Wilson |
| `description` | Casual eatery for New American plates and seafood specials p... |
| `categoryName` | American restaurant |
| `categories` | \["American restaurant", "Bar", "Breakfast restaurant", "Brun... |
| `address` | 132 W 27th St, New York, NY 10001 |
| `neighborhood` | Manhattan |
| `street` | 132 W 27th St |
| `city` | New York |
| `state` | NY |
| `postalCode` | 10001 |
| `countryCode` | US |
| `website` | https://eatatthewilson.com/nyc/ |
| `phone` | (212) 529-2671 |
| `phoneUnformatted` | +12125292671 |
| `location` | {"lat": 40.7460204, "lng": -73.9927905} |
| `totalScore` | 4.6 |
| `reviewsCount` | 2242 |
| `placeId` | ChIJO1mw5VlZwokR4wF8LFqcQLw |
| `cid` | 13565013988747248099 |
| `fid` | 0x89c25959e5b0593b:0xbc409c5a2c7c01e3 |
| `kgmid` | /g/11gjs7jyvd |
| `url` | https://www.google.com/maps/place/?q=place_id:ChIJO1mw5VlZwo... |
| `imageUrl` | https://lh3.googleusercontent.com/grass-cs/AABkmLfWYHV5KqBZW... |
| `imageUrls` | \["https://lh3.googleusercontent.com/grass-cs/AABkmLfWYHV5KqB... |
| `popularTimesHistogram` | null |

### How to use Google Maps Scraper

1. Press **Start** - the form already holds an example that works.
2. Put in your own input (see the fields on the Input tab).
3. Run it once, or put it on an **Apify Schedule** (with **only new** on, where the form has it) to get just what is new every day; add a **webhookUrl** to get each run's rows sent to your own system, Zapier, Make or Slack.
4. Download the results as JSON, CSV or Excel, or send them to Google Sheets, Zapier, Make, the Apify API or an AI agent (Apify MCP server).

#### Input example

```json
{
  "searchStringsArray": [
    "pizza"
  ],
  "locationQuery": "New York, USA",
  "maxCrawledPlacesPerSearch": 3,
  "language": "en",
  "startUrls": [],
  "categoryFilterWords": [],
  "searchMatching": "all",
  "placeMinimumStars": "",
  "website": "allPlaces",
  "skipClosedPlaces": false,
  "onlyNew": false,
  "includeBioContacts": false,
  "useApifyProxy": true,
  "proxyGroups": [],
  "postalCodes": [
    "10001",
    "10002"
  ],
  "maxImages": 5
}
```

#### Output example (a real run)

```json
[
  {
    "title": "The Wilson",
    "description": "Casual eatery for New American plates and seafood specials plus sustainable cocktails.",
    "categoryName": "American restaurant",
    "categories": [
      "American restaurant",
      "Bar",
      "Breakfast restaurant",
      "Brunch restaurant"
    ],
    "address": "132 W 27th St, New York, NY 10001",
    "neighborhood": "Manhattan",
    "street": "132 W 27th St",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001",
    "countryCode": "US",
    "website": "https://eatatthewilson.com/nyc/",
    "phone": "(212) 529-2671",
    "phoneUnformatted": "+12125292671",
    "location": {
      "lat": 40.7460204,
      "lng": -73.9927905
    },
    "totalScore": 4.6,
    "reviewsCount": 2242,
    "placeId": "ChIJO1mw5VlZwokR4wF8LFqcQLw",
    "cid": "13565013988747248099",
    "fid": "0x89c25959e5b0593b:0xbc409c5a2c7c01e3",
    "kgmid": "/g/11gjs7jyvd",
    "url": "https://www.google.com/maps/place/?q=place_id:ChIJO1mw5VlZwokR4wF8LFqcQLw",
    "imageUrl": "https://lh3.googleusercontent.com/grass-cs/AABkmLfWYHV5KqBZWIJfInfPUIGMyw_UQkZ7r5cCng3ADuIy4_5PRm25S3UFZyCn7fSqKQJcfQ3ST5AGujGaN4opuI5y_r7unm62ZbfqvtpjvLlapuxNuZLc8be3L8NC2l4czAZFsw3F=w163-h92-k-no",
    "imageUrls": [
      "https://lh3.googleusercontent.com/grass-cs/AABkmLfWYHV5KqBZWIJfInfPUIGMyw_UQkZ7r5cCng3ADuIy4_5PRm25S3UFZyCn7fSqKQJcfQ3ST5AGujGaN4opuI5y_r7unm62ZbfqvtpjvLlapuxNuZLc8be3L8NC2l4czAZFsw3F=w163-h92-k-no"
    ],
    "popularTimesHistogram": null,
    "openingHours": [
      {
        "day": "Sunday",
        "hours": "7 AM–11 PM"
      },
      {
        "day": "Monday",
        "hours": "7 AM–11 PM"
      },
      {
        "day": "Tuesday",
        "hours": "7 AM–11 PM"
      },
      {
        "day": "Wednesday",
        "hours": "7 AM–11 PM"
      },
      {
        "day": "Thursday",
        "hours": "7 AM–11 PM"
      },
      {
        "day": "Friday",
        "hours": "7 AM–11 PM"
      },
      {
        "day": "Saturday",
        "hours": "7 AM–12 AM"
      }
    ],
    "timezone": "America/New_York",
    "permanentlyClosed": false,
    "temporarilyClosed": false,
    "searchString": "restaurant",
    "rank": 1,
    "contactSource": "business_field",
    "imagesCount": 1,
    "domain": "eatatthewilson.com",
    "scrapedAt": "2026-11-01T12:57:31.000Z",
    "language": "en",
    "isAdvertisement": false,
    "searchPageUrl": "https://www.google.com/maps/search/restaurant+in+10001",
    "searchPostalCode": "10001",
    
```

One flat row per result.

### Built for pipelines

- **Field names never change** - fixes and new features only ever add fields, so your code keeps working.
- **Every row has the same shape** - a missing value is `null`, never a dropped field.
- **A plain status line** on every run - how many results, and on a problem what to change in the input - for your logs and for AI agents.
- **Runs on its own** - put it on an Apify Schedule and add a `webhookUrl`: each run's rows go straight to your system, Zapier, Make or Slack.

### How much does Google Maps Scraper cost?

You pay only per result (pay per event) - no monthly fee, no minimum, and the price per result is lower on Apify's Bronze, Silver and Gold plans. The exact price is on the **Pricing** tab. Apify's free plan credit is enough to try it on real input.

| You want | What you pay for |
|---|---|
| A quick test with the example | a few results |
| A daily scheduled run | only the rows that run returns |
| A big one-off export | the results delivered - set a maximum in the input |

### Also searched as

- google maps leads
- local business scraper
- google places api
- maps data extractor
- google maps api

### FAQ

**Does Google Maps Scraper need a login, cookies or an API key?** No. It reads public pages only.

**Can I run Google Maps Scraper on a schedule?** Yes - with Apify Schedules; each run returns fresh rows.

**Can I call it from Python, JavaScript or an AI agent?** Yes - through the Apify API, the Apify client libraries or the Apify MCP server.

**Is it legal?** It collects only data anyone can see without logging in. You are responsible for using it within the source site's terms and data protection law (GDPR, CCPA).

**Where do the contacts come from?** Only from what the business or group published about itself on its public page - never guessed, never looked up elsewhere. `contactSource` says which: `business_field` (the platform's own contact field) or `bio_text` (written in the description; only when you switch on includeBioContacts). You decide whether and how you may contact them under GDPR, CCPA and anti-spam law.

**What if the site blocks a request?** The run retries from a fresh connection and, if it still cannot read the page, stops with a clear message - never with made-up rows.

**Do I need proxies?** No setup needed - Google Maps Scraper uses Apify Proxy by default where the site needs it.

### Troubleshooting

- **No results:** check the input (a public URL or a search term that returns results in a normal browser), then try the example input once.
- **Fewer results than expected:** raise the maximum in the input; some sites show only a part of their data without logging in, and Google Maps Scraper never logs in.
- **The run stopped with a message:** the message says what the site answered; run it again later or with fewer items.

### Your feedback

Missing a field, found a bug, or need another site? Open an issue on the **Issues** tab - issues are answered and fixed. If Google Maps Scraper saved you time, a short review on this page helps others find it.

Data source: [www.google.com/maps](https://www.google.com/maps)

### More tools from this developer

- [Tweet Scraper: Tweet Details by URL, No Login or Cookies](https://apify.com/h1018y/anvil-tweet-scraper)
- [YouTube Thumbnail Downloader: Bulk, Every Size & Titles](https://apify.com/h1018y/anvil-youtube-thumbnail-downloader)
- [ML Conference Finder: NeurIPS, ICLR & ICML Alternatives](https://apify.com/h1018y/anvil-ml-conference-finder)
- [YouTube Transcript Scraper: Find Every Moment a Word Is Said](https://apify.com/h1018y/anvil-youtube-transcript-scraper)
- [Facebook Ads Library Scraper: Only New Ads & Days Running](https://apify.com/h1018y/anvil-facebook-ads-library-scraper)
- [Reddit Scraper: Keyword Alerts for New Posts & Comments](https://apify.com/h1018y/anvil-reddit-scraper)
- [Twitter Scraper: New Tweets From Any X Account, No Login](https://apify.com/h1018y/anvil-twitter-scraper)
- [Facebook Page Monitor: New Posts & Engagement Growth](https://apify.com/h1018y/anvil-facebook-posts-scraper)

# Actor input Schema

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

What to look for on Google Maps, one phrase per line, for example: coffee shop, dentist, plumber.

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

City, region or country to search in, for example: New York, USA or Seoul, South Korea.

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

Stops as soon as this many places were found for each search term. Example: 20.

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

Language of the result texts as a two-letter code, for example en, de, ko or ja.

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

Two-letter country code for the Google Maps country site, for example us, gb, de or kr.

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

Optional city added to the location, for example Austin. Use it with Country code.

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

Optional state or region added to the location, for example Texas.

## `county` (type: `string`):

Optional county or district added to the location, for example Travis County.

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

One postal code or several separated by commas, for example 10001, 10002; each one is searched on its own and added to the location.

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

Pasted Google Maps search or place links, for example https://www.google.com/maps/search/pizza+in+Rome/.

## `categoryFilterWords` (type: `array`):

Keep only places whose category contains one of these words, for example: pizza, bakery.

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

all keeps every place; only_includes keeps places whose name contains the search term; only_exact needs the exact name.

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

Skip places rated below this value. Example: four keeps 4.0 stars and up.

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

allPlaces returns everything; withWebsite only places that list a website; withoutWebsite only places without one.

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

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

## `onlyNew` (type: `boolean`):

Return only places that are new or whose rating, reviews, phone or website changed since the last run with the same input.

## `includeBioContacts` (type: `boolean`):

Off by default. This version returns only the phone and website a business lists in its own Google Maps fields, never text-mined contacts.

## `useApifyProxy` (type: `boolean`):

Send the requests through the Apify proxy. Keep it on unless you know what you are doing.

## `proxyGroups` (type: `array`):

Optional Apify proxy groups to use, for example RESIDENTIAL.

## `postalCodes` (type: `array`):

A list of postal codes; each one is searched on its own and every place says which code found it (searchPostalCode), for example 10001, 10002.

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

How many picture links to return per place in imageUrls, 0 to 20, for example 5.

## `webhookUrl` (type: `string`):

Optional. An https address - your own system, Zapier, Make or a Slack incoming webhook - that gets each run's results as JSON (with 'only new' on: just the new ones). Example: https://hooks.slack.com/services/T000/B000/XXXX

## Actor input object example

```json
{
  "searchStringsArray": [
    "pizza"
  ],
  "locationQuery": "New York, USA",
  "maxCrawledPlacesPerSearch": 3,
  "language": "en",
  "startUrls": [],
  "categoryFilterWords": [],
  "searchMatching": "all",
  "placeMinimumStars": "",
  "website": "allPlaces",
  "skipClosedPlaces": false,
  "onlyNew": false,
  "includeBioContacts": false,
  "useApifyProxy": true,
  "proxyGroups": [],
  "postalCodes": [
    "10001",
    "10002"
  ],
  "maxImages": 5
}
```

# Actor output Schema

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

All result rows (open as table, JSON, CSV or Excel).

# 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": [
        "pizza"
    ],
    "locationQuery": "New York, USA",
    "maxCrawledPlacesPerSearch": 3,
    "postalCodes": [
        "10001",
        "10002"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("h1018y/anvil-google-maps-api").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": ["pizza"],
    "locationQuery": "New York, USA",
    "maxCrawledPlacesPerSearch": 3,
    "postalCodes": [
        "10001",
        "10002",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("h1018y/anvil-google-maps-api").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": [
    "pizza"
  ],
  "locationQuery": "New York, USA",
  "maxCrawledPlacesPerSearch": 3,
  "postalCodes": [
    "10001",
    "10002"
  ]
}' |
apify call h1018y/anvil-google-maps-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,h1018y/anvil-google-maps-api"
        }
    }
}
```

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/dc4lqvj8ly6HdooyD/builds/dSXCKFBo2jejwOm1o/openapi.json
