YandexPlaces

FREE
By raygorodskij
Updated 5 months ago
Mapping
2/10
Popularity Score
230ms
Latency
100%
Success Rate

YandexPlaces API Documentation

Search for geographical features businesses.

View API Details
POSTsearchByOrganization
POSTsearchByOrganization

Search service by organizations is designed to search for geographical objects (toponyms) and organizations. The service allows you to search for houses, streets, attractions, cafes and other facilities.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
textSTRING
REQUIREDThe text of the search query. For example, the name of the geographical object, address, coordinates, organization name, telephone.
languageSTRING
REQUIREDPreferred response language.Example en_US.
apiKeyCREDENTIALS
REQUIREDapikey for Yandex Place.
Optional Parameters
alternativeSearchSTRING
OPTIONALAn alternative way to specify a search scope (see mapCenter + viewportRange).Example - 36.83,55.67~38.24,55.91.
mapCenterMAP
OPTIONALSearch area center. It is determined with the help of longitude and latitude, separated by a comma.Used in conjunction with the parameter mapExtent.
skipNUMBER
OPTIONALThe number of objects in the response (starting with the first) that you want to skip.
searchAreaSizeSTRING
OPTIONALDimensions of the search area. It is determined by means of lengths in longitude and latitude, separated by a comma.Use with mapCenter param.Example - 0.552069,0.400552 .
searchAreaRestrictionSELECT
OPTIONALA sign of a 'hard' limitation of the search area. Use with alternativeSearch or viewportRange + mapCenter.
resultsLimitNUMBER
OPTIONALNumber of objects returned. The default is 10. The maximum allowable value is 500.
Code Snippet
unirest.post("https://YandexPlacesraygorodskijV1.p.rapidapi.com/searchByOrganization")
.header("X-RapidAPI-Host", "YandexPlacesraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://YandexPlacesraygorodskijV1.p.rapidapi.com/searchByOrganization
Request Method: POST
Response Headers
Response Body

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://YandexPlacesraygorodskijV1.p.rapidapi.com/searchByOrganization")
.header("X-RapidAPI-Host", "YandexPlacesraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication