Get the current weather for Melbourne
BOM observations for Melbourne Olympic Park.
Steps
- 1Call /v1/weather/melbourne.
- 2Read the fields you need.
Code
cURL
curl https://api.ausdata.io/v1/weather/melbourne \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/v1/weather/melbourne",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/v1/weather/melbourne", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- Melbourne weather can shift 10C in an hour. Cache aggressively but not for long.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key