Sign Up

Log In

GooglePlaces

FREE
By dimas
Updated 9 days ago
Mapping
7.1/10
Popularity Score
85ms
Latency
100%
Success Rate

GooglePlaces API Documentation

Add location awareness for more contextual results.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POSTaddPlace
POSTgetImageURL
POSTgetNearbyPlaces
POSTgetNearbyPlacesByName
POSTgetNearbyPlacesByType
POSTgetNearbyPlacesRadar
POSTgetPlaceDetails
POSTsearchPlacesByText
POSTgetNearbyPlaces

Search for places within a specified area. You can refine your search request by supplying keywords or specifying the type of place you are searching for.

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDThe api key obtained from Google Developers Console.
radiusSTRING
REQUIREDDistance in meters over which the results must be found. The maximum allowable range is 50 000 meters. Note that the radius parameter should not be used if the value rank_by = distance.
coordinateMAP
REQUIREDThe latitude nad longitude of place coma separated.
Optional Parameters
typeLIST
OPTIONALlimit search results to only those places whose type corresponds to at least one of these. Types should be separated by a vertical bar (type1 | type2 | etc).
minimum_priceSELECT
OPTIONALThe price range, limiting the search results. Valid entries are from 0 (free) to 4 (most expensive).
keywordSTRING
OPTIONALThe word on which the search is conducted in all contents are indexed by Google for a given place, including the name, type, address, user reviews and third-party content.
nameSTRING
OPTIONALThe space-separated words that are being sought in the names of places.
maximum_priceSELECT
OPTIONALThe price range, limiting the search results. Valid entries are from 0 (free) to 4 (most expensive).
rank_bySELECT
OPTIONALThe order of the results. The possible values are: prominence (the default) - the results are sorted by popularity. Priority is given to the ranking of the more famous sites located in a given area. At a certain place affect the rating in the Google index, the overall popularity and other factors. Distance - the results are sorted in order of proximity to the point specified in the parameter location. If you specify distance, you must also specify one or more parameters keyword, name, or type.
languageSELECT
OPTIONALThe language code, which should be possible to return the results.
open_nowSELECT
OPTIONALLimit search results to only those organizations (establishments) that are open at the time of sending the request.
Request Snippet
unirest.post("https://GooglePlacesdimasV1.p.rapidapi.com/getNearbyPlaces")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("type=undefined")
.send("minimum_price=undefined")
.send("keyword=undefined")
.send("name=undefined")
.send("maximum_price=undefined")
.send("rank_by=undefined")
.send("language=undefined")
.send("open_now=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://GooglePlacesdimasV1.p.rapidapi.com/getNearbyPlaces")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("type=undefined")
.send("minimum_price=undefined")
.send("keyword=undefined")
.send("name=undefined")
.send("maximum_price=undefined")
.send("rank_by=undefined")
.send("language=undefined")
.send("open_now=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard