API Reference

Fuel price fetch API

The Fuel Price Information API is the simplest way to obtain the price information for the fuel across your region.

Response Field Description

FieldTypeDescription
statuscodeIntegerHTTP-like custom response code indicating success (200 = OK).
statusBooleanTrue if transaction was successful
messageStringTransaction result message
reference_idStringUnique identifier used to track the specific request or transaction
nameStringName of the city or location for which fuel prices are provided
petrolPriceFloatCurrent retail price of petrol (per litre) in the specified location
petrolChangeString/FloatChange in petrol price compared to the previous recorded day (e.g., "0.00" means no change)
dieselPriceFloatCurrent retail price of diesel (per litre) in the specified location
dieselChangeString/FloatChange in diesel price compared to the previous day (e.g., "0.00" means no change)
priceDateString(Date Time)Date and time when the prices were last updated
citystateStringName of the city and/or state the prices correspond to
typeStringType of location — e.g., "city", "state", etc
codeStringUnique short code or slug representing the location
Language
Click Try It! to start a request and see the response here!