fuel

Daily fuel prices for an area

Changed on

One row per day, oldest first, for one fuel in one area: the median, 10th percentile, 90th percentile and mean of current card prices across the area's stations, in Canadian cents per litre. An area is the whole country (CA), a province (CA-ON), or a forward sortation area (L3Y, the first three characters of a postal code). Costs 1 credit.

get/v2/fuel/prices

Request

  • Base URL
    https://api.cardog.app
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

area, string

"CA", a province such as "CA-ON", or a forward sortation area such as "L3Y"

fuel, 'regular' | 'midgrade' | 'premium' | 'diesel' | 'e85' | 'propane'

The fuel

days, integer

How many days back

Response

The area's daily prices, oldest first

FuelPrices required
area, string required

The area: "CA", a province such as "CA-ON", or the first three characters of a postal code (FSA) such as "L3Y"

areaKind, 'country' | 'province' | 'fsa' required

What kind of area area is

fuel, 'regular' | 'midgrade' | 'premium' | 'diesel' | 'e85' | 'propane' required

The fuel: a gasoline grade (regular, midgrade, premium), diesel, e85 or propane

fuelType, string required

The fuel type ID, e.g. "fuel-type:gasoline"

currency, 'CAD' required

Always CAD

latest, object nullable required

The newest day in series. Null when the area has no prices.

series, object[] required

One entry per day with prices, oldest first

asOf, string

The date of the newest daily data, YYYY-MM-DD

links, object

Paths to related endpoints, ready to request, e.g. {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

Changes