The Google Maps Photos API returns photos for a place on Google Maps. Use either dataId or placeId with optional language, category, and pagination.

Get Your API Key

Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in the x-api-key header.

Make Your First Request

curl --request GET \
  --url 'https://api.hasdata.com/scrape/google-maps/photos?dataId=0x80cc0654bd27e08d%3A0xb1c2554442d42e8d' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <your-api-key>'

API Parameters

ParameterDefault ValueRequiredDescription
dataId0x80cc0654bd27e08d:0xb1c2554442d42e8dNoGoogle Maps data ID. Either dataId or placeId should be set.
placeId-NoUnique reference to a place on Google Maps. Either dataId or placeId should be set.
hl-NoThe two-letter language code for the language you want to use for the search.
categoryId-NoFilters photos by category.
nextPageToken-NoToken for fetching the next page of photos.