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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
location | text | Location | 3 of 3 |
product | text | Product | 3 of 3 |
period_ending | date | Period ending | 3 of 3 |
price_cents_l | number | Price cents l | 3 of 3 |
taxes_cents_l | number | Taxes cents l | 3 of 3 |
marketing_margin_cents_l | number | Marketing margin cents l | 3 of 3 |
refining_margin_cents_l | number | Refining margin cents l | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Product | Taxes cents l | Marketing margin cents l | Refining margin cents l | Price cents l | Location | Period ending |
|---|---|---|---|---|---|---|---|
| 1 | Regular Gasoline | 37.1 | 10.2 | 31.1 | 128.5 | Canada | Jan 6, 2026 |
| 2 | Regular Gasoline | 37.4 | 10 | 32.6 | 131.6 | Canada | Jan 13, 2026 |
| 3 | Regular Gasoline | 37.7 | 10.8 | 33.2 | 134.8 | Canada | Jan 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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.