Get Today's fuel prices for Indian states and districts
Live version : https://fuelprice-api-india.herokuapp.com/
Base URL: https://fuelprice-api-india.herokuapp.com/
-
GET
/states
List all the possible state options -
GET
/<state>/districts
List all the districts in a particular state -
GET
/price/<state>
List all fuel prices in the state for all districts -
GET
/price/<state>/<district>
Returns the price for specific district in a state
Example:
{
"district": "FATEHGARH SAHIB",
"products": [
{
"productName": "Petrol",
"productPrice": "81.72",
"productCurrency": "INR",
"priceChange": "0.15",
"priceChangeSign": "-"
},
{
"productName": "Diesel",
"productPrice": "75.13",
"productCurrency": "INR",
"priceChange": "0.19",
"priceChangeSign": "-"
}
]
}
For more examples : https://github.com/anshikakaythwas/fuel-prices-india-api/tree/master/jsonOutputs
Source: https://www.newsrain.in/petrol-diesel-prices
Feel free to open an issue for any bugs/features. (Bonus points for creating a pull request fixing/adding the same!)