Overview

Energi offers an API that provides programmatic access to a range of Danish energy market data. This includes real-time and historical electricity spot prices, gas prices, power grid data, and consumption data. The service is designed for developers and technical buyers who require granular energy information for applications such as energy market analysis, smart home automation, and optimizing electricity costs. By providing structured data through RESTful endpoints, Energi supports the development of tools that can respond to market fluctuations or provide insights into energy usage patterns.

The API caters to use cases requiring both current and historical data. For instance, developers can retrieve up-to-the-minute electricity spot prices to enable smart devices to consume energy during off-peak hours, thereby optimizing costs. Similarly, historical data on consumption and grid performance can be utilized for long-term trend analysis, predictive modeling for renewable energy generation, or validating energy efficiency initiatives. Energi's data can be integrated into broader platforms, allowing for custom dashboards, automated energy management systems, or research applications that require access to localized energy market dynamics.

With SDKs available for Python, JavaScript, PHP, and Ruby, Energi aims to simplify the integration process for developers. The documentation includes interactive examples and is structured to guide users through endpoint usage and data interpretation. This approach is intended to reduce the learning curve and accelerate development cycles for applications that rely on energy sector insights. The service's compliance with GDPR addresses data privacy considerations for users within the European Union, which is a common requirement for data services operating in the region.

Energi's core products, such as electricity spot prices and power grid data, are fundamental for understanding and reacting to the Danish energy landscape. For example, access to power grid data can inform decisions related to grid stability or distributed energy resource management. The API's capabilities extend to providing granular consumption data, which can be anonymized and aggregated to identify broader consumption trends or individual household usage patterns, depending on the specific data access permissions. This facilitates the creation of applications that assist consumers and businesses in managing their energy footprint more effectively.

The API's utility extends beyond mere data retrieval; it supports the creation of responsive and intelligent energy systems. For example, a smart home system could use Energi's real-time electricity prices to automatically schedule high-consumption appliances, such as washing machines or electric vehicle charging, during periods of lower electricity cost. This type of automation can lead to tangible savings for end-users and contribute to more efficient energy grid utilization. For businesses, access to detailed energy market data can inform strategic purchasing decisions, risk management in energy trading, or the development of new energy-related services.

Key features

  • Electricity Spot Prices: Access real-time and historical hourly electricity spot prices for various bidding zones in Denmark.
  • Gas Prices: Retrieve current and historical gas market prices, relevant for both industrial and residential applications.
  • Power Grid Data: Obtain data related to the Danish power grid, including transmission and distribution information, useful for grid analysis and management.
  • Consumption Data: Access aggregated and potentially granular consumption data for analysis of energy usage patterns.
  • Renewable Energy Forecasting: Utilize data points that support the forecasting of renewable energy generation and consumption trends.
  • Developer SDKs: Available SDKs for Python, JavaScript, PHP, and Ruby to streamline API integration and development workflows.
  • GDPR Compliance: Adherence to General Data Protection Regulation (GDPR) standards for data handling and privacy.

Pricing

Energi offers a tiered pricing model that includes a free tier for limited use and various paid plans. Custom enterprise pricing is available for organizations with specific requirements beyond the standard tiers.

Plan Monthly Cost (DKK) Features As Of Date
Free API Key 0 Limited requests, 24-hour historical data access 2026-05-28
Basic 199 Increased request limits, extended historical data, core data access 2026-05-28
Standard 499 Higher request limits, broader data access, priority support 2026-05-28
Pro 999 Extensive request limits, full data access, advanced analytics features 2026-05-28
Enterprise Custom Tailored features, dedicated support, custom data feeds 2026-05-28

For detailed pricing information and specific feature breakdowns for each plan, refer to the official Energi pricing page.

Common integrations

  • Smart Home Platforms: Integrate electricity spot prices to optimize appliance usage based on cost, as described in Energi's API documentation.
  • Energy Management Systems: Incorporate consumption and grid data into enterprise energy management dashboards for monitoring and reporting.
  • Financial Trading Platforms: Use real-time electricity and gas prices for algorithmic trading strategies in energy markets.
  • Renewable Energy Forecasting Tools: Feed historical and current energy data into models for predicting solar or wind power generation.
  • Data Visualization Tools: Connect the API to business intelligence platforms to visualize energy trends and market dynamics.

Alternatives

  • Nord Pool: A European power exchange providing market data for various Nordic and European countries.
  • Entsoe Transparency Platform: Provides publicly available data on electricity generation, consumption, and transmission across Europe.
  • Amber Electric: An Australian energy retailer offering an API for real-time wholesale electricity prices, primarily for Australian markets.

Getting started

To begin using the Energi API, developers typically obtain an API key from the Energi website. The following Python example demonstrates how to retrieve current electricity spot prices using the Python SDK.


import requests

API_KEY = "YOUR_ENERGI_API_KEY"
BASE_URL = "https://api.energi.dk/v1"

def get_current_spot_prices(api_key):
    endpoint = f"{BASE_URL}/electricity/spotprices"
    headers = {
        "Authorization": f"Bearer {api_key}",
        "Accept": "application/json"
    }
    try:
        response = requests.get(endpoint, headers=headers)
        response.raise_for_status()  # Raise HTTPError for bad responses (4xx or 5xx)
        data = response.json()
        return data
    except requests.exceptions.RequestException as e:
        print(f"An error occurred: {e}")
        return None

if __name__ == "__main__":
    spot_prices = get_current_spot_prices(API_KEY)
    if spot_prices:
        print("Current Electricity Spot Prices:")
        for item in spot_prices.get("data", [])[:5]: # Print first 5 items for brevity
            print(f"  Area: {item.get('area')}, Price: {item.get('price')} DKK/MWh, Time: {item.get('timestamp')}")
    else:
        print("Failed to retrieve spot prices.")

This example initializes a request to the /electricity/spotprices endpoint, authenticating with the provided API key. It then parses the JSON response to display the current electricity spot prices. For more detailed examples and endpoint specifics, refer to the Energi API documentation.