# Google Maps Places Scraper (`sedgelabs/maps`) Actor

Search texts in, one row per Google Maps place out: name, address, phone, website, rating and review count. Reads result pages until your max per search. Logged out.

- **URL**: https://apify.com/sedgelabs/maps.md
- **Developed by:** [Sedge Labs](https://apify.com/sedgelabs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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.

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 Places Scraper

Get local businesses from Google Maps by search: name, category, address, phone, website, opening
hours, star rating, review count and place ID. Type what you would type into Maps, such as
`plumber Columbus OH`, and get one row per place. No login, no API key and no proxy needed.

### What you get

One row per place, with these fields and no others:

| Field | Meaning |
| --- | --- |
| `query` | The search that found it |
| `name` | Business name |
| `address` | Street and locality, or null when Google lists none (businesses that serve customers at their door) |
| `phone` | As Google shows it, for example `(614) 490-2149`, or null |
| `website` | The business's own site, or null. Google's tracking tags (`utm_*`) are removed; other parameters stay |
| `rating` | Star rating, or null |
| `reviewCount` | Number of reviews, or null |
| `placeId` | Google's place ID, for example `ChIJjQqF5lPzOIgRUdDqEsX37Jw`, or null |
| `category` | The main category, for example `Plumber`, or null |
| `categories` | All categories, main one first. Empty list when none |
| `neighborhood` | Neighborhood Google names for the place, or null |
| `location` | `{ "lat", "lng" }` coordinates, or null |
| `addressParts` | `{ "street", "city", "postalCode", "state", "countryCode" }`, each a string or null. The whole field is null when Google gives none |
| `openingHours` | A list of `{ "day", "hours" }`, Monday to Sunday, as Google shows the current week, so a holiday week can show special hours. Empty list when none |
| `attributes` | Yes/no facts such as accessibility, as `{ "group", "name", "value" }` with `value` true or false. Empty list when none |
| `badges` | Labels such as `Identifies as women-owned` or `LGBTQ+ friendly`. Empty list when none |

A place that shows up on two result pages of one search comes back once and is charged once.

### Input

```json
{
  "queries": ["plumber Columbus OH", "roofer Dayton OH"],
  "maxPlacesPerQuery": 100
}
```

- **Search queries**: 1 to 10 per run, written as you would in Google Maps. Blanks and repeats are
  ignored.
- **Max places per search**: 1 to 500, default 100. Google answers in pages of about 20, and the
  actor reads pages until it has this many or Google has no more.

### Output example

```json
{
  "query": "plumber Columbus OH",
  "name": "The Waterworks Plumbing, Drain, Heating & Cooling",
  "address": "550 Schrock Rd, Columbus, OH 43229",
  "phone": "(614) 490-2149",
  "website": "https://thewaterworks.com/",
  "rating": 4.7,
  "reviewCount": 2267,
  "placeId": "ChIJjQqF5lPzOIgRUdDqEsX37Jw",
  "category": "Plumber",
  "categories": ["Plumber", "Air conditioning repair service", "Drainage service"],
  "neighborhood": null,
  "location": { "lat": 40.102144, "lng": -82.999531 },
  "addressParts": { "street": "550 Schrock Rd", "city": "Columbus", "postalCode": "43229", "state": "Ohio", "countryCode": "US" },
  "openingHours": [{ "day": "Monday", "hours": "Open 24 hours" }, { "day": "Sunday", "hours": "Open 24 hours" }],
  "attributes": [{ "group": "Accessibility", "name": "Wheelchair accessible entrance", "value": false }],
  "badges": ["LGBTQ+ friendly"]
}
```

`RUN_SUMMARY` in the key-value store lists, per search, its status (`ok`, `no_places`, `failed`,
`refused`, `not_run`), how many places it saved and why it stopped.

### Pricing

$1.00 per 1,000 places. Each place row is one `result` event. Apify's platform usage is included.
Set **Maximum cost per run** and the run stops when it is reached, keeping the rows already saved.

### Limits

- **Pace.** One request per result page, 2.5 seconds apart, and 2 seconds between searches. 100
  places took 16 seconds in a test run.
- **If Google says no.** On a 429, a 403, Google's "unusual traffic" page, a consent or sign-in
  page, or a CAPTCHA, the run stops at once. Places already saved stay in the dataset and the status
  message says which search was refused. The actor does not change IP or try to get past a challenge.
- **How deep a search goes.** Google stops listing places for a search at some point. For more
  places, split the area: one search per town or neighbourhood.
- **Facts only.** No review text, photos, business descriptions, plus codes or emails.

### FAQ

#### Do I need a Google account, an API key or proxies?

No. It reads public search results logged out, directly from Apify's servers, with no proxy.

#### Can I use it through the API, Make, Zapier or n8n?

Yes, like any Apify actor. Call it with your API token and read the dataset when the run finishes.

#### Is scraping Google Maps legal?

The actor collects only public business information, logged out, at a slow and fixed pace, and only
from pages Google's robots.txt allows. You are responsible for how you use the data. Google's Maps
terms restrict bulk downloading and building business listings or marketing lists from Maps, so read
them and ask a lawyer if you're unsure. Names and phone numbers of sole traders can be personal data
under laws such as the GDPR. Don't use the data for spam, impersonation or any other unlawful purpose.

This actor is independent and not affiliated with, endorsed by or sponsored by Google. Google Maps
is a trademark of Google LLC.

### More from Sedge Labs

- [Wellfound Jobs Scraper](https://apify.com/sedgelabs/wellfound-jobs): startup jobs by role, city or remote, with salary and equity.
- [YouTube Comments Scraper](https://apify.com/sedgelabs/youtube-comments-scraper): comments and replies from any public video, Short or live replay.
- [YouTube Channel Scraper](https://apify.com/sedgelabs/youtube-channel-scraper): every video, Short and live stream from any channel.

### Support

Open an issue on the Issues tab and include your run link.

# Actor input Schema

## `queries` (type: `array`):

What to search on Google Maps, one per line, for example a trade and a city. 1 to 10 per run; blanks and repeats are ignored.

## `maxPlacesPerQuery` (type: `integer`):

The most places to save for each search. The actor reads result pages of about 20 until it has this many or Google has no more. 1 to 500. Each place is charged once.

## Actor input object example

```json
{
  "queries": [
    "plumber Columbus OH"
  ],
  "maxPlacesPerQuery": 20
}
```

# Actor output Schema

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

One row per place: the query, name, address, phone, website, rating and review count. A field Google does not list for a place is null.

## `summary` (type: `string`):

Per query: its status, how many places, and the reason when there were none or Google refused.

# 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 = {
    "queries": [
        "plumber Columbus OH"
    ],
    "maxPlacesPerQuery": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("sedgelabs/maps").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 = {
    "queries": ["plumber Columbus OH"],
    "maxPlacesPerQuery": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("sedgelabs/maps").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 '{
  "queries": [
    "plumber Columbus OH"
  ],
  "maxPlacesPerQuery": 20
}' |
apify call sedgelabs/maps --silent --output-dataset

```

## MCP server setup

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

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/lP4kjLj0mCHqhHx8E/builds/3mEb0ixsUU1KZklJU/openapi.json
