Core APIs
...
Google Places & Maps
Search
7 min
google places parameters get get /search?engine=google\&search type=places serpwow parses google local & maps results (i e local business listings) when the search type parameter is set to search type=places when this parameter is set serpwow provides a places results array in the result json that contains the https //docs trajectdata com/serpwow/search api/results/google/places google local vs google maps search type=places requests can be executed in two modes to retrieve data from a https //www google com/search?q=pizza\&gl=us\&hl=en\&uule=w+caiqicigtwfuagf0dgfule5ldybzb3jrlfvuaxrlzcbtdgf0zxm\&tbm=lcl or from a https //www google com/maps/search/pizza/@43 437677, 3 8392765,15z you set the location of the search type=places request using the location request parameter and this can be expressed as either a text location name from the https //docs trajectdata com/serpwow/locations api/overview (which will result in a https //www google com/search?q=pizza\&gl=us\&hl=en\&uule=w+caiqicigtwfuagf0dgfule5ldybzb3jrlfvuaxrlzcbtdgf0zxm\&tbm=lcl ), or as a latitude, longitude and zoom level (which will result in a https //www google com/maps/search/pizza/@43 437677, 3 8392765,15z ) google local parameters if the location parameter is set to a location name from the https //docs trajectdata com/serpwow/locations api/overview (or any other free form location name text) for example manhattan,new+york,united+states then results will be returned from a https //www google com/search?q=pizza\&gl=us\&hl=en\&uule=w+caiqicigtwfuagf0dgfule5ldybzb3jrlfvuaxrlzcbtdgf0zxm\&tbm=lcl page http https //api serpwow\ com/live/search?api key=demo\&search type=places\&q=pizza\&location=united+statescurl l get https //api serpwow\ com/live/search \\ d api key="demo" \\ d q="pizza" \\ d search type="places" \\ d location="united+states"const axios = require('axios'); // set up the request parameters const params = { api key "demo", q "pizza", search type "places", location "united+states" } // make the http get request axios get('https //api serpwow\ com/live"/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', 'q' 'pizza', 'search type' 'places', 'location' 'united+states' } \# make the http get request api result = requests get('https //api serpwow\ com/live/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', 'q' => 'pizza', 'search type' => 'places', 'location' => 'united+states' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/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; ?> results are returned from a https //www google com/search?q=pizza\&gl=us\&hl=en\&uule=w+caiqicigtwfuagf0dgfule5ldybzb3jrlfvuaxrlzcbtdgf0zxm\&tbm=lcl page as shown below the following parameters are available for google local requests i e requests made when search type=places and the location value is provided as a full name location name from the https //docs trajectdata com/serpwow/locations api/overview (or any other free form location name text) true 220,220,221left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type google maps parameters if the location parameter is set to a latitude, longitude and zoom value for example location=lat 43 437677,lon 3 8392765,zoom 15 then results will be returned from a https //www google com/maps/search/pizza/@43 437677, 3 8392765,15z page http https //api serpwow\ com/live/search?api key=demo\&search type=places\&q=pizza\&location=location=lat 43 437677,lon 3 8392765,zoom 15curl l get https //api serpwow\ com/live/search \\ d api key="demo" \\ d q="pizza" \\ d search type="places" \\ d location="location=lat 43 437677,lon 3 8392765,zoom 15"const axios = require('axios'); // set up the request parameters const params = { api key "demo", q "pizza", type "places", location "location=lat 43 437677,lon 3 8392765,zoom 15" } // make the http get request axios get('https //api serpwow\ com/live"/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', 'q' 'pizza', 'search type' 'places', 'location' 'location=lat 43 437677,lon 3 8392765,zoom 15' } \# make the http get request api result = requests get('https //api serpwow\ com/live/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', 'q' => 'pizza', 'search type' => 'places', 'location' => 'location=lat 43 437677,lon 3 8392765,zoom 15' ]); \# make the http get request $ch = curl init(sprintf('%s?%s', 'https //api serpwow\ com/live/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; ?> formatting the location parameter for google maps requests to get google maps results based on latitude and longitude coordinates you should specify your location parameter in the form location=lat 43 437677,lon 3 8392765,zoom 15 where 43 437677 is your latitude value, 3 8392765 is your longitude value and 15 is your zoom value delimit each section with a comma , , and delimit each name/value pair with a colon valid zoom values are between 3 (maximum zoom out) and 21 (maximum zoom in) google can return results outside the bounds of the zoom level in some instances if this behaviour is not desirable then specifying strict\ true in the location parameter will only return results within the current zoom level eg lat 39 58467741051493,lon 0 6752313712718961,zoom 15,strict\ true results are returned from a https //www google com/maps/search/pizza/@43 437677, 3 8392765,15z page as shown below the following parameters are available for google maps requests i e requests made when search type=places and the location value is provided as a longitude, latitude and zoom level true 220,220,221left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type next steps https //docs trajectdata com/serpwow/search api/results/google/places