Overview
Documentation for the OpenElectricity REST API - Australian Electricity Market Data
Introduction
The OpenElectricity API provides programmatic access to Australian electricity market data, including real-time generation, demand, price information and historical data across the National Electricity Market (NEM) and Western Australian Wholesale Electricity Market (WEM).
Data License
Unless stated otherwise, the data provided by the OpenElectricity API is licensed under the CC BY 4.0 license. Proper attribution to OpenElectricity at openelectricity.org.au as the source is required.
Authentication
All API endpoints require authentication using an API key. You’ll need to include your API key in the Authorization header of your requests:
To obtain and manage your API key, please register for an account at the OpenElectricity Platform.
Base URL
The base URL for all API endpoints is:
Response Format
All responses are returned in JSON format. Successful responses will have a 2xx status code and follow this structure:
Error Handling
Errors are returned with appropriate HTTP status codes and include detailed error messages:
Common error status codes:
400
Bad Request - Invalid parameters or request401
Unauthorized - Missing or invalid API key403
Forbidden - Insufficient permissions422
Validation Error - Invalid input parameters500
Internal Server Error - Server-side error