# Google Place ID Finder & Review Link Generator (`prattsolutions/google-place-id-finder`) Actor

Look up the Google Place ID of many businesses at once from their names and addresses, with each one's CID, Google Maps link and a ready-to-share link that opens its Google review form.

- **URL**: https://apify.com/prattsolutions/google-place-id-finder.md
- **Developed by:** [John Pratt](https://apify.com/prattsolutions) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 place founds

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 Place ID Finder looks up the **Google Place ID of many businesses at once**. Enter each business's name with its city or address, such as `Katz's Delicatessen, New York`, and get back its **Place ID, CID, Google Maps link and a review link** that opens the Google review form for that business. It also returns the address, category, phone, website, rating, review count and coordinates Google Maps lists, so you can check each match. Use it to build review request links for clients, fill Place IDs into a spreadsheet or CRM, or prepare input for the Google Places API.

### What does Google Place ID Finder do?

- **Finds the Place ID** of each business you list, in bulk, without a Google Cloud account or API key.
- **Generates a Google review link** for each one: `https://search.google.com/local/writereview?placeid=...` opens the business's review form, ready to send to customers or put in a QR code.
- **Returns the other Google IDs**: the CID and the Maps data ID, plus the Google Maps link.
- **Shows what it matched**, with the name, address and category Google Maps lists, so a wrong match is easy to spot.
- **Looks up three businesses at a time**, and charges only for the places it finds.

### How to find a Google Place ID

1. Open the Actor in Apify Console and go to the **Input** tab.
2. Enter the businesses in **Businesses**, one per line: the name plus its city or street address, such as `Katz's Delicatessen, 205 E Houston St, New York`.
3. Click **Start**.
4. When the run finishes, open the **Place IDs** view on the **Output** tab, or export the list as CSV or Excel.

#### Generate Google review links in bulk

Every item has a `review_link`. Opening it signed in to Google shows the business's review form with the stars ready to click, which is what review request emails, texts, NFC cards and QR codes link to. Look up all your clients' locations in one run and copy the `review_link` column.

#### Get the right match

The first place Google Maps finds for each line is saved. A unique name plus its city is usually enough. For chains and common names, add the street address, such as `Starbucks, 1912 Pike Pl, Seattle`. Compare the returned `name` and `address` with what you searched to catch the rare wrong match.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `keywords` | array of strings | required | The businesses to look up, one per item: name plus city or street address. |
| `language` | string | `en` | Google interface language code, such as `en`, `es`, `de` or `fr`. It sets the language of the category and address. |

```json
{
    "keywords": [
        "Katz's Delicatessen, 205 E Houston St, New York",
        "Space Needle, Seattle",
        "Starbucks, 1912 Pike Pl, Seattle"
    ]
}
```

### Output

Each business found is one item in the dataset:

```json
{
    "query": "Katz's Delicatessen, 205 E Houston St, New York",
    "name": "Katz's Delicatessen",
    "address": "205 E Houston St, New York, NY 10002",
    "place_id": "ChIJCar0f49ZwokR6ozLV-dHNTE",
    "cid": "3545819340560108778",
    "data_id": "0x89c2598f7ff4aa09:0x313547e757cb8cea",
    "google_maps_url": "https://www.google.com/maps/place/Katz's+Delicatessen/...",
    "review_link": "https://search.google.com/local/writereview?placeid=ChIJCar0f49ZwokR6ozLV-dHNTE",
    "category": "Deli",
    "phone": "(212) 254-2246",
    "website": "https://katzsdelicatessen.com/",
    "rating": 4.5,
    "review_count": 56120,
    "latitude": 40.722233,
    "longitude": -73.987429
}
```

`query` is the line you entered, so you can join the results back to your list. `rating`, `review_count`, `latitude` and `longitude` are numbers, or `null` when Google has no value.

### How much does it cost?

It costs **$3 per 1,000 places found** ($0.003 per place saved). A line Google Maps finds no place for isn't saved, so it isn't charged. Each run also has Apify's standard start fee of $0.00005, and there's no separate charge for compute.

- Looking up 50 client locations costs **$0.15**.
- 1,000 Place IDs cost **$3**.

To cap what a run can cost, set **Maximum cost per run** in the run options (`maxTotalChargeUsd` in the API). When a run reaches the cap, it stops saving places.

### Place ID API

Get your API token in **Apify Console → Settings → API & Integrations**. This request starts a run, waits for it and returns the results as JSON. Apify ends it with HTTP `408` after 300 seconds, so keep it to about 20 businesses, and start bigger runs with the `runs` endpoint or a client library:

```bash
curl -X POST "https://api.apify.com/v2/acts/prattsolutions~google-place-id-finder/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["Space Needle, Seattle"]}'
```

Python, with the [`apify-client`](https://docs.apify.com/api/client/python) package:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("prattsolutions/google-place-id-finder").call(
    run_input={"keywords": ["Katz's Delicatessen, New York", "Space Needle, Seattle"]}
)
for place in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(place["query"], "->", place["place_id"], place["review_link"])
```

### FAQ

#### What is a Google Place ID?

A Place ID is the text ID Google gives each place on Google Maps, such as `ChIJCar0f49ZwokR6ozLV-dHNTE`. The Google Places API, Google Maps embeds and review links all use it. It stays the same when the business changes its name or details, although Google can occasionally replace it.

#### What's the difference between Place ID, CID and data ID?

They're three IDs for the same place. The Place ID is what Google's APIs and review links take. The CID is a number that older tools and links use: `https://maps.google.com/?cid=` followed by the CID opens the place. The data ID is the `0x…:0x…` pair inside Google Maps URLs.

#### Why did a business get no result?

Google Maps found no place for that line. Check the spelling, add the city or street address, and run it again.

#### How long does a run take?

Each lookup takes 15 to 40 seconds, and three run at a time, so 100 businesses take about 15 minutes.

#### Why was my first run in a while slow to start?

When nobody has used the scraper for a few weeks, its backend needs a few minutes to wake up. The log shows `Lambda is waking up (...); retrying in 15s.`, and the run then continues normally.

#### Is this affiliated with Google?

No. The Actor reads the Place IDs that Google Maps shows publicly. It doesn't use your Google account or a Google API key.

# Actor input Schema

## `keywords` (type: `array`):

The businesses to look up, one per line: the business name plus its city or street address, such as "Katz's Delicatessen, New York". The first place Google Maps finds for each line is saved, so add the address when a name is common.

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

Google interface language code, such as en, es, de or fr. It sets the language of the categories Google returns.

## Actor input object example

```json
{
  "keywords": [
    "Katz's Delicatessen, 205 E Houston St, New York",
    "Space Needle, Seattle"
  ],
  "language": "en"
}
```

# Actor output Schema

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

All places in the run's default dataset. Each field is described in the dataset schema.

# 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 = {
    "keywords": [
        "Katz's Delicatessen, New York",
        "Space Needle, Seattle"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("prattsolutions/google-place-id-finder").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 = { "keywords": [
        "Katz's Delicatessen, New York",
        "Space Needle, Seattle",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("prattsolutions/google-place-id-finder").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 '{
  "keywords": [
    "Katz'\''s Delicatessen, New York",
    "Space Needle, Seattle"
  ]
}' |
apify call prattsolutions/google-place-id-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,prattsolutions/google-place-id-finder"
        }
    }
}
```

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/oZNWaJbBO0a3ZJDzf/builds/fm59JDpSpADauupZS/openapi.json
