Calculate real wages from ABS CPI and WPI

Combine the Wage Price Index and CPI to get real wage growth in a single function. The /v1/real-wages endpoint does this server-side.

Steps

  1. 1Call /v1/real-wages.
  2. 2Read the rolling 4-quarter percent change.
  3. 3Cross-check against ABS Table 1.

Code

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

Watch out for

  • WPI lags CPI by one quarter. The endpoint pads with the most recent value.

Related

Try it now

500 free calls per month. No credit card.

Get a free API key