Canada Retail Fuel Prices by City API

Average retail pump prices in Canada by city and fuel, daily, weekly or monthly, split into taxes, marketing margin and refining margin, in cents per litre. Source: Natural Resources Canada.

$1 per 1,000 records

You pay only for the records you get. Zero records cost zero. 5,000 free records to start, no card.

Try it
Ready-made, maintained by usRecords, 7 fieldsv1.0

Data from www2.nrcan.gc.ca/eneene/sources/pripri/prices_bycity_e.cfm

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Locationsoptional
Cities or Canada, as named on the Natural Resources Canada page. One per line, or separated by commas.
Example: Canada, Toronto
Productoptional
Fuel: regular_gasoline, mid_grade, premium, diesel, furnace_oil or auto_propane.
Frequencyoptional
daily (last 60 days), weekly or monthly.
Yearoptional
Price year; empty means the current year.
Example: 2026

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 5,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/canada-fuel-prices/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
5,000 free records to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/canada-fuel-prices/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"locations":["Canada","Toronto"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

locationslist
Cities or Canada, as named on the Natural Resources Canada page.
example: Canada, Toronto
producttext
Fuel: regular_gasoline, mid_grade, premium, diesel, furnace_oil or auto_propane.
default: regular_gasolineexample: regular_gasolineone of: regular_gasoline, mid_grade, premium, diesel, furnace_oil, auto_propane
frequencytext
daily (last 60 days), weekly or monthly.
default: weeklyexample: weeklyone of: daily, weekly, monthly
yearnumber
Price year; empty means the current year.
example: 2026

What's in each record

7 fields.

Basics

  • Product

    Fuel, such as Regular Gasoline or Diesel.

    Example Regular Gasoline

  • Taxes cents l

    Taxes in cents per litre.

    Example 37.1

  • Marketing margin cents l

    Marketing margin in cents per litre.

    Example 10.2

  • Refining margin cents l

    Refining margin in cents per litre.

    Example 31.1

Prices

  • Price cents l

    Average retail price in cents per litre, taxes included.

    Example 128.5

Location

  • Location

    City or Canada.

    Example Canada

Dates

  • Period ending

    Last day of the week, month or the day itself.

    Example Jan 6, 2026

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
locationtextLocation3 of 3
producttextProduct3 of 3
period_endingdatePeriod ending3 of 3
price_cents_lnumberPrice cents l3 of 3
taxes_cents_lnumberTaxes cents l3 of 3
marketing_margin_cents_lnumberMarketing margin cents l3 of 3
refining_margin_cents_lnumberRefining margin cents l3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordProductTaxes cents lMarketing margin cents lRefining margin cents lPrice cents lLocationPeriod ending
1Regular Gasoline37.110.231.1128.5CanadaJan 6, 2026
2Regular Gasoline37.41032.6131.6CanadaJan 13, 2026
3Regular Gasoline37.710.833.2134.8CanadaJan 20, 2026

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Prices are Natural Resources Canada's published averages in cents per litre including taxes; they are not individual station prices.
  • One request per city and year, about one a second. Weekly rows run Wednesday to Tuesday and carry the week-ending date; monthly rows carry the last day of the month; daily rows cover only about the last 60 days.
  • Auto propane has no marketing or refining margin, so those two fields are empty for it. Some cities have gaps or start later in the year.
  • Natural Resources Canada updates the tables weekly. The data is a Government of Canada publication: check its reuse terms and credit Natural Resources Canada before commercial use.
  • At most 5000 records per run.

Version history

A run uses the live version unless the request names another one with version.