{ "opencollection": "1.0.0", "info": { "name": "Google Maps Directions Autocomplete Photos API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "key", "value": "{{key}}", "placement": "query" } }, "items": [ { "info": { "name": "Photos", "type": "folder" }, "items": [ { "info": { "name": "Get a Place Photo", "type": "http" }, "http": { "method": "GET", "url": "https://maps.googleapis.com/maps/api/places/:placeId/photos/:photoReference/media", "params": [ { "name": "placeId", "value": "500123", "type": "path", "description": "The place ID" }, { "name": "photoReference", "value": "example_value", "type": "path", "description": "The photo resource reference" }, { "name": "maxHeightPx", "value": "10", "type": "query", "description": "Maximum height of the image in pixels. Must be between 1 and 4800. If maxHeightPx is set without maxWidthPx, the image is resized to the specified height, preserving aspect ratio." }, { "name": "maxWidthPx", "value": "10", "type": "query", "description": "Maximum width of the image in pixels. Must be between 1 and 4800. If maxWidthPx is set without maxHeightPx, the image is resized to the specified width, preserving aspect ratio." }, { "name": "skipHttpRedirect", "value": "true", "type": "query", "description": "If set to true, skip the default HTTP redirect behavior and return a JSON response containing the photo URI." } ] }, "docs": "Returns a photo for a place. After you get the photo resource name from a Place Details or Search response, use this endpoint to get the photo bytes. Specify maxHeightPx or maxWidthPx (or both) to control the image dimensions." } ] } ], "bundled": true }