HasData icon

HasData

Scrape data from various websites

Google Map → Get Google Maps Search Results

AI-generated

Summary

Fetch Google Maps search results based on supplied query parameters

Inputs

  • q — Search query term or phrase.
  • additionalFields — Add Field (collection of extra fields to include in results).
  • dataId — Google Maps data ID. Either dataId or placeId should be set.
  • placeId — Unique reference to a place on Google Maps. Either dataId or placeId should be set.
  • num — Number of results per page, ranging from 10 to 200.
  • nextPageToken — Defines the next page token for pagination.
  • start — Result offset for pagination; skip this many rows.
  • ll — GPS coordinates in @lat,lon,zoom format; required if start is used.
  • hl — Two‑letter language code for the search results.
  • gl — Two‑letter country code to limit results.
  • domain — Google domain to use for the request.
  • categoryId — Filters photos by category.
  • sortBy — Sorting parameter for reviews.
  • topicId — ID of the topic to filter reviews.

Output shape

a list of Google Places search result objects

Results may be paginated; optional fields such as nextPageToken, start, and ll can be supplied. The response shape is stable but may include additional metadata depending on the selected operation.

Examples

Example 1: Search for coffee shops near a specific location

Set q to 'coffee shops' and ll to '@40.7455096,-74.0083012,14z'; optional hl='en' and domain='google.com'.

Example 2: Retrieve photo references for a known place

Set placeId to 'ChIJN1t_tDeuEmsRU4yG83frKpg' and operation to 'photos'; optionally provide nextPageToken.

Example 3: Get reviews sorted by newest first for a topic

Set topicId to '12345' and sortBy to 'newestFirst' while using the 'reviews' operation.

Links

Discussion