Google Local API
Using Google Local API you can scrape Google Local results without worrying about proxy rotation and data parsing. Our API is fast and reliable. Each successful request will cost you 5 API credits.
You have to send a GET request to http://api.scrapingdog.com/google_local
with the below-given parameters.
api_key
required
Your personal API key. Available on your dashboard
Type: String
query
required
This is a Google Search Query.
Example1 - query=coffee+in+manhattan
location
The location from where you want to scrape the local results. For ex - Manhattan, New York
Type - String
uule
It is a parameter that specifies the geographic location or locale for which the search results should be tailored. Possible Value could be w+CAIQIFJlbGF5IFN0YXRlcw==
Type - String Note: location and uule parameter can't be used together.
country
This is the ISO code of the country from which you are seeking Google search results.
Default Value - us
Type - String
language
Language of the results. Possible Values - en
, es
, fr
, de
, etc.
Default Value - en
Type - String
domain
Type: String
Default: "google.com"
To obtain local results from a specific country, for example, for India, it will be "google.co.in," and for the UK, it will be "google.co.uk".
ludocid
The parameter specifies the Google My Business listing ID (CID) you want to scrape, also known as the Google Place ID. You can obtain the ludocid
using Google's CID converter or the data_cid
from Google Maps API.
tbs
to be searched - An advanced parameter to filter search results.
Type: String
page
This is the page number of Google searches. Its value can be 0 for the first page, 1 for the second page, and so on.
Default Value - 0
Type - String
API Example
curl "https://api.scrapingdog.com/google_local?api_key=5eaa61a6e562fc52fe763tr516e4653&query=coffee+in+manhattan"
import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/google_local/"
params = {
"api_key": api_key,
"query": "coffee+in+manhattan",
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
const axios = require('axios');
const api_key = '5eaa61a6e562fc52fe763tr516e4653';
const url = 'https://api.scrapingdog.com/google_local/';
const params = {
api_key: api_key,
query: 'coffee+in+manhattan'
};
axios
.get(url, { params: params })
.then(function (response) {
if (response.status === 200) {
const data = response.data;
console.log(data)
} else {
console.log('Request failed with status code: ' + response.status);
}
})
.catch(function (error) {
console.error('Error making the request: ' + error.message);
});
<?php
// Set the API key and request parameters
$api_key = '5eaa61a6e562fc52fe763tr516e4653';
$query = 'coffee+in+manhattan';
// Set the API endpoint
$url = 'https://api.scrapingdog.com/google_local/?api_key=' . $api_key . '&query=' . $query;
// Initialize cURL session
$ch = curl_init($url);
// Set cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute the cURL request
$response = curl_exec($ch);
// Check if the request was successful
if ($response === false) {
echo 'cURL error: ' . curl_error($ch);
} else {
// Process the response data as needed
echo $response;
}
// Close the cURL session
curl_close($ch);
require 'net/http'
require 'uri'
# Set the API key and request parameters
api_key = '5eaa61a6e562fc52fe763tr516e4653'
query = 'coffee+in+manhattan'
# Construct the API endpoint URL
url = URI.parse("https://api.scrapingdog.com/google_local/?api_key=#{api_key}&query=#{query}")
# Create an HTTP GET request
request = Net::HTTP::Get.new(url)
# Create an HTTP client
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true # Enable SSL (https)
# Send the request and get the response
response = http.request(request)
# Check if the request was successful
if response.is_a?(Net::HTTPSuccess)
puts response.body # Process the response data as needed
else
puts "HTTP request failed with code: #{response.code}, message: #{response.message}"
end
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
try {
// Set the API key and request parameters
String apiKey = "5eaa61a6e562fc52fe763tr516e4653";
String query = "coffee+in+manhattan";
// Construct the API endpoint URL
String apiUrl = "https://api.scrapingdog.com/google_local/?api_key=" + apiKey
+ "&query=" + query
// Create a URL object from the API URL string
URL url = new URL(apiUrl);
// Open a connection to the URL
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
// Set the request method to GET
connection.setRequestMethod("GET");
// Get the response code
int responseCode = connection.getResponseCode();
if (responseCode == 200) {
// Read the response from the connection
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = reader.readLine()) != null) {
response.append(inputLine);
}
reader.close();
// Process the response data as needed
System.out.println(response.toString());
} else {
System.out.println("HTTP request failed with response code: " + responseCode);
}
// Close the connection
connection.disconnect();
} catch (IOException e) {
e.printStackTrace();
}
}
}
API Response
{
"local_results": [
{
"title": "Bird & Branch Coffee Roasters",
"rating": "4.7",
"reviews": "762",
"price": "$1–10",
"description": "Family-run specialty coffee shop",
"address": "359 W 45th St",
"type": " Coffee shop",
"thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAASUkqAAgAAAABADEBAgAHAAAAGgAAAAAAAABHb29nbGUAAP/bAIQAAwICCAoNCAkNCw8LCggLDgoKDQ4LCw0NCw0NDw0LDQoKDQ4ICAgLDQsLCAoKCwoLCgsKDw4KCw4NCgsPCQoLCgEDBAQGBQYKBgYKEA4LDg8NDQ4PEBAPDw8QDxAPDg8NDQ8PEA0PDQ8PDw0NDxAPDxANEA0PDw0ODRAPDw8QEA8P/8AAEQgAWgBaAwERAAIRAQMRAf/EAB0AAAICAwADAAAAAAAAAAAAAAYHBQgDBAkAAQL/xAA7EAACAQIEBAMHAgMHBQAAAAABAgMEEQAFEiEGEyIxBwhBFCMyUWFxkUKBCVKhFSRDscHR8BczZHKC/8QAGwEAAQUBAQAAAAAAAAAAAAAAAgEDBAUGAAf/xAA3EQABAwIDBgQFAwIHAAAAAAABAAIRAyEEMUEFElFhcYGRodHwBhMiMsGx4fFCkhQVFiMzUmL/2gAMAwEAAhEDEQA/ALq5tnBcgTwSQ0g3YuI3WVt9p+VLUCGFQocmXSjkhZGQI0c8GeKlxwWXJ8kRyzxSyLSm4VFl6JDsDJESGmijXTojWCWKJru4QqY3cUkqfpsljTdbgm121MzNbtrLFy9rkAvqIubEY5LK0+GaUBWPd3kcyse7yBihb6KBGFjX9Maoo2UYFcV5mXFUEexcah6Dcj7/AC/fFbido4fDmKjxPAXPgLqTTw1SpdotxQbw9xjDTJyixZRJI0dwo0I8jOkWxK2hVxEp2OhFvuCTSO+I8NTMEO8vVThs2q64jzU3/wBRo2V+XYya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R8OIV4KvCLlbLOT1S/dv9cZup/wAZ6FaCl97eoSe4SQNUxIRqX2nTY7jSUS62O1jfcdjhcqcjPcB7yb9VLZeoAf8AsR2gWTa81Fe8dC7IxQgqLqSptftcEHDOymh1cBwlO7Ye5mGeWkg8rKu/gfmEjCdSzMqEaQWJC7egJsP2xp8U0ACAsfhyTMoqq/ik+4/yXDAT5zURWYcCAoPzMdT/AFG/4b/YfgYjuz7+ilN+0dPVQNWtiv1v/p/ufziRTyUeot+A4eTKz4Erl8nCrl82wiFf/9k",
"place_id": "197653116721562462",
"place_id_search": "https://api.scrapingdog.com/google_local?api_key=67447bf02cb60bc491d62040&ludocid=197653116721562462",
"gps_coordinates": {
"lat": "40.7602998",
"lng": "-73.9907758"
}
},
...
]
}
Last updated