← All plugins

Google Maps

Search places, read place details (address, phone, hours) and reviews on Google Maps using the browser session.

google-maps v1.0.0 3 commands

google-maps/place

read-only

Details of one place by URL or search query: rating, category, address, phone, website, weekly hours, price level, coordinates.

await page.runPlugin("google-maps/place")

Arguments

NameTypeDefaultDescription
urlstring
min length 1
Google Maps place URL (www.google.com/maps/place/…, maps.app.goo.gl/…, or a search result url).
querystring
min length 1
Search text; the first result is used, e.g. "Sightglass Coffee 7th St San Francisco".

Returns

{
  name: string,
  placeId?: string | null,
  cid?: string | null,
  rating: number | null,
  reviews: integer | null,
  category: string | null,
  address: string | null,
  phone: string | null,
  website: string | null,
  plusCode?: string | null,
  priceLevel?: string | null,
  openStatus?: string | null,
  hours: {
    day: string,
    hours: string
  }[],
  url: string,
  lat?: number | null,
  lng?: number | null
}

google-maps/reviews

read-only

Reviews of one place by URL or search query, with full texts and owner responses.

await page.runPlugin("google-maps/reviews")

Arguments

NameTypeDefaultDescription
urlstring
min length 1
Google Maps place URL (www.google.com/maps/place/…, maps.app.goo.gl/…, or a search result url).
querystring
min length 1
Search text; the first result is used, e.g. "Sightglass Coffee 7th St San Francisco".
sort"relevant" | "newest" | "highest" | "lowest""relevant"Review order.
limitinteger
1–200
20Maximum number of reviews.

Returns

{
  place: {
    name: string,
    rating?: number | null,
    reviews?: integer | null,
    url: string
  },
  sort: "relevant" | "newest" | "highest" | "lowest",
  reviews: {
    id: string,
    author: string,
    authorUrl?: string | null,
    rating: number,
    ratingMax: integer,
    published: string,
    source: string,
    text: string,
    details?: string[],
    truncated?: boolean,
    ownerResponse?: null | {
      published?: string | null,
      text: string
    }
  }[]
}