HasData icon

HasData

Scrape data from various websites

Google Map → Get Place Photos

AI-generated

Summary

Fetch place photos from Google Maps.

Inputs

  • additionalFields — Add Field
  • dataId — Google Maps data ID. Either dataId or placeId should be set.
  • placeId — Unique reference to a place on a Google Map. Either dataId or placeId should be set.
  • dataId — Google Maps data ID.
  • num — Number of results per page, ranging from 10 to 200.
  • nextPageToken — Defines the next page token. It is used for retrieving the next page results.
  • nextPageToken — Token for fetching the next page of photos.
  • start — Specifies the result offset for pagination purposes. The offset dictates the number of rows to skip from the beginning of the results. This is useful for accessing subsequent pages of search results. For example, an offset of 0 (the default value) returns the first page of results, 20 returns the second page, 40 returns the third page, and so on. This parameter is especially relevant when used in conjunction with the 'll' parameter for location-based searches.
  • ll — GPS coordinates of the location where the search query is to be performed. This parameter is required if the 'start' parameter is present. The format for the ll parameter is @ followed by latitude, longitude, and zoom level, separated by commas. The latitude and longitude should be in decimal degrees, and the zoom level is an integer. Example: @40.7455096,-74.0083012,14z.
  • hl — The two-letter language code for the language you want to use for the search.
  • gl — The two-letter country code for the country you want to limit the search to.
  • domain — Google domain to use.
  • categoryId — Filters photos by category.
  • sortBy — Parameter used for sorting and refining results.
  • topicId — Defines the ID of the topic you want to use for filtering reviews.

Output shape

array of photo objects

Pagination via nextPageToken; optional fields; may return empty array.

Examples

Example 1: Retrieve photos for a specific place

{"placeId":"ChIJN1t_tDeuEmsRU5y1a0W4X_K","hl":"en"}

Links

Discussion