curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"country":"US","keyword":"coffee shop","lat":40.7484,"long":-73.9857,"zoom_level":14}],"limit_per_input":10}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_m8ebnr0q2qlklc02fz¬ify=false&include_errors=true&type=discover_new&discover_by=location"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_m8ebnr0q2qlklc02fz",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "location",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"country": "US",
"keyword": "coffee shop",
"lat": 40.7484,
"long": -73.9857,
"zoom_level": 14
}
],
"limit_per_input": 10
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_m8ebnr0q2qlklc02fz",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "location",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
country: "US",
keyword: "coffee shop",
lat: 40.7484,
long: -73.9857,
zoom_level: 14
}
],
limit_per_input: 10
}),
});
console.log(await response.text());
[
{
"place_id": "ChIJfeDf76ZHBogREkfLFNY4_o4",
"url": "https://www.google.com/maps/place/?q=place_id%3AChIJfeDf76ZHBogREkfLFNY4_o4&hl=en",
"country": "United States",
"name": "Zachary Lind, DPM",
"category": "Podiatrist",
"address": "900 Ridge St, Stoughton, WI 53589, United States",
"open_hours": {
"Monday": "8 AM–4:30 PM",
"Saturday": "Closed",
"Sunday": "Closed"
},
"reviews_count": 28,
"rating": 4.8,
"lat": 42.9205099,
"lon": -89.2108692,
"open_website": "https://stoughtonhealth.com/health-services/podiatry-clinic/",
"phone_number": "+1 608-501-6205",
"permanently_closed": false,
"temporarily_closed": false,
"is_claimed": true,
"review_distribution": {
"1_star_reviews": 1,
"2_star_reviews": 0,
"3_star_reviews": 0,
"4_star_reviews": 2,
"5_star_reviews": 25
},
"all_categories": [
"Podiatrist",
"Medical clinic"
],
"country_code": "US",
"cid": "10303735489593296658",
"fid_location": "0x880647a6efdfe07d:0x8efe38d614cb4712"
}
]
Google
Discover Google Maps places by location
Use the Bright Data Scraper API to discover Google Maps places by geographic location. POST /datasets/v3/scrape returns place records as JSON.
POST
/
datasets
/
v3
/
scrape
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"country":"US","keyword":"coffee shop","lat":40.7484,"long":-73.9857,"zoom_level":14}],"limit_per_input":10}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_m8ebnr0q2qlklc02fz¬ify=false&include_errors=true&type=discover_new&discover_by=location"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_m8ebnr0q2qlklc02fz",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "location",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"country": "US",
"keyword": "coffee shop",
"lat": 40.7484,
"long": -73.9857,
"zoom_level": 14
}
],
"limit_per_input": 10
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_m8ebnr0q2qlklc02fz",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "location",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
country: "US",
keyword: "coffee shop",
lat: 40.7484,
long: -73.9857,
zoom_level: 14
}
],
limit_per_input: 10
}),
});
console.log(await response.text());
[
{
"place_id": "ChIJfeDf76ZHBogREkfLFNY4_o4",
"url": "https://www.google.com/maps/place/?q=place_id%3AChIJfeDf76ZHBogREkfLFNY4_o4&hl=en",
"country": "United States",
"name": "Zachary Lind, DPM",
"category": "Podiatrist",
"address": "900 Ridge St, Stoughton, WI 53589, United States",
"open_hours": {
"Monday": "8 AM–4:30 PM",
"Saturday": "Closed",
"Sunday": "Closed"
},
"reviews_count": 28,
"rating": 4.8,
"lat": 42.9205099,
"lon": -89.2108692,
"open_website": "https://stoughtonhealth.com/health-services/podiatry-clinic/",
"phone_number": "+1 608-501-6205",
"permanently_closed": false,
"temporarily_closed": false,
"is_claimed": true,
"review_distribution": {
"1_star_reviews": 1,
"2_star_reviews": 0,
"3_star_reviews": 0,
"4_star_reviews": 2,
"5_star_reviews": 25
},
"all_categories": [
"Podiatrist",
"Medical clinic"
],
"country_code": "US",
"cid": "10303735489593296658",
"fid_location": "0x880647a6efdfe07d:0x8efe38d614cb4712"
}
]
Query Parameters
string
default:"gd_m8ebnr0q2qlklc02fz"
required
The dataset ID used for this request.
Must be set to
gd_m8ebnr0q2qlklc02fz to discover Google Maps places by location.string
default:"discover_new"
required
Must be set to
discover_new.string
default:"location"
required
Must be set to
location.boolean
default:false
Whether to send notifications when the request is completed.
boolean
default:true
Whether to include errors in the response.
Request Body
object[]
required
An array of input objects.
Show properties
Show properties
string
required
Two-letter ISO 3166-1 country code, upper case, such as
US, GB or DE.string
required
What to search for: a location, a zip code or a category, such as
coffee shop or pharmacy.number
Latitude of the point to search around.
number
Longitude of the point to search around. The input is
long; the record field is lon.number
Google Maps zoom level to search at, such as
14.Example
{
"input": [
{
"country": "US",
"keyword": "coffee shop",
"lat": 40.7484,
"long": -73.9857,
"zoom_level": 14
}
]
}
Only
country and keyword are required. Leave out lat, long and zoom_level to let the keyword name the place, such as coffee shop new york. Discovery returns at most 200 businesses per location; set limit_per_input to cap the run, and the bill.curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"country":"US","keyword":"coffee shop","lat":40.7484,"long":-73.9857,"zoom_level":14}],"limit_per_input":10}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_m8ebnr0q2qlklc02fz¬ify=false&include_errors=true&type=discover_new&discover_by=location"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_m8ebnr0q2qlklc02fz",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "location",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"country": "US",
"keyword": "coffee shop",
"lat": 40.7484,
"long": -73.9857,
"zoom_level": 14
}
],
"limit_per_input": 10
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_m8ebnr0q2qlklc02fz",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "location",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
country: "US",
keyword: "coffee shop",
lat: 40.7484,
long: -73.9857,
zoom_level: 14
}
],
limit_per_input: 10
}),
});
console.log(await response.text());
[
{
"place_id": "ChIJfeDf76ZHBogREkfLFNY4_o4",
"url": "https://www.google.com/maps/place/?q=place_id%3AChIJfeDf76ZHBogREkfLFNY4_o4&hl=en",
"country": "United States",
"name": "Zachary Lind, DPM",
"category": "Podiatrist",
"address": "900 Ridge St, Stoughton, WI 53589, United States",
"open_hours": {
"Monday": "8 AM–4:30 PM",
"Saturday": "Closed",
"Sunday": "Closed"
},
"reviews_count": 28,
"rating": 4.8,
"lat": 42.9205099,
"lon": -89.2108692,
"open_website": "https://stoughtonhealth.com/health-services/podiatry-clinic/",
"phone_number": "+1 608-501-6205",
"permanently_closed": false,
"temporarily_closed": false,
"is_claimed": true,
"review_distribution": {
"1_star_reviews": 1,
"2_star_reviews": 0,
"3_star_reviews": 0,
"4_star_reviews": 2,
"5_star_reviews": 25
},
"all_categories": [
"Podiatrist",
"Medical clinic"
],
"country_code": "US",
"cid": "10303735489593296658",
"fid_location": "0x880647a6efdfe07d:0x8efe38d614cb4712"
}
]
Was this page helpful?