Skip to main content

Installation and setting up

To install Barikoi Api's library, navigate to your project folder and run the command:

npm install barikoiapis

Get your own YOUR BARIKOI API KEY if you want to use autocomplete, reverseGeocode, nearby or rupantor data in your project.

Config Import necessary functions from "barikoiapis" library. Set configuration with your Barikoi API key and version.

import { setConfig, autocomplete, reverseGeocode, nearby, rupantor } from "barikoiapis";

setConfig({
apiKey:
"YOUR_BARIKOI_API_KEY_HERE",
version: "v1",
});

After setting the config with YOUR BARIKOI API KEY you can get the data of autocomplete, reverseGeocode, nearby or rupantor API.