Daily Fuel Prices - India

FREEMIUM
By apiexpress
Updated 3 months ago
Data
7.6/10
Popularity Score
2829ms
Latency
87%
Success Rate

Daily Fuel Prices - India API Documentation

Get HP, IOC and BP Fuel prices in India. Petrol and Diesel Prices are updated DAILY.

View API Details
BP
GETBP Prices
GETGeo Boundingbox
HP
GETHP States
GETHP Prices
IOC
GETIOC States
GETIOC Prices
GETBP Prices

Get Prices by Geocode locations. Use Geo Boundingbox API to get lat long boundingbox for better results.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
LONGITUDE2STRING
REQUIRED
LONGITUDE1STRING
REQUIRED
LATITUDE1STRING
REQUIRED
LATITUDE2STRING
REQUIRED
Code Snippet
unirest.get("https://daily-fuel-prices-india.p.rapidapi.com/api/Bpprice")
.header("X-RapidAPI-Host", "daily-fuel-prices-india.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://daily-fuel-prices-india.p.rapidapi.com/api/Bpprice
Request Method: GET
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.get("https://daily-fuel-prices-india.p.rapidapi.com/api/Bpprice")
.header("X-RapidAPI-Host", "daily-fuel-prices-india.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication