Skip to content

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).

GEThttps://api.maviapi.com/v1/sites/maps-google/search_places5 credits per call

Parameters

NameRequiredExampleDescription
querystring in queryOptionalcoffeewhat to search for; may contain a place name, a category, or an address/city
latnumber in queryOptional51.5072latitude of the map centre used to bias results (default central London)
lngnumber in queryOptional-0.1276longitude of the map centre used to bias results
radius_mnumber in queryOptional5000approximate search area radius in metres around lat/lng
offsetinteger in queryOptional0number of results to skip, for paging (20 per page: 0, 20, 40, ...)
hlstring in queryOptionalenlanguage code for the results, e.g. "en", "de"
glstring in queryOptionaluscountry code for the results, e.g. "us", "gb"

Response fields

querystringe.g."coffee"
countintegere.g.20
placesobject[]20 fields
namestringe.g."Archetype Coffee"
place_idstringe.g."ChIJ32WYJnsbdkgR1FckbQTtMk8"
feature_idstringe.g."0x48761b7b269865df:0x4f32ed046d2457d4"
addressstringe.g."31 Riding House St, London W1W 7DY, United Kingdom"
address_partsstring[]
latnumbere.g.51.518557699999995
lngnumbere.g.-0.1409618
categoriesstring[]
ratingnumbere.g.4.9
reviews_countintegere.g.425
price_levelnull
phonenull
websitenull
descriptionnull
hoursobject7 fields
Fridaystringe.g."8:30 AM–4 PM"
Saturdaystringe.g."10 AM–4 PM"
Sundaystringe.g."10 AM–4 PM"
Mondaystringe.g."8 AM–4 PM"
Tuesdaystringe.g."8 AM–4 PM"
Wednesdaystringe.g."8 AM–4 PM"
Thursdaystringe.g."8 AM–4 PM"
open_statusstringe.g."Closed · Opens 10 AM Sat"
timezonestringe.g."Europe/London"
neighborhoodstringe.g."London, United Kingdom"
thumbnailstringe.g."https://lh3.googleusercontent.com/grass-cs/AABkmLdTXy00y2JYJaNoIyu5GUCxrVjA7NjlpnQgPY5QfJy02o1fOe6k_u3Mv2QHsStBIW-XO7L7To8JjHxaPgPOIUZSFnqiBgakCOwr9KR43JKXmAMV8ef7_gJn57xyXi9hZzvBvwV78Q=w80-h106-k-no"
google_maps_urlstringe.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
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.