How-to

Scrape Google Maps Reviews with Python: Every Review, Not Just 5

A Python script that downloads every Google Maps review of a place with cursor paging, sorting and a language filter, then saves the reviews to CSV.

Updated 10 min readBy the ScrapeMapsAPI team

To scrape Google Maps reviews with Python you need three things: an identifier for the place, a way to fetch one page of reviews at a time, and a loop that follows the pagination until the last page. This guide builds that script end to end with the ScrapeMapsAPI reviews endpoint and plain requests. It downloads every review of a place, not just the 5 the official Places API returns, lets you sort by newest or by rating, filters by the language a review was written in, and writes the result to a CSV file you can open in Excel or load into pandas.

If you only want to look at a few reviews before writing code, paste a Google Maps link into the free reviews tool: it shows the place and its 10 newest reviews without an account. For everything else, the script below is about 60 lines.

Why not just parse the Google Maps page?

Most "scrape Google Maps reviews with Python" tutorials open a headless browser, click the Reviews tab and scroll until the list stops growing. That approach had a good run, but it has three problems today.

  • Signed-out Google Maps shows a limited view of a place, and for many visitors the Reviews tab is simply not there. A browser that is not logged in often has nothing to scroll.
  • Logging a browser into a Google account to scrape is fragile and ties your scraper to an account that can be blocked at any moment.
  • Even when it works, a browser costs seconds and megabytes per page, and every change to the Maps interface breaks your selectors.

The official route has its own limit: the Places API returns at most 5 reviews per place, chosen by Google. We wrote a separate article on why the Places API stops at 5 reviews and what the workarounds really give you.

A reviews API sits in between. You send an HTTP request, you get JSON with up to 20 reviews and a cursor for the next page. The hard part (proxies, retries, parsing Google's payloads, keeping up when they change) is somebody else's problem, and you pay only for calls that succeed.

Step 1: get an API key and the place identifier

Create an account and copy an API key from the dashboard. Every account gets 200 free calls a month, which is enough for 4,000 reviews at 20 per call. Put the key in an environment variable so it never ends up in your code or your Git history:

Terminal
export SCRAPEMAPSAPI_API_KEY="key_your_api_key"

Next, you need to tell the API which place you mean. The reviews endpoint accepts three kinds of identifiers: a place ID (ChIJ…), a CID (a long decimal number) or a feature ID (0x…:0x…). If all you have is a link copied from the browser or a maps.app.goo.gl short link, the resolve endpoint converts it:

Terminal
curl "https://api.scrapemapsapi.com/v1/places/resolve?input=https%3A%2F%2Fmaps.app.goo.gl%2Fx7Qp2Nf9TzVb8LkE6" \
  -H "X-API-Key: $SCRAPEMAPSAPI_API_KEY"
JSON
{
  "data": {
    "place_id": "ChIJ8cLgoQNUKhMReGlaTjwrH40",
    "cid": "10168894021638449528",
    "feature_id": "0x132a5403a1e0c2f1:0x8d1f2b3c4e5a6978",
    "google_maps_url": "https://www.google.com/maps?cid=10168894021638449528"
  },
  "meta": { "credits_used": 1, "cached": false }
}

Any of the three values works in the next steps. Our guide to place IDs, CIDs and feature IDs explains where each one comes from and how to find it without an API call. If you start from a business name instead of a link, a call to place search gives you the id of every match.

Step 2: fetch one page of reviews

The endpoint is GET /v1/places/{place}/reviews. Try it with cURL first so you can see the shape of the answer:

Terminal
curl "https://api.scrapemapsapi.com/v1/places/ChIJ8cLgoQNUKhMReGlaTjwrH40/reviews?sort=newest&limit=20" \
  -H "X-API-Key: $SCRAPEMAPSAPI_API_KEY"

The response, trimmed to one review:

JSON
{
  "data": [
    {
      "id": "Ci9DQUlRQUNvZENodHljRjlvT2xKVVpXdzNXbGhzTFhWT1VrRjFUVTQ0VUVsdVZXYxAB",
      "rating": 5,
      "published_at": "2026-11-14T19:42:10Z",
      "relative_date": "a week ago",
      "language": "it",
      "text": "Bistecca perfetta e servizio gentilissimo. Prenotate!",
      "translated_text": "Perfect steak and very kind service. Book ahead!",
      "author": { "id": "a_5f2c9e1b7d43" },
      "owner_response": {
        "text": "Grazie mille, vi aspettiamo presto!",
        "translated_text": "Thank you so much, see you soon!",
        "relative_date": "6 days ago"
      },
      "photos": [],
      "details": { "Price per person": "€30–40", "Food": "5", "Service": "5" },
      "source": "Google"
    }
  ],
  "pagination": { "next_cursor": "CAESBkVnSUlDZw", "has_more": true },
  "meta": {
    "credits_used": 1,
    "cached": false,
    "place_id": "ChIJ8cLgoQNUKhMReGlaTjwrH40",
    "cid": "10168894021638449528",
    "sort": "newest",
    "language": "en",
    "original_language": null
  }
}

A few fields deserve a word:

  • published_at is an ISO 8601 timestamp in UTC, so you can sort and filter by date without parsing "a week ago".
  • text is what the reviewer wrote, in the language given by language. translated_text is Google's translation into the language you asked for with the language parameter, present only when the two differ.
  • author.id is a stable pseudonym. The API never returns reviewer names, photos or profile links, by design: you can still spot several reviews by the same author, but not who they are.
  • details holds the structured answers some reviewers give, such as price per person or separate ratings for food and service.

The full list of fields is in the API reference.

Step 3: page through every review

Each call returns one page of up to 20 reviews and costs 1 credit. To get the next page you repeat the call with cursor set to pagination.next_cursor. The cursor remembers the sort order and the language settings, so you only need to pass it along. When has_more is false, you have reached the end.

Here is the complete script. It handles the two situations a long download will meet: the per-minute rate limit (429 with a Retry-After header) and a temporary upstream error (503), which it retries a few times before giving up.

Python
import csv
import os
import sys
import time

import requests

API = "https://api.scrapemapsapi.com/v1"
KEY = os.environ["SCRAPEMAPSAPI_API_KEY"]


def get(path, params, max_retries=5):
    """One API call; waits on 429 and retries temporary errors."""
    for attempt in range(max_retries):
        r = requests.get(f"{API}{path}", params=params, headers={"X-API-Key": KEY}, timeout=60)
        if r.status_code == 200:
            return r.json()
        if r.status_code == 429:
            time.sleep(int(r.headers.get("Retry-After", "60")))
            continue
        if r.status_code in (502, 503):
            time.sleep(2 ** attempt)
            continue
        raise RuntimeError(f"{r.status_code}: {r.json()['detail']}")
    raise RuntimeError("too many retries")


def all_reviews(place, sort="newest", language="en", original_language=None, max_reviews=None):
    params = {"sort": sort, "language": language, "limit": 20}
    if original_language:
        params["original_language"] = original_language
    count = 0
    while True:
        page = get(f"/places/{place}/reviews", params)
        for review in page["data"]:
            yield review
            count += 1
            if max_reviews and count >= max_reviews:
                return
        if not page["pagination"]["has_more"]:
            return
        params = {"cursor": page["pagination"]["next_cursor"], "limit": 20}


def save_csv(reviews, path):
    fields = ["id", "rating", "published_at", "language", "text", "translated_text",
              "author_id", "owner_response", "photos"]
    with open(path, "w", newline="", encoding="utf-8") as f:
        writer = csv.DictWriter(f, fieldnames=fields)
        writer.writeheader()
        for r in reviews:
            writer.writerow({
                "id": r["id"],
                "rating": r["rating"],
                "published_at": r["published_at"],
                "language": r["language"],
                "text": r["text"],
                "translated_text": r["translated_text"],
                "author_id": r["author"]["id"],
                "owner_response": (r["owner_response"] or {}).get("text"),
                "photos": len(r["photos"]),
            })


if __name__ == "__main__":
    place = sys.argv[1]
    reviews = list(all_reviews(place, sort="newest"))
    save_csv(reviews, "reviews.csv")
    print(f"{len(reviews)} reviews saved to reviews.csv")

Run it with any identifier:

Terminal
pip install requests
python reviews.py ChIJ8cLgoQNUKhMReGlaTjwrH40

A place with 2,000 reviews takes 100 calls, which is 100 credits: half of the monthly free allowance, or about $0.30 at list price. The max_reviews argument lets you stop earlier, for example when you only need the latest 200.

Sorting, languages and translations

The sort parameter takes four values, and choosing the right one saves calls:

sortWhat you get firstGood for
relevantGoogle's default orderA representative sample
newestMost recent reviewsMonitoring, incremental updates
highest5-star reviews firstTestimonials, what customers love
lowest1-star reviews firstComplaints, quality control

If you need the latest reviews every week, sort by newest and stop as soon as you meet a review id you already have. That turns a full download into one or two calls per place. Our article on monitoring new Google reviews builds exactly that loop in Node.js.

Languages work in two directions. language sets the language you want to read in: Google translates reviews into it and puts the result in translated_text, keeping the original in text. original_language is a filter: with original_language=de you get only the reviews that were written in German. Because the filter is applied to Google's pages of 20, a filtered page can hold fewer than 20 reviews, or even none, and still have a next_cursor. The loop above handles that, since it stops on has_more and not on an empty page.

Python
german = list(all_reviews("ChIJ8cLgoQNUKhMReGlaTjwrH40", sort="newest", original_language="de"))

Working with the data in pandas

Once the reviews are in a CSV, the analysis is the easy part:

Python
import pandas as pd

df = pd.read_csv("reviews.csv", parse_dates=["published_at"])
monthly = df.set_index("published_at").resample("MS")["rating"].agg(["mean", "count"])
print(monthly.tail(12))
print("Share answered by the owner:", df["owner_response"].notna().mean().round(2))

From there you can track the average rating month by month, the share of reviews the owner answers, or which words come up in 1 and 2 star reviews. We go further in sentiment analysis of Google reviews with Python.

Using the Python SDK instead

The script uses requests so every line is visible, but there is an official SDK (pip install scrapemapsapi) with typed models and an iterator that follows the cursors for you. It also maps errors to exceptions such as an insufficient credits error, so your code can react to them by type rather than by status code. The SDK documentation shows the same download in a few lines.

Mistakes to avoid

  • Do not raise limit above 20: the API answers 422. Twenty is one page of Google's feed, and one page is one call.
  • Do not reuse a cursor for another place or change sort halfway through: the cursor belongs to the request that produced it, and a mismatch is a 400 invalid_cursor.
  • Do not hammer the API in parallel without a limit. The rate limit is 500 requests a minute per account; respect Retry-After and you will never notice it.
  • Do not store more personal data than you need. The API already leaves reviewer identities out; keep it that way in your own database too.

Errors are never billed, so a failed call costs nothing. The full list of codes is on the errors page, and pricing explains the credit packs if you go beyond the free tier.

FAQ

Can I scrape all Google Maps reviews of a place with Python?

Yes. Call the reviews endpoint with limit=20, then repeat with cursor set to the next_cursor of the previous answer until has_more is false. Each call returns up to 20 reviews, so a place with 1,000 reviews needs 50 calls.

How much does it cost to download Google Maps reviews?

Every successful call costs 1 credit and returns up to 20 reviews. The first 200 calls each month are free, which covers 4,000 reviews. After that the list price is $3 per 1,000 calls, about $0.15 per 1,000 reviews, and less with credit packs.

Do I get the reviewer's name?

No. Each review has a pseudonymous author ID that stays the same for the same reviewer, so you can group reviews by author, but names, profile photos and profile links are never returned. This keeps your dataset away from personal data you do not need.

Can I get only reviews written in one language?

Yes. Add original_language with a language code, such as original_language=fr, and the API returns only reviews originally written in that language. A filtered page may contain fewer than 20 reviews, so keep following the cursor until has_more is false.

Do I need Selenium or a headless browser?

No. The API returns the reviews as JSON over plain HTTP, so the requests library is enough. There is no browser to install, no page to scroll and no selectors to maintain when Google changes its interface.

Try it on your own data

Create a free account and get 200 free API calls every month. No credit card required.

Related articles