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).
https://api.maviapi.com/v1/sites/maps-google/nearby_places5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
latnumber in query | Optional | 40.758 | latitude of the point to search around (default Times Square, New York) |
lngnumber in query | Optional | -73.9855 | longitude of the point to search around |
categorystring in query | Optional | restaurants | kind 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 query | Optional | 1000 | approximate radius in metres of the area searched around the point |
offsetinteger in query | Optional | 0 | number of results to skip, for paging (20 per page: 0, 20, 40, ...) |
sort_by_distanceboolean in query | Optional | false | true to order results nearest first instead of Google's relevance order |
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
late.g.40.758lnge.g.-73.9855categorye.g."restaurants"counte.g.20places
namee.g."LOS TACOS No.1"place_ide.g."ChIJ6WooklRYwokR3qd-J59t-k0"feature_ide.g."0x89c2585492286ae9:0x4dfa6d9f277ea7de"addresse.g."229 W 43rd St, New York, NY 10036"address_partslate.g.40.7573976lnge.g.-73.98746299999999categoriesratinge.g.4.8reviews_counte.g.16548price_levelphonewebsitee.g."https://www.lostacos1.com/location/los-tacos-times-square/"descriptione.g."Small pit stop with standing tables serving authentic Mexican street food."hours
Fridaye.g."11 AM–12 AM"Saturdaye.g."11 AM–12 AM"Sundaye.g."11 AM–10 PM"Mondaye.g."11 AM–12 AM"Tuesdaye.g."11 AM–12 AM"Wednesdaye.g."11 AM–12 AM"Thursdaye.g."11 AM–3 PM"open_statuse.g."Open · Closes 12 AM"timezonee.g."America/New_York"neighborhoode.g."New York, NY"thumbnaile.g."https://lh3.googleusercontent.com/grass-cs/AABkmLeVaDEli-utf6Qx2Q8bLcWhpAOU1-NF_TXIxsn0sECrbyFhu5w_Rozs5aDJC1TnWp9eoYO1usteC0ugswUKJ04Gqh8NfOMKP_2oThbU0qXbCaZ63x93ZIrDWOZgacswSpjE58-z3w=w122-h92-k-no"google_maps_urle.g."https://www.google.com/maps/place/?q=place_id:ChIJ6WooklRYwokR3qd-J59t-k0"distance_me.g.178Example 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/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.