google-maps/search
read-only
Places matching a Google Maps search, with rating, category, address, price level and open status. Opens https://www.google.com/maps itself.
await page.runPlugin("google-maps/search", { query: "<query>" })
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
queryrequired | stringmin length 1 | What to search, e.g. "ramen" or "coffee near Union Square, San Francisco". | |
near | stringmin length 1 | Area to search around, e.g. "Shibuya, Tokyo" (appended as "near …"). | |
limit | integer1–120 | 20 | Maximum number of places. |
includeSponsored | boolean | false | Keep sponsored (ad) results, marked sponsored: true. |
Returns
{
query: string,
places: {
name: string,
placeId?: string | null,
cid?: string | null,
rating: number | null,
reviews: integer | null,
category: string | null,
address: string | null,
priceLevel?: string | null,
openStatus: string | null,
sponsored?: boolean,
url: string,
lat?: number | null,
lng?: number | null
}[]
}
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
| Name | Type | Default | Description |
|---|---|---|---|
url | stringmin length 1 | Google Maps place URL (www.google.com/maps/place/…, maps.app.goo.gl/…, or a search result url). | |
query | stringmin 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
| Name | Type | Default | Description |
|---|---|---|---|
url | stringmin length 1 | Google Maps place URL (www.google.com/maps/place/…, maps.app.goo.gl/…, or a search result url). | |
query | stringmin 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. |
limit | integer1–200 | 20 | Maximum 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
}
}[]
}