Skip to content

Google Maps Nearby Places API

Places of a given kind near a latitude/longitude, up to ~20 per page, each with name, place_id, address, coordinates, distance_m from the given point, 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/nearby_places5 credits per call

Parameters

NameRequiredExampleDescription
latnumber in queryOptional40.758latitude of the point to search around (default Times Square, New York)
lngnumber in queryOptional-73.9855longitude of the point to search around
categorystring in queryOptionalrestaurantskind of place to look for, e.g. "restaurants", "coffee", "hotels", "pharmacy", "atm", "things to do", "gas station"; may also be a name such as "Starbucks"
radius_mnumber in queryOptional1000approximate radius in metres of the area searched around the point
offsetinteger in queryOptional0number of results to skip, for paging (20 per page: 0, 20, 40, ...)
sort_by_distanceboolean in queryOptionalfalsetrue to order results nearest first instead of Google's relevance order
hlstring in queryOptionalenlanguage code for the results, e.g. "en", "de"
glstring in queryOptionaluscountry code for the results, e.g. "us", "gb"

Response fields

latnumbere.g.40.758
lngnumbere.g.-73.9855
categorystringe.g."restaurants"
countintegere.g.20
placesobject[]21 fields
namestringe.g."LOS TACOS No.1"
place_idstringe.g."ChIJ6WooklRYwokR3qd-J59t-k0"
feature_idstringe.g."0x89c2585492286ae9:0x4dfa6d9f277ea7de"
addressstringe.g."229 W 43rd St, New York, NY 10036"
address_partsstring[]
latnumbere.g.40.7573976
lngnumbere.g.-73.98746299999999
categoriesstring[]
ratingnumbere.g.4.8
reviews_countintegere.g.16548
price_levelnull
phonenull
websitestringe.g."https://www.lostacos1.com/location/los-tacos-times-square/"
descriptionstringe.g."Small pit stop with standing tables serving authentic Mexican street food."
hoursobject7 fields
Fridaystringe.g."11 AM–12 AM"
Saturdaystringe.g."11 AM–12 AM"
Sundaystringe.g."11 AM–10 PM"
Mondaystringe.g."11 AM–12 AM"
Tuesdaystringe.g."11 AM–12 AM"
Wednesdaystringe.g."11 AM–12 AM"
Thursdaystringe.g."11 AM–3 PM"
open_statusstringe.g."Open · Closes 12 AM"
timezonestringe.g."America/New_York"
neighborhoodstringe.g."New York, NY"
thumbnailstringe.g."https://lh3.googleusercontent.com/grass-cs/AABkmLeVaDEli-utf6Qx2Q8bLcWhpAOU1-NF_TXIxsn0sECrbyFhu5w_Rozs5aDJC1TnWp9eoYO1usteC0ugswUKJ04Gqh8NfOMKP_2oThbU0qXbCaZ63x93ZIrDWOZgacswSpjE58-z3w=w122-h92-k-no"
google_maps_urlstringe.g."https://www.google.com/maps/place/?q=place_id:ChIJ6WooklRYwokR3qd-J59t-k0"
distance_mintegere.g.178

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/nearby_places' \
  -H "Authorization: Bearer $MAVI_KEY"

Google Maps Nearby Places API questions

What you get, what it costs and how to call it.

What does the Google Maps Nearby Places API return?

Places of a given kind near a latitude/longitude, up to ~20 per page, each with name, place_id, address, coordinates, distance_m from the given point, categories, rating, review count, phone, website, opening hours and more (fields Google does not give are null). The response has lat, lng, category, count and places.

Which parameters does the Google Maps Nearby Places API take?

Every parameter of GET /nearby_places is optional. You can pass lat, lng, category, radius_m, offset, sort_by_distance, hl and gl.

How much does one Google Maps Nearby 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 Nearby Places API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/maps-google/nearby_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 Nearby 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.