# Google Maps Places & Leads Scraper (`maged120/google-maps-scraper`) Actor

Find every business of a given type in any city — name, phone, website, address, rating, hours and open/closed status., no API key.

- **URL**: https://apify.com/maged120/google-maps-scraper.md
- **Developed by:** [Maged](https://apify.com/maged120) (community)
- **Categories:** Automation, Lead generation, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 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/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

Find **every business of a given type in any city** — with phone, website, address, rating, opening hours and live open/closed status. Just enter a place type and a location and get a clean, exportable list of businesses and leads.

### What does Google Maps Places & Leads Scraper do?

This Actor turns a simple **location + place type** into a full list of matching businesses on Google Maps. Give it `freight forwarding company` and `Cairo, Egypt` and it returns the freight and logistics companies in and around Cairo, each with its **name, phone, website, full address, city, star rating, category, photo, opening hours, and whether it's open right now**.

You can search many place types at once, filter to only businesses that have a phone or website, set a minimum rating, and export everything to JSON, CSV, Excel or HTML. Running on Apify gives you scheduling, an API, and integrations with Google Sheets, Make, Zapier and more.

### Why use this Actor?

- **Lead generation** — build prospect lists of any business type in any area, complete with phone numbers and websites.
- **Local market research** — map competitors and compare ratings across a city or region.
- **Sales territory planning** — get addresses and coordinates for every relevant business.
- **Data enrichment** — attach ratings, categories and contact details to a list of areas.

### How to use it

1. Enter one or more **search terms** (e.g. `dentist`, `coffee shop`, `freight forwarding company`).
2. Enter a **location** (e.g. `Cairo, Egypt`, `Brooklyn NY`, or a ZIP code).
3. Optionally set **max results**, a **minimum rating**, or require a **phone/website**.
4. Click **Start**. When it finishes, open the **Output** tab and export to JSON, CSV, Excel or HTML.

### Input

| Field | Description |
|-------|-------------|
| `searchTerms` | List of place types / services / keywords. Each runs as its own search. **Required.** |
| `location` | City or area to search in (free text). |
| `maxResults` | Max places per search term (default 100). |
| `minRating` | Keep only places rated at least this many stars. |
| `skipPlacesWithoutPhone` | Keep only places that list a phone number. |
| `skipPlacesWithoutWebsite` | Keep only places that list a website. |
| `openNowOnly` | Keep only places open at scrape time. |
| `language` / `countryCode` | Language and region of the results. |

#### Example input

```json
{
    "searchTerms": ["freight forwarding company"],
    "location": "Cairo, Egypt",
    "maxResults": 100,
    "minRating": 4,
    "skipPlacesWithoutPhone": true,
    "countryCode": "eg"
}
````

### Output

Each place is one item in the dataset. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Example output

```json
{
    "name": "World Cargo Egypt",
    "category": "Freight forwarding service",
    "categories": ["Freight forwarding service", "Logistics service"],
    "address": "Office NO 505 CACC Cargo village Cairo Airport, Egypt",
    "borough": "El Nozha",
    "city": "El Nozha",
    "state": "Cairo Governorate",
    "country_code": "EG",
    "phone": "+20 12 81825882",
    "website": "https://worldcargoegypt.com/",
    "rating": 4.7,
    "latitude": 30.1184386,
    "longitude": 31.4038868,
    "photo_url": "https://lh4.googleusercontent.com/...=s44...",
    "image_url": "https://lh3.googleusercontent.com/gps-cs-s/...",
    "google_maps_url": "https://maps.google.com/?cid=6302...",
    "timezone": "Africa/Cairo",
    "attributes": { "Service options": ["On-site services", "Online appointments"] },
    "menu_links": [],
    "provider_links": [],
    "status": "Closed · Opens 9 AM Fri",
    "open_now": false,
    "opening_hours": { "Monday": "9 AM–5 PM", "Friday": "Closed" },
    "query": "freight forwarding company",
    "search_location": "Cairo, Egypt"
}
```

#### Output fields

| Field | Meaning |
|-------|---------|
| `name` | Business name |
| `category` / `categories` | Primary category / all categories |
| `address`, `borough`, `city`, `state`, `country_code` | Location details |
| `phone` | Phone number |
| `website` | Website URL |
| `rating` | Average star rating |
| `latitude` / `longitude` | Coordinates |
| `photo_url` / `image_url` | Thumbnail / full-size photo |
| `google_maps_url` | Direct link to the listing |
| `timezone` | Local timezone |
| `attributes` | Service options, amenities, accessibility, payments, etc. (when available) |
| `menu_links` / `provider_links` | Menu / ordering / booking links (when available) |
| `status` / `open_now` | Current open/closed status |
| `opening_hours` | Per-day hours |

### FAQ

- **How many results can I get?** Google Maps caps a single search at roughly 100–120 results. To go deeper, split into narrower terms or smaller areas (e.g. by neighborhood).
- **Are reviews included?** Only the aggregate star rating is returned — not individual reviews.
- **Legality** — scrape only publicly available data and respect Google's Terms of Service and applicable laws. You are responsible for how you use the output.
- **Support** — questions or a bug? Use the Actor's Issues tab.

# Actor input Schema

## `searchTerms` (type: `array`):

Service, place type, or keywords to look for. One per entry — each runs as a separate search.

## `location` (type: `string`):

City / area to search in. Free text — 'Cairo', 'Cairo, Egypt', 'Brooklyn NY', '10001'. Appended to each search term; Google geocodes it.

## `maxResults` (type: `integer`):

Upper bound on places returned for each search term. Google Maps typically caps a single query around 100-120 results.

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

Result language (Google 'hl' code).

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

Region bias (Google 'gl' code), e.g. 'us', 'eg', 'gb'.

## `minRating` (type: `integer`):

Only keep places with at least this star rating (1-5). Leave empty for no filter.

## `skipPlacesWithoutPhone` (type: `boolean`):

Skip places that don't list a phone number.

## `skipPlacesWithoutWebsite` (type: `boolean`):

Skip places that don't list a website.

## `openNowOnly` (type: `boolean`):

Skip places that are currently closed.

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

Proxy settings. A proxy is REQUIRED — the Actor exits with an error if none is provided. Residential proxies are strongly recommended to avoid Google rate limits.

## Actor input object example

```json
{
  "searchTerms": [
    "dentist",
    "coffee shop",
    "freight forwarding company"
  ],
  "location": "Cairo, Egypt",
  "maxResults": 100,
  "language": "en",
  "countryCode": "us",
  "skipPlacesWithoutPhone": false,
  "skipPlacesWithoutWebsite": false,
  "openNowOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "searchTerms": [
        "freight forwarding company"
    ],
    "location": "Cairo, Egypt"
};

// Run the Actor and wait for it to finish
const run = await client.actor("maged120/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 = {
    "searchTerms": ["freight forwarding company"],
    "location": "Cairo, Egypt",
}

# Run the Actor and wait for it to finish
run = client.actor("maged120/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 '{
  "searchTerms": [
    "freight forwarding company"
  ],
  "location": "Cairo, Egypt"
}' |
apify call maged120/google-maps-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Google Maps Places & Leads Scraper",
        "description": "Find every business of a given type in any city — name, phone, website, address, rating, hours and open/closed status., no API key.",
        "version": "1.0",
        "x-build-id": "7Zhcq6NzFp0aZbYzJ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/maged120~google-maps-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-maged120-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/maged120~google-maps-scraper/runs": {
            "post": {
                "operationId": "runs-sync-maged120-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/maged120~google-maps-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-maged120-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",
                "required": [
                    "searchTerms"
                ],
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Service, place type, or keywords to look for. One per entry — each runs as a separate search.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "location": {
                        "title": "Location",
                        "type": "string",
                        "description": "City / area to search in. Free text — 'Cairo', 'Cairo, Egypt', 'Brooklyn NY', '10001'. Appended to each search term; Google geocodes it."
                    },
                    "maxResults": {
                        "title": "Max results per search term",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Upper bound on places returned for each search term. Google Maps typically caps a single query around 100-120 results.",
                        "default": 100
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Result language (Google 'hl' code).",
                        "default": "en"
                    },
                    "countryCode": {
                        "title": "Country code",
                        "type": "string",
                        "description": "Region bias (Google 'gl' code), e.g. 'us', 'eg', 'gb'.",
                        "default": "us"
                    },
                    "minRating": {
                        "title": "Minimum rating",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Only keep places with at least this star rating (1-5). Leave empty for no filter."
                    },
                    "skipPlacesWithoutPhone": {
                        "title": "Only places with a phone number",
                        "type": "boolean",
                        "description": "Skip places that don't list a phone number.",
                        "default": false
                    },
                    "skipPlacesWithoutWebsite": {
                        "title": "Only places with a website",
                        "type": "boolean",
                        "description": "Skip places that don't list a website.",
                        "default": false
                    },
                    "openNowOnly": {
                        "title": "Only places open now",
                        "type": "boolean",
                        "description": "Skip places that are currently closed.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings. A proxy is REQUIRED — the Actor exits with an error if none is provided. Residential proxies are strongly recommended to avoid Google rate limits.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ]
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
