Google Maps
Search Google Maps for local businesses and places — names, addresses, ratings, coordinates, and a data_id you can pass to Place Reviews — as JSON.
POST/api/v2/google/maps/search
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredLocal search query (-> q).
Example: coffee shops in Austin
startnumberResult offset: a multiple of 20 (0, 20, 40 ...).
llstringMap center @lat,lng,zoomz. This — not gl — controls where results come from.
Example: @40.7128,-74.0060,13z
hlstringUI language.
Example: en
glstringGeo location country.
Example: us
google_domainstringRegional Google domain.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.google.maps_search("coffee shops in Austin")
print(results)Response
"engine": "google_maps",
"type": "search",
"q": "coffee shops in Austin",
"google_domain": "google.com",
"hl": "en",
"gl": "us"
},
"local_results_state": "Results for exact spelling",
"query_displayed": "coffee shops in Austin"
},
],
"credits_used": 1,
"credits_remaining": 49
}