Python client for ausdata.io
The ausdata.io API is plain JSON over HTTPS with a single bearer header. Any Python HTTP client works. The 8-line client below is what every Python user writes on day one, copy it and skip the boilerplate.
No pip package yet. The snippet above is the canonical client.
Install
Shell
pip install httpxCanonical client
Python
import os, httpx
class AusData:
def __init__(self, key: str | None = None):
self.key = key or os.environ["AUSDATA_KEY"]
self.base = "https://api.ausdata.io"
def get(self, path: str, **params):
r = httpx.get(f"{self.base}{path}",
headers={"Authorization": f"Bearer {self.key}"},
params=params, timeout=20)
r.raise_for_status()
return r.json()Use it
Python
client = AusData()
snapshot = client.get("/v1/economic-dashboard")
print(snapshot["data"]["cash_rate"])Notes
- .Set AUSDATA_KEY in your environment. Never commit a key.
- .httpx supports async if you switch to AsyncClient with the same headers.
- .Responses are JSON with a top-level data key and a sources array.
Other SDKs
Get a key and call your first endpoint
500 free calls per month. No credit card.
Get a free API key