Google Maps place photos on your own Google API key
get_place_photosFetch up to 10 photos for Google Maps places from place IDs, Maps URLs, or a business name and city, returning fresh image URLs, dimensions, rank, author attribution, and place details.
Instructions
Give Google Maps places (place IDs, Google Maps URLs, or a business name and city) and your own Google Maps Platform API key with Places API (New) enabled. Returns one row per photo, up to 10 per place: a fresh short lived image URL at the width you choose, the original width and height, the photo's rank, and the author's name and profile link for attribution, plus the place's name, address, and Google Maps link. Pay per event on Apify: 0.0015 USD per photo row; Google bills your key for its own calls.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_place_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| places | No | One place per line: a Google place ID (ChIJ...), a Google Maps URL, or a business name with its city, for example Blue Bottle Coffee, Broadway, Oakland. A name or URL is looked up with Google's text search and the first match is used. Repeats are read once. In Clay, put the column inside a one item list. | |
| api_key | No | Your own Google API key with Places API (New) enabled and billing turned on for its project. Make one in Google Cloud Console: APIs and Services, Credentials, Create credentials, API key, then enable Places API (New). Google bills your project for each place lookup and each photo URL under its own Maps Platform pricing. The key is stored encrypted by Apify, sent only to places.googleapis.com, and | |
| language | No | Optional. Language for place names and addresses, for example en, de, or pt-BR. Default: Google's choice for the place. | |
| max_places | No | Read at most this many places per run, after repeats are removed. Default 50, up to 1,000. | |
| max_width_px | No | Width of the image URL Google returns, 1 to 4800 pixels. Default 1600. A photo smaller than this comes back at its own size. | |
| max_charge_usd | No | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. | |
| resolve_photo_urls | No | yes (default) or no. With yes, each photo gets one extra Google call for a fresh image URL. With no, rows carry the photo name, size, and author only, and Google bills only the place lookups. | |
| max_photos_per_place | No | At most this many photos per place, 1 to 10. Default 10. Google returns at most 10 photos per place. |