# Google Maps Reviews — New Since Any Date, No Duplicates (`animated_mellophone/google-maps-reviews-date-filter`) Actor

Extracts public Google Maps reviews with a native date filter: only reviews published since a date you choose (or the last N days), deduplicated across runs via excludeReviewIds. Built for recurring reputation monitoring — you pay only for new reviews actually delivered. No login, no CAPTCHA.

- **URL**: https://apify.com/animated_mellophone/google-maps-reviews-date-filter.md
- **Developed by:** [Yonaikel brito](https://apify.com/animated_mellophone) (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 review delivereds

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/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 Reviews — New Since Any Date, No Duplicates

**EN** · Extracts public Google Maps reviews with the two things generic
review scrapers don't give you: a **native date filter** and **guaranteed
deduplication across runs**. Built for recurring reputation monitoring: run
it on a schedule and only ever receive — and pay for — genuinely new
reviews.

**ES** · Extrae reseñas públicas de Google Maps con lo que los extractores
genéricos no dan: **filtro por fecha nativo** y **cero duplicados entre
corridas**. Pensado para monitoreo recurrente de reputación: prográmalo y
solo recibes —y pagas— reseñas realmente nuevas.

***

### Why this actor / Por qué este actor

Most Google Maps review scrapers force you to re-download a business's
entire review history on every run, then sort out the duplicates and the
old reviews yourself. This one is designed for the recurring use case:

- **Date filter built in** — `reviewsFromDate` (any ISO date) or `lastNDays`.
  Only reviews published since your cutoff are delivered.
- **No duplicates, ever** — pass the review IDs you already received in
  `excludeReviewIds`; they are skipped **and never charged**. Within a run,
  IDs are also deduplicated.
- **Early-stop pagination** — with `sortBy: newest` and a date filter on,
  reading stops as soon as a full page is older than your cutoff. A weekly
  monitoring run reads 1–2 pages per business instead of its whole history.
- **Works with the links you actually have** — full `/place/` and `/search/`
  URLs, short links (`maps.app.goo.gl`, `goo.gl/maps`, `g.page`) and
  `share.google` links are all resolved.
- **Pay only for what's delivered** — $0.001 per delivered review
  ($1.00 per 1,000). Old, duplicate or excluded reviews cost $0. No
  run-start fee.
- **No login, no CAPTCHA** — reads only public data over plain HTTP.

### Inputs / Entradas

| Input | Type | Default | Description |
|---|---|---|---|
| `placeUrls` | string list | Eiffel Tower example | Google Maps URLs of the businesses |
| `reviewsFromDate` | string | *(empty)* | ISO date/datetime; only reviews on/after it |
| `lastNDays` | integer | `0` | Alternative: only reviews from the last N days |
| `maxReviewsPerPlace` | integer | `100` | Max reviews delivered per business |
| `language` | select | `any` | Maps interface language (`any`/`es`/`en`) |
| `sortBy` | select | `newest` | `newest` / `oldest` / `highest` / `lowest` |
| `excludeReviewIds` | string list | `[]` | IDs already delivered: skipped, never charged |

### Output / Salida

One dataset item per delivered review:

`placeName`, `placeId` (Google's data/feature ID, `0x…:0x…`), `reviewId`,
`reviewerName`, `reviewerProfileUrl`, `reviewerReviewCount`*,
`rating`, `text`, `publishedAt` (exact ISO 8601 UTC — from Google's own
timestamp, never estimated from the relative text), `relativeDate`,
`likesCount`*, `ownerResponseText`, `ownerResponseDate`, `language`,
`scrapedAt`.

\* Best-effort fields: Google does not expose a stable position for them in
its public payload, so they may be `null` on some reviews.

If a business cannot be read, you get one item with an `error` field for
that place and the run continues with the rest. Error items are never
charged.

### The recurring-monitoring workflow / Flujo de monitoreo recurrente

1. First run: set `reviewsFromDate` (or `lastNDays`) and save the
   `reviewId`s you received.
2. Next runs: pass those IDs in `excludeReviewIds` (append the new ones
   each time) and keep the same date filter — or drop the date filter and
   rely on `excludeReviewIds` alone.
3. You receive only new reviews, and you are charged only for those.

### Pricing / Precio

Pay-per-event: **$0.001 per delivered review** ($1.00 per 1,000), same on
all tiers. A review counts as delivered only if it passes your date filter
and is not in `excludeReviewIds`.

### Notes / Notas

- `sortBy: oldest` returns the oldest reviews within the scanned window
  (Google offers no oldest-first order; the actor scans newest-first and
  inverts). For very large histories the scan is capped for safety.
- Reviews without a valid timestamp are excluded when a date filter is
  active (their newness can't be proven) and included otherwise.
- This actor reads **public data only** — no login, no cookies from any
  account. Reviewer names/profiles are the public information reviewers
  themselves published on Google Maps. Use the output responsibly and in
  line with applicable data-protection law (GDPR, etc.).

### Local development

```bash
pip install -r requirements.txt
python main.py --self-test
python main.py --input INPUT.example.json   # writes dataset_items.json
pytest tests/
```

# Actor input Schema

## `placeUrls` (type: `array`):

Google Maps URLs of the businesses to read reviews from. Accepts full /place/ and /search/ URLs, short links (maps.app.goo.gl, goo.gl/maps, g.page) and share.google links. One URL per line.

## `reviewsFromDate` (type: `string`):

Only deliver reviews published on or after this date (ISO format: 2026-01-01, or a full ISO datetime). Leave empty to use Last N days or to disable the date filter.

## `lastNDays` (type: `integer`):

Alternative to Reviews from date: only deliver reviews from the last N days. 0 disables it. If Reviews from date is set, it takes precedence.

## `maxReviewsPerPlace` (type: `integer`):

Maximum number of reviews delivered per business.

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

Interface language used when reading Google Maps (affects the relative date text). Each review's own language is always included in the output. 'any' reads with English for consistent parsing.

## `sortBy` (type: `string`):

Review order. 'newest' (default) enables early-stop pagination: with a date filter on, reading stops as soon as a full page is older than your cutoff, which keeps recurring runs fast and cheap. 'oldest' scans the place and returns the oldest reviews in the scanned window.

## `excludeReviewIds` (type: `array`):

Review IDs already delivered by previous runs. They are skipped and NOT charged. This is how you run the actor on a schedule and only ever receive — and pay for — genuinely new reviews.

## Actor input object example

```json
{
  "placeUrls": [
    "https://www.google.com/maps/place/Eiffel+Tower/@48.8583701,2.2944813,17z/data=!4m6!3m5!1s0x47e66e2964e34e2d:0x8ddca9df379e1f59!8m2!3d48.8583701!4d2.2944813"
  ],
  "reviewsFromDate": "",
  "lastNDays": 0,
  "maxReviewsPerPlace": 100,
  "language": "any",
  "sortBy": "newest",
  "excludeReviewIds": []
}
```

# Actor output Schema

## `dataset` (type: `string`):

Link to the default dataset with the delivered reviews.

# 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 = {
    "placeUrls": [
        "https://www.google.com/maps/place/Eiffel+Tower/@48.8583701,2.2944813,17z/data=!4m6!3m5!1s0x47e66e2964e34e2d:0x8ddca9df379e1f59!8m2!3d48.8583701!4d2.2944813"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("animated_mellophone/google-maps-reviews-date-filter").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 = { "placeUrls": ["https://www.google.com/maps/place/Eiffel+Tower/@48.8583701,2.2944813,17z/data=!4m6!3m5!1s0x47e66e2964e34e2d:0x8ddca9df379e1f59!8m2!3d48.8583701!4d2.2944813"] }

# Run the Actor and wait for it to finish
run = client.actor("animated_mellophone/google-maps-reviews-date-filter").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 '{
  "placeUrls": [
    "https://www.google.com/maps/place/Eiffel+Tower/@48.8583701,2.2944813,17z/data=!4m6!3m5!1s0x47e66e2964e34e2d:0x8ddca9df379e1f59!8m2!3d48.8583701!4d2.2944813"
  ]
}' |
apify call animated_mellophone/google-maps-reviews-date-filter --silent --output-dataset

```

## MCP server setup

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

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/HPy9as0Eo9XasSHmn/builds/jkvwObRAJtdBYpuXy/openapi.json
