Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@brightdata/google-maps-scraper

Latest version: v0.1.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: brd-artems, brd-cholpon, brd-josh, brd-vadim, brightdata.com, maksimd
1 Versions

Scan summary

@brightdata/google-maps-scraper was last scanned on 29 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Google Maps scraper for Node.js and JavaScript

Live check last verified

Quickstart · No API key · CLI · Endpoints · Data · Errors · MCP and Claude Code · Free credits · Docs · Support

Google Maps places and their reviews as JSON, in JavaScript: search by keyword, or look a place up by URL, CID or place ID. No Google API key, no browser, no dependencies. Built on the Bright Data Google Maps Scraper API.

Also here: a one-command CLI for a keyword search, and the Bright Data CLI, which needs no JavaScript at all.

How to scrape Google Maps data with Node.js

Node 20 or newer, and nothing to install: this is the built-in fetch. Save it as a .mjs file, since it uses top-level await.

export BRIGHTDATA_API_TOKEN=YOUR_API_KEY

Get a token from the Bright Data control panel. No account yet? Create one; new accounts get 5,000 free credits a month.

const API = "https://api.brightdata.com/datasets/v3";
const HEADERS = {
  Authorization: `Bearer ${process.env.BRIGHTDATA_API_TOKEN}`,
  "Content-Type": "application/json",
};

async function call(path, body) {
  const init = body === undefined ? { headers: HEADERS } : { method: "POST", headers: HEADERS, body: JSON.stringify(body) };
  const response = await fetch(API + path, init);
  if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
  return response.json();
}

const query = new URLSearchParams({
  dataset_id: "gd_m8ebnr0q2qlklc02fz",
  type: "discover_new",
  discover_by: "location",
  limit_per_input: "3",
  include_errors: "true",
});
const job = await call(`/trigger?${query}`, [{ country: "US", keyword: "coffee shop new york" }]);
while (!["ready", "failed"].includes((await call(`/progress/${job.snapshot_id}`)).status)) {
  await new Promise((done) => setTimeout(done, 10_000));
}
for (const place of await call(`/snapshot/${job.snapshot_id}?format=json`)) {
  if (place.error) throw new Error(place.error);
  console.log(place.rating, place.reviews_count, place.name);
}
4.6 828 Coffee Project New York
4.6 294 Le Cafe Coffee
4.7 1327 Frisson Espresso

Expect two to five minutes: the API runs a discovery job and the loop waits for it. One credit per place. Without a token the first request fails with HTTP 401.

Three things in that snippet are not optional.

limit_per_input caps the run, and the bill. Without it a keyword returns, and charges for, every place Google Maps lists.

include_errors=true makes the API report a failed search as a row with an error key. The API default is off, and a failed search then looks the same as a search with no results.

country and keyword are the only required inputs. The API reference marks lat, long and zoom_level as required; the live API does not.

The Bright Data JavaScript SDK has no Google Maps scraper. Its client.datasets.googleMaps* is the dataset marketplace, data collected earlier, not a live scrape. Hence the plain HTTP.

Scrape Google Maps without a Google Maps API key

The Google Maps Scraper API needs no Google Maps API key, no Places API key and no Google Cloud project. The only credential is a Bright Data API key, set as BRIGHTDATA_API_TOKEN. This package and its command also find the key stored by bdata login.

Bulk Google Maps scraper CLI

The command in this repo runs the Node.js quickstart search for several keywords at once and writes one JSON file.

npm install -g github:brightdata/google-maps-scraper-node
google-maps-scraper "coffee shop new york" "pizza chicago" --limit 2
Finding up to 2 places per keyword in US, for: coffee shop new york, pizza chicago
Usually three to five minutes each. One credit per place, 5,000 free per month.
asking  "coffee shop new york"...
got     "coffee shop new york": 2 places
asking  "pizza chicago"...
got     "pizza chicago": 2 places

Saved 4 places as JSON to google-maps.json (39 fields per place)

In a terminal the asking lines are replaced by a spinner and a running clock, updating in place, so you can see it is working.

--country CC   two-letter country code, default US
--limit N      places per keyword, default 5, minimum 1
--out PATH     output file, default google-maps.json

The command finds the token in BRIGHTDATA_API_TOKEN, or, if you ran npx -p @brightdata/cli bdata login once, in the stored login, for you and for any coding agent in that terminal. It does not read a .env file; Node loads one for it with node --env-file=.env.

Import it instead of running it, for ok, note and error per keyword instead of raw rows. This package is ESM, so use import, not require. scrape never rejects for one bad keyword; check ok before reading places:

import { scrape } from "@brightdata/google-maps-scraper";

for (const outcome of await scrape(["bakery paris", "zzqqxx flurbnozzle"], { country: "FR", limit: 1 })) {
  if (outcome.ok) {
    console.log(`${outcome.keyword}: ${outcome.places.length} places`);
  } else {
    console.log(`${outcome.keyword} failed: ${outcome.error.slice(0, 60)}`);
  }
}
bakery paris: 1 places
zzqqxx flurbnozzle failed: Crawler error: waiting for selector "[role="feed"], [style="

A keyword that matches nothing does not come back as zero places. It comes back as an error row, error_code wait_element_timeout, and it takes the longest: 500 seconds for that run. When a search returns some places and some error rows, the places are kept, and the errors land in note.

Scrape Google Maps places, business listings and reviews

The Bright Data Google Maps Scraper API has five endpoints, each with its own page in the API reference. This package has one function for each. Every snippet below is complete: paste it as is after the npm install above. Every one of them runs in Actions each Monday, a smaller check runs every other day, and the badge at the top is the latest result.

you have want how
a search, like "coffee shop new york" matching places places("coffee shop new york", { country: "US", limit: 5 })
a search and a point on the map places near it places("pharmacy", { country: "GB", limit: 3, lat: 51.5072, long: -0.1276, zoom_level: 15 })
a Google Maps place URL the place placesByUrl(url)
a CID, the number in maps?cid= the place placesByCid("2476046430038551731")
a place ID, the ChIJ... string the place placesByPlaceId("ChIJS5WVcqWh9YgRHU08rJqLNsQ")
a Google Maps place URL its reviews reviews(url, { limit: 3, days_limit: 30 }), one credit per review

Each takes one value or an array. An array is one job, not one per value. Each resolves to an array of rows, and a row the API could not collect carries an error key instead of the place.

Scrape Google Maps place details by URL
import { placesByUrl } from "@brightdata/google-maps-scraper";

const url = "https://www.google.com/maps/place/Pizza+Inn+Magdeburg/@52.1263086,11.6094743,17z/data=!3m1!4b1!4m6!3m5!1s0x47a5f50c083530a3:0xfdba8746b538141!8m2!3d52.1263086!4d11.6094743!16s%2Fg%2F11kqmtk3dt?hl=en";
const [place] = await placesByUrl(url);
console.log(place.name, place.rating, place.phone_number);
console.log(place.open_hours.Friday, place.lat, place.lon);
Pizza Inn Magdeburg 4.8 +49 391 50963059
5–9:30 PM 52.1263086 11.6094743

Collecting by URL is the fastest call, 33 to 54 seconds. The URL must point at a business. A landmark such as the Empire State Building comes back as an error row: "Got place without category value, which are just location point on google maps and not actually a business."

Scrape a Google Maps place by CID or place ID
import { placesByCid, placesByPlaceId } from "@brightdata/google-maps-scraper";

const [byCid] = await placesByCid("2476046430038551731");
console.log(byCid.name, "|", byCid.address);
const [byId] = await placesByPlaceId("ChIJS5WVcqWh9YgRHU08rJqLNsQ");
console.log(byId.name, "|", byId.cid);
Public Storage | 5903 N Custer Rd, McKinney, TX 75071, United States
The Forum Peachtree Corners | 14138641576607108381

The CID input field is CID, upper case. Pass the CID as a string: it is larger than Number.MAX_SAFE_INTEGER, so a number literal loses digits. Every place record carries both identifiers, cid and place_id.

Scrape Google Maps places near a location
import { places } from "@brightdata/google-maps-scraper";

const nearby = await places("pharmacy", { country: "GB", limit: 3, lat: 51.5072, long: -0.1276, zoom_level: 15 });
for (const place of nearby) {
  console.log(place.rating, place.name, "|", place.address);
}
2 Boots Pharmacy | Ground Floor, Lambeth Wing, St Thomas's Hospital, Westminster Bridge Rd, London SE1 7EH, United Kingdom
1 Medcare Pharmacy | 99 Joan St, London SE1 8DD, United Kingdom
3.9 Mayfair Pharmacy | 33 Curzon St, London W1J 7TR, United Kingdom

The input is long, the output is lon. The keyword can be a location, a zip code or a category. One location returns at most 200 businesses. Leave all three coordinates out and put the place in the keyword instead, as the quickstart does.

Scrape Google Maps reviews for a place
import { reviews } from "@brightdata/google-maps-scraper";

const url = "https://www.google.com/maps/place/?q=place_id:ChIJS5WVcqWh9YgRHU08rJqLNsQ&hl=en";
for (const row of await reviews(url, { limit: 3, days_limit: 30 })) {
  if (row.error) console.log("error:", row.error_code, row.error.slice(0, 60));
  else console.log(row.review_rating, row.review_date, row.review.slice(0, 60));
}
error: wait_element_timeout Crawler error: waiting for selector "[role="menu"] [role="me

That output is real. On 24 Oct 2026 the reviews scraper returned a crawler error for every place tried, nine runs out of nine, including the sample input on its own scraper page. The call and the field names above match the live schema, and the weekly check runs this block, so the badge will show when reviews come back. If you see this error, tell Bright Data support.

reviews takes limit (reviews per place, sent as limit_per_input), days_limit and sort_by. Without a limit it returns, and charges for, every review the place has.

sort_by is one of "Most relevant", "Newest", "Highest rating" or "Lowest rating". days_limit keeps reviews from the last N days, and when it is set, sort_by is ignored and the order is newest first.

Trigger now, fetch later

For anything bigger than a few searches, do not hold a process for an hour. Trigger, keep the snapshot id, fetch when ready. Snapshots stay downloadable for 30 days.

import { PLACES, fetchSnapshot, status, trigger } from "@brightdata/google-maps-scraper";

const snapshot = await trigger(PLACES, [{ CID: "2476046430038551731" }], { discoverBy: "cid" });
console.log("snapshot:", snapshot);
let state;
while (!["ready", "failed"].includes((state = await status(snapshot)))) {
  await new Promise((done) => setTimeout(done, 10_000));
}
console.log("status:", state);
console.log("fetched:", (await fetchSnapshot(snapshot))[0].name);
snapshot: sd_mvm100n32bs9neo3qv
status: ready
fetched: Public Storage

trigger takes any dataset, discoverBy and limitPerInput, so it reaches every endpoint in the table. Each input was accepted by the live API on 2026-10-24, and several differ from the API reference pages:

endpoint dataset_id discover_by input
Place by URL gd_m8ebnr0q2qlklc02fz none {url}
Places by search gd_m8ebnr0q2qlklc02fz location {country, keyword} required, {lat, long, zoom_level} optional
Place by CID gd_m8ebnr0q2qlklc02fz cid {CID}, upper case
Place by place ID gd_m8ebnr0q2qlklc02fz place_id {place_id}
Reviews gd_luzfs1dn2oa0teb81 none {url}, optional {days_limit, sort_by}

bdata pipelines info <dataset_id> <method> prints the input fields the API validates, which is how the table above was checked.

Google Maps place data fields (JSON)

The fields most people want:

name  category  address  rating  reviews_count  phone_number  open_website  lat  lon  open_hours  place_id  cid

The names differ from the API reference pages: lat and lon, not latitude and longitude; phone_number, not phone; open_website, not website. Reviews use review_rating, review and number_of_likes. open_hours is keyed by day name, and review_distribution counts reviews per star. The code hardcodes no field list. Whatever the API returns lands in the rows, and in the command's file.

Regenerated every week from the dataset schema, via client.datasets.googleMapsFullInfo.getMetadata() in the JavaScript SDK, so it cannot go stale. A place carries the fields that apply to it, plus timestamp, input and discovery_input; the sample file's first place has 39 keys.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @brightdata/google-maps-scraper

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229