Sign Up

Log In

Daily Fuel Price - India

FREEMIUM
By navii
Updated 19 hours ago
Travel
9.2/10
Popularity Score
2238ms
Latency
54%
Success Rate

Daily Fuel Price - India API Documentation

Get prices of Petrol and Diesel in India. Prices are updated DAILY. Please report bugs.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

POSTMain Version
POSTTesting Version
POSTLast 7 Day Prices
POSTMain Version

Get daily fuel prices. You need a "BASIC" plan subscription to use this endpoint.

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Content-TypeSTRING
OPTIONAL
Required Parameters
POSTJSON_STRING
REQUIREDFuel can be "p" for Petrol and "d" for Diesel. State codes are available on "Overview" page. Both parameters need to be in lowercase.
Request Snippet
unirest.post("https://fuelprice.p.rapidapi.com/")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "undefined")
.send({"fuel":"p","state":"dl"})
.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://fuelprice.p.rapidapi.com/")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "undefined")
.send({"fuel":"p","state":"dl"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto 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