Get the current RBA cash rate in Python

Pull the latest RBA cash rate target into Python in three lines. Returns the most recent observation from RBA series F1.1 as JSON.

Steps

  1. 1Get a free API key from /signup.
  2. 2Call /v1/data/rba/f1.1 with limit=1.
  3. 3Read the value field from the first observation.

Code

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

Watch out for

  • RBA publishes after each Board meeting, not daily.
  • The series returns the target rate, not the realised cash rate.

Related

Try it now

500 free calls per month. No credit card.

Get a free API key