Core APIs
...
Google
Google Places & Maps
Details
4min
google place details parameters get get /search?search type=place details the google place details parameters are applicable when making a request with search type=place details to retrieve place details 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/valueserp/search api/searches/google/places if the data id is not available you may also request a place details request using a data cid (a standardised google place identifier you may already have access to) data cid vs data id when working with our api, it’s important to note that the parameter you use will determine the type of data returned here's a quick overview requests with data cid utilize google maps data as the primary source e g requests will not yield profiles data in the response requests with data id access data through google places (powered by the knowledge graph parser) these requests include profiles data when available in summary, the choice between data cid and data id depends on your data requirements for example, to request place detail results for a place with data id=0x87b7122bd8e99a89 0xf20c18461109b2c0 , the request would be http https //api valueserp com/search?api key=demo\&search type=place details\&data id=0x87b7122bd8e99a89 0xf20c18461109b2c0curl l get https //api valueserp com/search \\ d api key="demo" \\ d search type="place details" \\ d data id="0x87b7122bd8e99a89 0xf20c18461109b2c0"const axios = require('axios'); // set up the request parameters const params = { api key "demo", search type "place details", data id "0x87b7122bd8e99a89 0xf20c18461109b2c0" } // make the http get request axios get('https //api valueserp 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 details', 'data id' '0x87b7122bd8e99a89 0xf20c18461109b2c0' } \# make the http get request api result = requests get('https //api valueserp 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 details', 'data id' => '0x87b7122bd8e99a89 0xf20c18461109b2c0' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api valueserp 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 details parameters the following parameters are available for all requests made when search type=place details parameter required description search type required should be set to search type=place details data id required the data id of the place to retrieve place details for data id values are returned in places requests https //docs trajectdata com/scaleserp/search api/searches/google/places access data through google places data returned will differ from data cid note that either a data id or data cid identifier must be supplied data cid required the data cid (a standard google place identifier) of the place to retrieve place details for data cid values are returned in places requests https //docs trajectdata com/scaleserp/search api/searches/google/places access data through google maps data returned will differ from data jd note that either a data id or data cid identifier must be supplied 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/valueserp/search api/reference/google languages defaults to en next steps google place details results https //docs trajectdata com/valueserp/search api/results/google/place details