Get average Australian fuel prices by state

Weekly unleaded and diesel averages from AIP data, normalised per state.

Steps

  1. 1Call /v1/energy/fuel-prices.
  2. 2Iterate state averages.

Code

cURL
curl https://api.ausdata.io/v1/energy/fuel-prices \
  -H "Authorization: Bearer YOUR_KEY"
Python
import requests
r = requests.get(
    "https://api.ausdata.io/v1/energy/fuel-prices",
    headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())
JavaScript
const r = await fetch("https://api.ausdata.io/v1/energy/fuel-prices", {
  headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());

Watch out for

  • WA fuel pricing follows a regulated 24-hour cycle that smooths weekly averages.

Related

Try it now

500 free calls per month. No credit card.

Get a free API key