Pull the full Australian CPI history

Returns every ABS CPI observation since 1948 as flat JSON. Use for inflation-adjustment calculations.

Steps

  1. 1Call the endpoint with no limit.
  2. 2Sort by reference_period.
  3. 3Use base period 2011-12 = 100.

Code

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

Watch out for

  • Methodology changes in 1998 and 2017. Note the breakpoints when modelling.

Related

Try it now

500 free calls per month. No credit card.

Get a free API key