Skip to main content
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.

Request Cost and API Credits

Each request to the Google Maps Photos API consumes API Credits from your account balance.
  • Cost per request: 5 API Credits
  • Credits are deducted only for successful requests.
  • Your total available credits depend on your active plan.
You can use your credits across all HasData APIs. The same credit balance is shared platform-wide.
Unused credits do not roll over. Any remaining credits expire at the end of the current billing period.
To monitor your credit usage and remaining balance, sign in to your account dashboard at app.hasdata.com.

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.