Google Maps Search Places API
Search Google Maps for places matching a text query (a place name, a business type, or both, e.g. "Archetype Coffee", "pizza", "hotels in Paris") around a location. Returns up to ~20 places with name, place_id, address, coordinates, categories, rating, review count, phone, website, opening hours and more (fields Google does not give are null).
https://api.maviapi.com/v1/sites/maps-google/search_places5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
querystring in query | Optional | coffee | what to search for; may contain a place name, a category, or an address/city |
latnumber in query | Optional | 51.5072 | latitude of the map centre used to bias results (default central London) |
lngnumber in query | Optional | -0.1276 | longitude of the map centre used to bias results |
radius_mnumber in query | Optional | 5000 | approximate search area radius in metres around lat/lng |
offsetinteger in query | Optional | 0 | number of results to skip, for paging (20 per page: 0, 20, 40, ...) |
hlstring in query | Optional | en | language code for the results, e.g. "en", "de" |
glstring in query | Optional | us | country code for the results, e.g. "us", "gb" |
Response fields
querye.g."coffee"counte.g.20places
namee.g."Archetype Coffee"place_ide.g."ChIJ32WYJnsbdkgR1FckbQTtMk8"feature_ide.g."0x48761b7b269865df:0x4f32ed046d2457d4"addresse.g."31 Riding House St, London W1W 7DY, United Kingdom"address_partslate.g.51.518557699999995lnge.g.-0.1409618categoriesratinge.g.4.9reviews_counte.g.425price_levelphonewebsitedescriptionhours
Fridaye.g."8:30 AM–4 PM"Saturdaye.g."10 AM–4 PM"Sundaye.g."10 AM–4 PM"Mondaye.g."8 AM–4 PM"Tuesdaye.g."8 AM–4 PM"Wednesdaye.g."8 AM–4 PM"Thursdaye.g."8 AM–4 PM"open_statuse.g."Closed · Opens 10 AM Sat"timezonee.g."Europe/London"neighborhoode.g."London, United Kingdom"thumbnaile.g."https://lh3.googleusercontent.com/grass-cs/AABkmLdTXy00y2JYJaNoIyu5GUCxrVjA7NjlpnQgPY5QfJy02o1fOe6k_u3Mv2QHsStBIW-XO7L7To8JjHxaPgPOIUZSFnqiBgakCOwr9KR43JKXmAMV8ef7_gJn57xyXi9hZzvBvwV78Q=w80-h106-k-no"google_maps_urle.g."https://www.google.com/maps/place/?q=place_id:ChIJ32WYJnsbdkgR1FckbQTtMk8"Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/maps-google/search_places' \
-H "Authorization: Bearer $MAVI_KEY"Google Maps Search Places API questions
What you get, what it costs and how to call it.
What does the Google Maps Search Places API return?
Search Google Maps for places matching a text query (a place name, a business type, or both, e.g. "Archetype Coffee", "pizza", "hotels in Paris") around a location. Returns up to ~20 places with name, place_id, address, coordinates, categories, rating, review count, phone, website, opening hours and more (fields Google does not give are null). The response has query, count and places.
Which parameters does the Google Maps Search Places API take?
Every parameter of GET /search_places is optional. You can pass query, lat, lng, radius_m, offset, hl and gl.
How much does one Google Maps Search Places API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the Google Maps Search Places API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/maps-google/search_places with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the Google Maps Search Places API official?
No. It is an independent, hosted API from maviapi for the public data on maps.google.com, and it is not made, endorsed or supported by Google Maps. Its parameters and response fields are documented on this page.