Introduction
The Open Electricity 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 Licence
Unless stated otherwise, the data provided by the Open Electricity API is licensed under CC BY-NC 4.0 (non-commercial). See the full licence for attribution requirements and commercial licensing options.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: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:400Bad Request - Invalid parameters or request401Unauthorized - Missing or invalid API key403Forbidden - Insufficient permissions422Validation Error - Invalid input parameters500Internal Server Error - Server-side error

