curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"CID":"2476046430038551731"}],"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=cid"
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": "cid",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"CID": "2476046430038551731"
}
],
"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: "cid",
});
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: [
{
CID: "2476046430038551731"
}
],
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
按 CID 发现 Google 地图地点
使用 Bright Data Scraper API 按 CID 发现 Google 地图地点。POST /datasets/v3/scrape 以 JSON 格式返回结构化地点记录。
POST
/
datasets
/
v3
/
scrape
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"CID":"2476046430038551731"}],"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=cid"
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": "cid",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"CID": "2476046430038551731"
}
],
"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: "cid",
});
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: [
{
CID: "2476046430038551731"
}
],
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"
}
]
查询参数
用于此请求的数据集 ID。
必须设置为
gd_m8ebnr0q2qlklc02fz 以发现按 CID 的 Google 地图地点数据。请求体
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"CID":"2476046430038551731"}],"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=cid"
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": "cid",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"CID": "2476046430038551731"
}
],
"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: "cid",
});
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: [
{
CID: "2476046430038551731"
}
],
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"
}
]
此页面对您有帮助吗?