Google Reviews Scraper or API: What You Get
A Google reviews scraper is code that loads a business's reviews, steps through them page by page and pulls the rating, date and text out of what comes back. You build and maintain the fetching, the parsing and the checks that tell you it broke. The alternative is GET /v1/google-maps/reviews, which takes a business_id and returns reviews as JSON with rating, timestamp, review_text and a nextPage token, at 1 credit per successful call. This post compares the two and gives a verdict per use case.
What does a Google reviews scraper have to do?
A reviews scraper does more than fetch one page. It has to find the business, load its reviews, keep loading until it has every review or every new one, turn each review into fields, and store them without duplicates. Each step is code you own, and each one can break without an error, so a scraper also needs checks that compare today's run with yesterday's.
Fetching and paging
Review lists on most large sites aren't one static page. They come in batches, often loaded by scripts as the reader scrolls or clicks, so a scraper typically needs a headless browser or has to work out which background requests carry the data. Then it has to page: keep requesting the next batch until there are no more, and remember where it stopped. A business with thousands of reviews means many requests per run, and a run that stops halfway leaves a gap you have to detect.
Parsing
Each review has to become a row: a rating, a date, the text, a language, an identifier you can deduplicate on. Pages show these for people, not programs. Ratings may be drawn as icons, dates may be written for reading rather than sorting, and long text may be cut short until expanded. Every one of those needs its own parsing rule, and the rules depend on markup that the site can change whenever it ships a new layout.
Keeping it running
The ongoing cost is upkeep. Layouts change, so selectors stop matching and fields come back empty. Any large site has to separate people from automated traffic, so a scraper that runs daily at volume should expect slow responses, challenge pages and blocks. When that happens, stop and reconsider: getting around a site's protections with rotating proxies or CAPTCHA solvers isn't a fix we'd recommend. Read the site's terms before you collect anything at scale. Google Maps Scraper or Places Data API covers scraping the wider Maps data; this post stays on reviews.
What does the reviews endpoint return?
The reviews endpoint returns one page of a business's reviews as JSON, with each review's fields already named. You pass the business's business_id and get back items[] and a nextPage token. There's no browser, no selector and no date parsing: your code reads named fields, not page markup. Each successful call costs 1 credit; a failed one costs nothing.
This is the recorded request:
curl "https://api.perceptlayer.com/v1/google-maps/reviews?business_id=0x60188b88b7d8f7ab%3A0x2133080e9923eaac" \
-H "X-API-Key: $API_KEY"
The recorded response, trimmed to two reviews, with reviewer names, photos and profile links left out:
{
"items": [
{
"review_source": "Google",
"review_id": "Ci9DQUlRQUNvZENodHljRjlvT25kVUxXTmpaamhNWjFac016WTVSMjlqUVRCb1VYYxAB",
"rating": 5,
"timestamp": 1779471094452,
…
"review_text": [
"A must do! Easy access via Yamanote line > Shibuya > exit Hachiko exit and walk to the 41 or 42 bus (suica card OK) then four stops to Sugekari Elem Sch > once …"
],
"review_language": [
"en"
],
…
"is_google_review": true
},
{
"review_source": "Google",
"review_id": "Ci9DQUlRQUNvZENodHljRjlvT2tveFgyNWpZMVo1UTFsdldsWnlYM05CVVVoS2VHYxAB",
"rating": 5,
"timestamp": 1780515949145,
…
"review_text": [
"My visit to Starbucks Reserve Tokyo was one of the highlights of my trip to Japan. The building itself is stunning, with a unique design, spacious interior, and…"
],
…
}
],
"nextPage": "CjEIARIpCgoAP7_LADY2____EhBrFsVuDgXaYeq0lg4AAAAAGgn92PQCY8g0lvwYACIA"
}
| Field | Type in the recording | What you do with it |
|---|---|---|
review_id |
string | Primary key; deduplicate on it |
rating |
number | Store; average and trend per business |
timestamp |
13-digit number | Read as milliseconds since the Unix epoch, the two recorded values are 22 May and 3 June 2026 |
review_text |
array of strings | Join and store for search or sentiment work |
review_language |
array of strings | Route text to the right language model or filter |
review_source, is_google_review |
string, boolean | Keep if you mix sources |
nextPage |
string | Token for the next page |
The response also carries reviewer fields and image links. You don't need them to track a business's reviews, and reviewer names and profile links are personal data, so drop them before you store anything.
Which parameters does it take?
The reviews endpoint has one required parameter and seven optional ones. The API documents their types and allowed values, not their defaults, so the table lists only what's documented. Test sort and limit in the playground on the Google Maps API page before you fix them in a job.
| Parameter | Type | Required | Documented constraint |
|---|---|---|---|
business_id |
string | yes | None beyond the type |
page |
string | no | Up to 4096 characters |
pages |
integer | no | None beyond the type |
search |
string | no | Up to 100 characters |
sort |
integer | no | One of 1, 2, 3, 4 |
limit |
integer | no | None beyond the type |
hl |
string | no | None beyond the type |
gl |
string | no | None beyond the type |
page is a string of up to 4096 characters, which fits a token like the recorded nextPage. Check in the playground that passing one returns the next page before you write a loop that relies on it.
Where do the business_id and single reviews come from?
GET /v1/google-maps/simple-search takes a query, and each item in its recorded response carries a business_id, the same name the reviews endpoint takes. For one business you already know, Business Details also takes a business_id. To fetch one review again, GET /v1/google-maps/review takes review_id and business_id, the names that appear in the reviews response. Each is 1 credit per successful call.
How do a scraper and the reviews endpoint compare?
A scraper costs engineering time and has no per-call bill; the endpoint costs credits and has almost no code to maintain. The table sets them side by side for the job most people build a reviews scraper for: collecting and refreshing reviews for a list of businesses.
| DIY reviews scraper | GET /v1/google-maps/reviews |
|
|---|---|---|
| Setup | Browser automation or request reverse-engineering, parsers, storage | API key in the X-API-Key header |
| Fields | Whatever your parser extracts | review_id, rating, timestamp, review_text, review_language, review_source, is_google_review |
| Dates | Parsed from page text | timestamp as a number |
| Paging | Your own scroll or request logic | nextPage token in the response, page parameter on the request |
| Filters | Whatever the page offers | search, sort, limit, hl, gl |
| When the layout changes | Selectors break; fields come back empty | Your code reads JSON fields, not markup |
| Throughput | Limited by browsers you run and blocks you hit | 1 request a second free; at least 5 a second paid |
| Cost | Hosting, proxies if you use them, your time | 1 credit per successful call; failed calls cost 0 |
| Failure signal | Often silent: fewer rows than yesterday | HTTP status and a JSON error code |
What does tracking reviews cost per business?
Cost follows calls, so the unit to plan with is calls per business per check. A daily check that reads the first page of each business is one call per business per day. A full backfill reads every page once, so it costs as many credits as the business has pages of reviews; run one in the playground to see how many reviews a page holds for your businesses.
| Plan | Arithmetic | Credits a month |
|---|---|---|
| 30 businesses, first page daily | 30 × 30 days × 1 credit | 900 |
| 200 businesses, first page daily | 200 × 30 days × 1 credit | 6,000 |
| 200 businesses, first two pages daily | 200 × 2 × 30 days × 1 credit | 12,000 |
| 1,000 businesses, first page weekly | 1,000 × 4 weeks × 1 credit | 4,000 |
The 100 free credits you get after verifying an email address cover the first three days of the first plan. The first, second and fourth plans fit the Starter pack's 10,000 credits; the third fits the Build pack's 50,000. Per business tracked daily, that's 30 credits a month. Purchased credits last 12 months, with no subscription. See pricing for what credits cost and the credits docs for how debits work.
How does a daily check store only new reviews?
The check reads the first page for each business and inserts reviews it hasn't seen, keyed on review_id. This script uses Python's sqlite3 and reads only fields from the recorded response. It waits on 429 and 503 using the Retry-After header.
import os
import sqlite3
import time
import requests
API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/google-maps/reviews"
BUSINESSES = ["0x60188b88b7d8f7ab:0x2133080e9923eaac"]
db = sqlite3.connect("reviews.db")
db.execute("""CREATE TABLE IF NOT EXISTS reviews (
review_id TEXT PRIMARY KEY, business_id TEXT, rating REAL,
ts INTEGER, language TEXT, text TEXT)""")
def fetch(business_id, attempts=3):
for _ in range(attempts):
r = requests.get(URL, params={"business_id": business_id},
headers={"X-API-Key": API_KEY}, timeout=60)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json()
raise RuntimeError(f"gave up on {business_id}")
for business_id in BUSINESSES:
data = fetch(business_id)
new = 0
for item in data.get("items", []):
cur = db.execute(
"INSERT OR IGNORE INTO reviews VALUES (?, ?, ?, ?, ?, ?)",
(item.get("review_id"), business_id, item.get("rating"),
item.get("timestamp"), ",".join(item.get("review_language", [])),
" ".join(item.get("review_text", []))),
)
new += cur.rowcount
db.commit()
print(business_id, "new reviews:", new)
time.sleep(1)
No reviewer field is stored. The one-second pause keeps a free account within 1 request a second. If a business gets more new reviews a day than one page holds, raise the check to two pages or run it more often. Requests have no idempotency key, so a client timeout can hide a call that succeeded and was billed; keep the timeout generous. The errors docs list every error code.
Which should you choose?
Choose by how often you need the reviews and how many businesses you track, because those two numbers decide whether upkeep or credits dominate. The verdicts below assume you need the data more than once.
- Reputation monitoring for a set of locations (an agency, a chain, a franchise): use the reviews endpoint with a daily or weekly check per
business_id. Storereview_id,rating,timestampandreview_text, and alert on new low ratings. - A research or sentiment dataset (thousands of businesses, one pass): use the endpoint for the backfill. Cost is one credit per page, and
review_languagelets you split text by language before analysis. - An AI agent that answers questions about a place: give it the endpoints through MCP.
search_endpointsandget_endpointare free, andcall_endpointspends credits only on success; the AI agents docs cover setup. - A handful of businesses, checked by hand now and then: read the reviews in a browser. Neither a scraper nor an API is worth setting up.
- Learning how scraping works: build a scraper against a practice site, and read the target site's terms before pointing it anywhere real.
- Reviews from other platforms: the same comparison applies; Yelp Scraper or API and Trustpilot Scraper or API cover those.
To see the fields for your own businesses, run simple-search with your query in the playground on the Google Maps API page, then reviews with a business_id from the result. When the output fits, get a free API key.
APIs in this post
Frequently asked questions
How much does a Google reviews call cost?
Each successful call to GET /v1/google-maps/reviews costs 1 credit and returns one page of reviews for one business. A failed call costs nothing and returns X-Credits-Used: 0. Checking 200 businesses daily is 200 × 30 = 6,000 credits a month. Every account gets 100 free credits after verifying an email address; the pricing page lists what packs cost.
Can I get all reviews for a business, not just the first page?
The response ends with a nextPage token, and the endpoint takes a page string of up to 4096 characters and a pages integer. Test in the playground how these return later pages for your business before you build a loop. Each page you fetch is one more call at 1 credit, so a full backfill costs one credit per page of reviews.
Should I store reviewer names?
No. The reviews response includes reviewer names, photos and profile links, but tracking a business's reputation needs only the review content: review_id, rating, timestamp, review_text and review_language. Reviewer names and profile links are personal data, so drop them before storage and don't use reviews to contact the people who wrote them.
What is the timestamp field in a review?
In the recorded response, timestamp is a 13-digit number such as 1779471094452. Read as milliseconds since the Unix epoch, that's 22 May 2026, and the other recorded value is 3 June 2026. Divide by 1000 to get seconds for most date libraries. Check a few against reviews you can see on the page before relying on the conversion.
What happens when a reviews request fails?
You get an HTTP status and a JSON body with a code, a message and a request_id, and no credits are spent. A rate_limited (429) or temporarily_unavailable (503) response carries a Retry-After header with the seconds to wait. invalid_parameters (422) points at your parameters, such as a malformed business_id, and source_error (502) is worth retrying later.