Get east coast gas prices

AEMO Short Term Trading Market prices for Sydney, Adelaide, and Brisbane.

Steps

  1. 1Call /v1/energy/gas-stm.
  2. 2Iterate hubs.

Code

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

Watch out for

  • STTM does not cover WA or NT. They run separate markets.

Related

Try it now

500 free calls per month. No credit card.

Get a free API key