Google Maps Reviews API
Scraping only the reviews from Google Maps is now possible with the Google SERP API.
To enable this engine, set the engine=google_maps parameter.
If you only want to scrape the Google Maps Reviews, you can do so by simply interacting with the Google Maps Reviews API. This engine will return a JSON object of all the reviews available, based on your query.
Scrape Google Maps Reviews

Google Maps Reviews API Integration Examples

We will use following URL as an example for this request:
https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=<YOUR_API_KEY>&q=!4m5!3m4!1s0x4786c6ace45fe3bd:0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224

Ready to Use Google Maps Reviews Scraping Scripts:

cURL
NodeJS
Python
PHP
Go
Java
Untitled
Untitled
curl --request GET --url "https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224"
const http = require("https");
const options = {
"method": "GET",
"hostname": "serpapi.webscrapingapi.com",
"port": null,
"path": "/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
import http.client
conn = http.client.HTTPSConnection("serpapi.webscrapingapi.com")
conn.request("GET", "/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224")
.asString();
var client = new RestClient("https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://serpapi.webscrapingapi.com/v1?engine=google_maps_reviews&api_key=YOUR_API_KEY&q=!4m5!3m4!1s0x4786c6ace45fe3bd%3A0x126d84580eedebe5!8m2!3d45.4649853!4d9.1860224")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body

Google Maps Reviews Parameters

#1: Query Parameter

Parameter
Type
Description
q Required
string
The keywords that you are searching for on Google (the query).

#2: Request Customisation Parameters

Parameter
Type
Description
device
string
The device used for your search. Can be set to desktop, mobile or tablet.
location
string
Defines where you want the search to originate from. A list of all the geotargetting locations can be found here.
Response Example
Copy link
Outline
Google Maps Reviews API Integration Examples
Ready to Use Google Maps Reviews Scraping Scripts:
Google Maps Reviews Parameters