Get historical Australian rainfall data
Daily rainfall by BOM station, back to 1900 for the longest-running sites.
Steps
- 1Pass station_id and date range.
- 2Iterate daily totals.
Code
cURL
curl https://api.ausdata.io/v1/weather/rainfall-history \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/v1/weather/rainfall-history",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/v1/weather/rainfall-history", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- Older records have gaps. The metadata field flags interpolated values.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key