Core APIs
...
Google
Google Places & Maps

Photos

4min
google place photos parameters get get /search?search type=place photos the google place photos parameters are applicable when making a request with search type=place photos to retrieve place photos for a place the place is specified in the data id parameter, data id values are returned from search type=places places requests https //docs trajectdata com/scaleserp/search api/searches/google/places place photo category ids if shown, a search type=place photos will return a categories array containing photo categories you can pass a place photos category id in to the optional category id parameter to refine your place photos request to just photos belonging to that category place photos pagination place photo results do not contain a traditional pagination section where a specific page of results is uniquely addressable instead, each search type=place photos result will return a next page token in its' pagination object this next page token can be passed in to the next page token request parameter to retrieve the next page of place photo results for example, to request place photo results for the data id 0x89c259cea3b62d4d 0x4519bf551f37923f , the request would be http https //api scaleserp com/search?api key=demo\&search type=place photos\&data id=0x89c259cea3b62d4d 0x4519bf551f37923fcurl l get https //api scaleserp com/search \\ d api key="demo" \\ d search type="place photos" \\ d data id="0x89c259cea3b62d4d 0x4519bf551f37923f"const axios = require('axios'); // set up the request parameters const params = { api key "demo", search type "place photos", data id "0x89c259cea3b62d4d 0x4519bf551f37923f" } // make the http get request axios get('https //api scaleserp com"/search', { params }) then(response => { // print the json response console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'search type' 'place photos', 'data id' '0x89c259cea3b62d4d 0x4519bf551f37923f' } \# make the http get request api result = requests get('https //api scaleserp com/search', params) \# print the json response print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'search type' => 'place photos', 'data id' => '0x89c259cea3b62d4d 0x4519bf551f37923f' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api scaleserp com/search', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response echo $api result; ?> google place photos parameters the following parameters are available for all requests made when search type=place photos parameter required description search type required should be set to search type=place photos data id required the data id of the place to retrieve place photos for data id values are returned in places requests https //docs trajectdata com/scaleserp/search api/searches/google/places category id optional an optional category id to limit the returned photos to just those belonging to the given category category id values, if shown for the given data id , are returned in the categories array in all search type=place photos results next page token optional place photo results do not contain a traditional pagination section where a specific page of results is uniquely addressable instead, each search type=place photos result will return a next page token in its' pagination object this next page token can be passed in to the next page token request parameter to retrieve the next page of place photo results hl optional the hl parameter determines the google ui language to return results view the full list of supported hl values here https //docs trajectdata com/scaleserp/search api/reference/google languages defaults to en next steps google place photos results https //docs trajectdata com/scaleserp/search api/results/google/place photos