# Google Maps API (`apidojo/google-maps-api`) Actor

Real-time Google Maps data over plain HTTP. Search places by keyword and location, get full place details and read reviews sorted by newest, highest or lowest rating, as JSON. No Google API key, no runs to start. $0.007 per successful request.

- **URL**: https://apify.com/apidojo/google-maps-api.md
- **Developed by:** [API Dojo](https://apify.com/apidojo) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$7.00 / 1,000 api requests

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 API: Place Search, Place Details & Reviews

Call Google Maps data like any REST API. This **Google Maps API** is an always-on Apify Standby Actor: send a `GET` request, get JSON back in seconds. No runs to start, no datasets to poll, no Google Cloud account.

Search places, look up place details, page through reviews and fetch single reviews. All through 4 simple endpoints.

**💰 Pricing:** $0.007 per successful request | **⚡ Response:** live JSON, seconds | **🔓 No Google login or API key**

***

### 📋 Table of Contents

1. [How It Works](#-how-it-works)
2. [Quick Start](#-quick-start)
3. [Pricing](#-pricing)
4. [Endpoints](#-endpoints)
5. [Pagination](#-pagination)
6. [Response Format](#-response-format)
7. [Errors & Status Codes](#-errors--status-codes)
8. [Code Examples](#-code-examples)
9. [Free Plan](#-free-plan)
10. [FAQ](#-frequently-asked-questions)
11. [Contact](#-contact)

***

### 🧭 How It Works

This Actor runs in [Apify Standby mode](https://docs.apify.com/platform/actors/running/standby). Instead of starting a run and waiting for a dataset, you call an HTTP endpoint and get the result in the response.

| | Classic Actor run | This Google Maps API (Standby) |
| --- | --- | --- |
| **How you call it** | Start a run, wait, read the dataset | Plain `GET` request |
| **Latency** | Run startup + scraping | Live response, no startup |
| **Result** | Dataset items | JSON in the HTTP response |
| **Billing** | Per run / per item | **Per request** |
| **Best for** | Large batch jobs | Apps, bots, agents, dashboards |

Every endpoint returns one object or one page of results. Use `cursor` to get the next page of reviews and `offset` to get the next page of search results.

***

### 🚀 Quick Start

**1. Get your Apify API token** from [Console → Settings → API & Integrations](https://console.apify.com/settings/integrations?fpr=yhdrb).

**2. Call an endpoint:**

```bash
curl "https://apidojo--google-maps-api.apify.actor/place/search?query=restaurant&countryCode=US&languageCode=en" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

**3. Get JSON back:**

```json
{
  "status": 200,
  "message": "OK",
  "data": [
    {
      "title": "Restaurant Name",
      "address": "123 Main St",
      "city": "New York",
      "totalScore": 4.5,
      "reviewsCount": 1250,
      "fid": "0x89c259bf145bf82f:0xc80a67a9a44b",
      "...": "..."
    }
  ]
}
```

That's it. That request cost $0.007.

**Authentication:** send your Apify token in the `Authorization: Bearer <token>` header (recommended) or as a `?token=<token>` query parameter. The `Authorization` header is never forwarded to the upstream service.

***

### 💰 Pricing

One flat price, every endpoint.

| Event | Price | When it fires |
| --- | --- | --- |
| **Request** (`request-event`) | **$0.007** per call | Every successful request that returns data |

- **Same price for every endpoint.** A place lookup and a page of reviews cost the same.
- **You only pay for successful responses.** Invalid requests (`400`), not-found results, plan and rate-limit refusals and upstream errors are **not charged**.
- **No platform fees, no compute units, no runs.** Just the per-request price.

#### Cost Examples

| Scenario | Requests | Cost |
| --- | --- | --- |
| Look up 1 place | 1 | **$0.007** |
| Fetch details for 100 places by FID | 100 | **$0.70** |
| Read a place's reviews, 50 pages deep | 50 | **$0.35** |
| Look up 1,000 places | 1,000 | **$7.00** |
| 10,000 calls in a month | 10,000 | **$70.00** |

> Paginated endpoints are charged per page. Following a `cursor` or changing the `offset` is a new request, so 10 pages = 10 requests = $0.07.

***

### 📚 Endpoints

All endpoints are `GET`. Base URL: `https://apidojo--google-maps-api.apify.actor`

#### 📍 Places

| Endpoint | Description | Params |
| --- | --- | --- |
| `/place/search` | Search places by keyword, optionally around a location | `query` (required, e.g. `restaurant`), `languageCode` (e.g. `en`), `countryCode` (e.g. `US`), `latitude` (number, e.g. `40.7128`), `longitude` (number, e.g. `-74.006`), `zoom` (number, e.g. `15`), `offset` (integer, e.g. `0`) |
| `/place/{fid}` | Full place details by FID | `fid` (required, e.g. `0x14d34deb3035fd95:0x3f56a607ad888316`), `countryCode`, `languageCode` |

#### ⭐ Reviews

| Endpoint | Description | Params |
| --- | --- | --- |
| `/place/{fid}/reviews` | Reviews for a place | `fid` (required), `sort` (`relevant`, `newest`, `highest` or `lowest`, default `relevant`), `countryCode`, `languageCode`, `cursor` |
| `/review/{id}` | A single review by ID | `id` (required, e.g. `ChZDSUhNMG9nS0VJQ0FnSUNkdUxEVllREAE`) |

> **Tip:** The `fid` is the Google Maps feature ID of a place. It has the format `0x<hex>:0x<hex>`, for example `0x14d34deb3035fd95:0x3f56a607ad888316`. Get it from the `fid` field of any place returned by `/place/search`. The review `id` comes from the `id` field of reviews returned by `/place/{fid}/reviews`.

The full OpenAPI spec is available on the Actor's **API** tab in Apify Console.

***

### 🔄 Pagination

`/place/{fid}/reviews` returns a `cursor` with each page. Pass it back to get the next page.

```bash
## Page 1
curl "https://apidojo--google-maps-api.apify.actor/place/0x14d34deb3035fd95:0x3f56a607ad888316/reviews?sort=newest" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"

## Page 2
curl "https://apidojo--google-maps-api.apify.actor/place/0x14d34deb3035fd95:0x3f56a607ad888316/reviews?sort=newest&cursor=CURSOR_FROM_PAGE_1" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

Stop when the response has no `cursor` or `results` comes back empty. Each page is one request ($0.007).

`/place/search` has no cursor. It takes an `offset`, the starting point of the result set. Start at `0` and set `offset` to the number of places you have already received to get the next page. Stop when `data` comes back empty.

***

### 📊 Response Format

Every response has the same envelope:

```json
{
  "status": 200,
  "message": "OK",
  "data": { }
}
```

| Endpoint type | `data` contains |
| --- | --- |
| Place search | Array of place objects |
| Place details | One place object |
| Place reviews | `{ "cursor": "...", "results": [...] }` (array of review objects) |
| Single review | One review object |

#### Place Object

```json
{
  "url": "https://www.google.com/maps/place/...",
  "title": "Restaurant Name",
  "description": "A cozy restaurant in the heart of the city",
  "address": "123 Main St",
  "city": "New York",
  "countryCode": "US",
  "location": { "lat": 40.7128, "lng": -74.006 },
  "website": "https://restaurant.com",
  "phone": "+1 (555) 123-4567",
  "price": 2,
  "totalScore": 4.5,
  "cid": "15068171223326669206",
  "fid": "0x89c259bf145bf82f:0xc80a67a9a44b",
  "reviewsCount": 1250,
  "categories": ["Restaurant", "Italian", "Pizza"],
  "openingHours": [{ "day": "Monday", "hours": "9:00 AM - 10:00 PM" }]
}
```

Places can also include `neighborhood`, `street`, `district`, `postalCode`, `menu`, `phoneUnformatted`, `plusCode`, `imagesCount` and `reviewsDistribution` (`oneStar` to `fiveStar` counts).

#### Review Object

```json
{
  "id": "ChZDSUhNMG9nS0VJQ0FnSUNkdUxEVllREAE",
  "url": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sChZDSUhNMG9nS0VJQ0FnSUNkdUxEVllREAE...",
  "language": "tr",
  "text": "Çok güzel bir yer...",
  "textTranslated": "It's a very beautiful place...",
  "likes": 0,
  "stars": 4,
  "date": 1707653195878602,
  "reviewer": {
    "name": "name surname",
    "photo": "https://lh3.googleusercontent.com/a/ACg8ocItt8DRua3w...",
    "url": "https://www.google.com/maps/contrib/123345?hl=en",
    "totalReviews": 13,
    "totalPhotos": 28
  },
  "photos": ["https://lh5.googleusercontent.com/p/ASD123"],
  "details": {
    "Visited on": "Weekend",
    "Wait time": "No wait",
    "Reservation recommended": "No"
  },
  "ownersResponse": {
    "text": "Sayın...",
    "textTranslated": "Dear...",
    "date": 1708004755000000,
    "language": "tr"
  }
}
```

Reviews also include a `type` field. `date` and `ownersResponse.date` are Unix timestamps in microseconds.

***

### ⚠️ Errors & Status Codes

Errors use the same envelope, without `data`. **Requests that return no data are not charged.**

| Status | Meaning | Charged? |
| --- | --- | --- |
| `200` | Success | ✅ $0.007 |
| `400` | Invalid parameters. `errors` lists what's wrong | ❌ |
| `404` | Unknown endpoint or nothing found | ❌ |
| `403` | Access not available on your plan or account | ❌ |
| `429` | Monthly free request limit reached | ❌ |
| `502` | Upstream error, safe to retry | ❌ |
| `503` | Plan check temporarily unavailable, retry shortly | ❌ |

Example `400`:

```json
{
  "status": 400,
  "message": "Bad request",
  "errors": ["params.fid: fid must match 0x[hex]:0x[hex]"]
}
```

***

### 💻 Code Examples

#### cURL

```bash
curl "https://apidojo--google-maps-api.apify.actor/place/0x14d34deb3035fd95:0x3f56a607ad888316?languageCode=en" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

#### Python

```python
import requests

BASE = "https://apidojo--google-maps-api.apify.actor"
HEADERS = {"Authorization": "Bearer YOUR_APIFY_TOKEN"}

def get_reviews(fid, pages=5):
    reviews, cursor = [], None
    for _ in range(pages):
        params = {"sort": "newest"}
        if cursor:
            params["cursor"] = cursor
        res = requests.get(f"{BASE}/place/{fid}/reviews", headers=HEADERS, params=params, timeout=300).json()
        data = res.get("data") or {}
        reviews += data.get("results", [])
        cursor = data.get("cursor")
        if not cursor or not data.get("results"):
            break
    return reviews

print(len(get_reviews("0x14d34deb3035fd95:0x3f56a607ad888316", pages=3)))  # max 3 requests = $0.021
```

#### JavaScript / Node.js

```javascript
const BASE = 'https://apidojo--google-maps-api.apify.actor';
const headers = { Authorization: `Bearer ${process.env.APIFY_TOKEN}` };

const res = await fetch(`${BASE}/place/search?query=${encodeURIComponent('pizza')}&countryCode=US`, { headers });
const { data: places } = await res.json();

const place = await fetch(`${BASE}/place/${places[0].fid}`, { headers }).then((r) => r.json());
console.log(place.data.title, place.data.totalScore, place.data.reviewsCount);
```

#### Search Around a Location

```bash
curl "https://apidojo--google-maps-api.apify.actor/place/search?query=coffee&latitude=40.7128&longitude=-74.006&zoom=15" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN"
```

***

### 🆓 Free Plan

Apify Free plan users can try this API with a limited number of free requests each month. When the monthly limit is reached, the API answers `429` until the next month. [Subscribe to a paid Apify plan](https://apify.com/pricing?fpr=yhdrb) for unlimited requests.

***

### ❓ Frequently Asked Questions

#### What is a Standby Actor?

A Standby Actor is an always-running web server on Apify. You call it over HTTP like any API and get the response directly. No runs to start or datasets to read. [Learn more](https://docs.apify.com/platform/actors/running/standby).

#### How much does it cost?

**$0.007 per successful request**, the same for every endpoint. 1,000 requests = $7. Failed and invalid requests are free.

#### Am I charged per place, per review or per request?

Per request. A page of search results or reviews costs the same as a single place lookup.

#### Do I need a Google Maps API key or Google Cloud account?

No. You only need an Apify API token.

#### What is a FID and where do I find it?

The FID is the Google Maps feature ID of a place, in the format `0x<hex>:0x<hex>`. Every place returned by `/place/search` has a `fid` field. Pass it to `/place/{fid}` for details or `/place/{fid}/reviews` for reviews.

#### How do I get more than one page of results?

For reviews, pass the `cursor` from the previous response as a query parameter. For place search, increase `offset`. Each page is a separate $0.007 request. See [Pagination](#-pagination).

#### Can I get results in another language or country?

Yes. `/place/search`, `/place/{fid}` and `/place/{fid}/reviews` accept `languageCode` (e.g. `en`) and `countryCode` (e.g. `US`). Reviews also include `textTranslated` next to the original `text`.

#### How fast is it?

Responses come back live, usually within seconds. There is no run startup time.

#### Can I use it from an AI agent or bot?

Yes. It's a plain HTTP API with an OpenAPI spec, so it fits LLM tool calls, bots, backends and no-code tools that can make HTTP requests.

#### Where is the data stored?

Nowhere. Results are returned in the HTTP response only.

#### Can I access private data?

No. Only publicly available Google Maps data is returned.

***

### 📞 Contact

If you need any sort of support, please send an email to **apidojo10@gmail.com**. You name it, we get it.

***

**Ready to call Google Maps data like an API?** One endpoint per question, $0.007 per answer, live JSON in seconds. Grab your Apify token and send your first request. 📍

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("apidojo/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("apidojo/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 '{}' |
apify call apidojo/google-maps-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apidojo/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/CZgHhMvzb67xZTzL3/builds/Of6MaNxnTOE3PtE95/openapi.json
