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

Extract Google Maps places: title, address, coords, phone, website, rating, reviews count, opening hours, popular times, images, price level, menu, place ID. Search by keyword + location or place IDs. Plain-HTTP internal API — no browser, fast and cheap. $0.0025/place.

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

## Pricing

from $2.50 / 1,000 place scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 (plain-HTTP, cheap)

Extract Google Maps business data — title, address, coordinates, phone, website, rating,
review counts + distribution, opening hours, popular times, images, price bracket, menu,
reservation links, plus code, CID, place ID — **without a browser**.

A drop-in replication of the browser-based Google Maps scrapers on the Apify Store,
rebuilt on Google Maps' own internal JSON RPC endpoints over plain HTTP. No Playwright,
no headless Chrome: same data, a fraction of the compute cost (and therefore a fraction
of the price).

### Input

| Field | Type | Description |
|---|---|---|
| searchStringsArray | list | Search terms (each = one search per location) |
| lat / lng | string | Center coordinates (default New York) |
| zoom | string | Viewport zoom (default 13.1) |
| maxCrawledPlacesPerSearch | int | Max places per term (max 200; one search returns up to ~120 pins) |
| maxReviews | int | Reviews per place (each charged as review-scraped) |
| scrapePlaceDetailPage | bool | Full detail payload per place (default on) |
| placeIds | list | Direct scrape by ChIJ place ID |
| startUrls | list | Direct scrape by place URL |
| language | select | Output language |
| proxyConfiguration | object | Optional proxy |

### Output

Dataset records mirror the classic Google Maps scraper shape:
`title, categoryName, categories, address (+street/city/postalCode/state/countryCode), location, phone, website, plusCode, totalScore, reviewsCount, reviewsDistribution, price, openingHours, popularTimesHistogram, additionalInfo, imageUrls, menu, tableReservationLinks, orderOnlineLinks, owner, permanentlyClosed/temporarilyClosed, cid/dataId/placeId, reviews, searchString, rank, scrapedAt`

### Pricing (pay per event)

| Event | Price | Notes |
|---|---|---|
| place-scraped | $0.003 (FREE) / $0.0025 (BRONZE) / $0.002 (SILVER) / $0.0015 (GOLD) / $0.001 (PLATINUM) | per place record; badge ≈ $1.50/1k |
| review-scraped | $0.0005 | per review (only when maxReviews > 0) |
| actor-start | $0.00005 | once per run |

Platform compute is paid by the user (isPPEPlatformUsagePaidByUser), same as the original.
No browser in the container → compute per 1k places is ~10× lower than browser-based scrapers.

### Data source

Google Maps' own website RPC (`maps.google.com/search`, `preview/place`, `rpc/listugcposts`),
the same payload stream a browser session receives — fetched over plain HTTP with consent
cookies. Position-based parsers are ported from the MIT-licensed
gosom/google-maps-scraper and adapted to the current wire format (Sep 2026).

# Actor input Schema

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

What to search on Google Maps. Each term = one search per location.

## `lat` (type: `string`):

Center latitude (e.g. 40.7128). Defaults to New York.

## `lng` (type: `string`):

Center longitude (e.g. -74.0060). Defaults to New York.

## `zoom` (type: `string`):

Map zoom for the search viewport. Higher = smaller area, fewer but denser results.

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

Results language.

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

Per search term. One plain-HTTP search returns up to ~120 pins; extra paging = v1.1.

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

Number of reviews to extract per place. 0 = none. Each review = review-scraped charge.

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

Open each place's detail payload (phone, hours, popular times, images, price). Off = search-level records only.

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

Direct place detail scrape by ChIJ place ID.

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

Direct place detail scrape by maps.google.com place URL.

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

Optional. Residential proxies recommended for large runs from datacenter IPs.

## Actor input object example

```json
{
  "searchStringsArray": [
    "restaurant"
  ],
  "lat": "40.7128",
  "lng": "-74.0060",
  "zoom": "13.1",
  "language": "en",
  "maxCrawledPlacesPerSearch": 50,
  "maxReviews": 0,
  "scrapePlaceDetailPage": true,
  "startUrls": []
}
```

# Actor output Schema

## `searchString` (type: `string`):

Term or direct-input label

## `title` (type: `string`):

Place name

## `categoryName` (type: `string`):

Primary category

## `address` (type: `string`):

Full formatted address

## `phone` (type: `string`):

Phone number

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

Website URL

## `totalScore` (type: `string`):

Average rating

## `reviewsCount` (type: `string`):

Number of reviews

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

{lat, lng}

## `scrapedAt` (type: `string`):

ISO timestamp

# 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"
    ],
    "lat": "40.7128",
    "lng": "-74.0060",
    "zoom": "13.1",
    "maxCrawledPlacesPerSearch": 50,
    "maxReviews": 0,
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("subimpact/google-maps-scraper-plainhttp").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"],
    "lat": "40.7128",
    "lng": "-74.0060",
    "zoom": "13.1",
    "maxCrawledPlacesPerSearch": 50,
    "maxReviews": 0,
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("subimpact/google-maps-scraper-plainhttp").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"
  ],
  "lat": "40.7128",
  "lng": "-74.0060",
  "zoom": "13.1",
  "maxCrawledPlacesPerSearch": 50,
  "maxReviews": 0,
  "startUrls": []
}' |
apify call subimpact/google-maps-scraper-plainhttp --silent --output-dataset

```

## MCP server setup

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

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/2qoH1t5caU8URg1ak/builds/XDY2xFxvXgzesIgPp/openapi.json
