Overview

The ASX Energy Data API provides historical and intraday market data via a convenient REST interface for you to integrate with your back-office systems.

You can manage your API token at Account → API Access. For dataset timing and history depth after market close, see Data Availability.


Base URL

https://www.asxenergy.com.au/api

Authentication

ASX Energy API uses Bearer Token to authenticate requests. You can manage your API token in the Account API Management page.

Your API tokens carry many privileges, so be sure to keep them secure! Do not commit your secret API tokens to source code or share in publicly accessible areas such as publicly visible projects, client-side code, etc.

After being created, your API token will only be displayed once. If you lose your API token, you can create a new one. Advanced subscribers can have one active production token at a time.

Subscribers without Advanced or Unlimited access may create a separate API Trial token (three per account, 7-day validity each with restricted data access).

Authentication to the API is performed via HTTP Bearer Authentication. Provide your API token in the Authorization header.

Example request:

curl -H "Authorization: Bearer <your token>" \
     https://www.asxenergy.com.au/api

Common authentication and access responses:

Status When
401 Missing, invalid, or expired token
403 Your plan or token is not entitled to the requested resource, or the token has been blocked
429 Rate limit exceeded (see Rate Limiting)

Endpoint-specific validation errors are documented on each endpoint page.


Timezone

All timestamps used in requests or returned by the API are based on Sydney, Australia local time — either AEST (Australian Eastern Standard Time) or AEDT (Australian Eastern Daylight Time), depending on daylight saving — unless an endpoint states otherwise.


Datasets

The API exposes two broad kinds of market data.

Intraday

Provides data for the current trading session:

End-of-day

Provides settled daily data for the last trading day or a selected date:

Definitions of these datasets, typical post-close availability times, and historical coverage are described in Data Availability.


Rate Limiting

The ASX Energy API enforces rate limits to ensure fair and reliable access for all users.

The limits are:

  • Maximum 10 requests per second per user;
  • Maximum 60 requests per minute per user.

Requests exceeding these limits are rejected with HTTP 429 and the body Too many requests.


Pagination and response size

The Data API does not support pagination parameters or cursor-based paging. Each request returns the full result set for the selected market, code, and (where applicable) date.

Large markets — for example futures=au_electricity on the end-of-day endpoint, or a full day of ticker messages — can produce multi-megabyte JSON or CSV responses. Where you only need a subset of instruments, prefer a narrower initial or exact code.