Google Single Review
The Google Single Review API here in Scrappa, lets you fetch a single review by its review ID.
Endpoint
GET
/api/google_single_review
Parameters
review_id
string
Required
The Google review ID (e.g. ChZDSUhNMG9nS0VJQ0FnSUNRaE4tOEhREAE)
business_id
string
Required
Optional: The Google Maps business ID (e.g. 0x47bd0ea521300001:0x918691af860a8cc0)
Request Examples
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.scrappa.co/api/maps/review?review_id=review_123",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: YOUR_API_KEY_HERE"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
<?php
use Illuminate\Support\Facades\Http;
$response = Http::timeout(30)
->withHeaders(['x-api-key' => 'YOUR_API_KEY_HERE'])
->get('https://app.scrappa.co/api/maps/review?review_id=review_123');
if ($response->successful()) {
echo $response->body();
} else {
echo "Error: " . $response->status();
}
const options = {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY_HERE'
}
};
fetch('https://app.scrappa.co/api/maps/review?review_id=review_123', options)
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
return response.text();
})
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
require 'net/http'
require 'uri'
uri = URI.parse("https://app.scrappa.co/api/maps/review?review_id=review_123")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == 'https'
request = Net::HTTP::Get.new(uri.request_uri)
request['x-api-key'] = 'YOUR_API_KEY_HERE'
begin
response = http.request(request)
puts response.body
rescue => e
puts "Error: #{e.message}"
end
import http.client
import json
conn = http.client.HTTPSConnection("app.scrappa.co")
headers = {
'x-api-key': 'YOUR_API_KEY_HERE',
}
try:
conn.request("GET", "/api/maps/review?review_id=review_123", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
except Exception as e:
print(f"Error: {e}")
finally:
conn.close()
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class ApiExample {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://app.scrappa.co/api/maps/review?review_id=review_123")
.addHeader("x-api-key", "YOUR_API_KEY_HERE")
.build();
try (Response response = client.newCall(request).execute()) {
if (response.isSuccessful()) {
System.out.println(response.body().string());
} else {
System.out.println("Error: " + response.code());
}
} catch (IOException e) {
System.out.println("Error: " + e.getMessage());
}
}
}
Response Schema
[
{
"title": "JSON Results",
"description": null,
"json_sample": {
"error": null,
"review": {
"images": [],
"rating": 1,
"author_id": "107541294220744899409",
"review_id": "ChZDSUhNMG9nS0VJQ0FnSUNRaE4tOEhREAE",
"timestamp": 1723621200000,
"author_link": "https://www.google.com/maps/contrib/107541294220744899409?hl=en",
"author_name": "Klaus Nielsen",
"review_form": [],
"review_text": "Keine Hilfe im Notfall",
"review_likes": 0,
"author_review_count": 24,
"owner_response_text": "Sehr geehrter Herr Nielsen, vielen Dank f\u00fcr Ihre Bewertung...",
"author_profile_photo": "https://lh3.googleusercontent.com/a/ACg8ocLH6cNUBQCi5-example.jpg",
"author_local_guide_level": 5,
"owner_response_timestamp": 1723707600000
}
}
}
]
Try It Live
Test this endpoint in our interactive playground with real data.
Open in Playground