Unlocking Energy Consumption Insights: Building Custom Dashboards for Utilities with Energy API
Introduction
In today's fast-paced energy market, access to reliable and timely data is crucial for utilities, energy traders, and sustainability teams. The challenge lies in the fragmented nature of energy data sources, which often require extensive manual effort to aggregate and normalize. Developers face the daunting task of scraping various government portals or stitching together incompatible formats, leading to wasted time and resources. This is where Energy API comes into play, offering a unified solution that simplifies the process of accessing wholesale energy market data.
With Energy API, you can unlock valuable insights into energy consumption and market trends without the hassle of dealing with multiple data formats and sources. This blog post will guide you through building custom dashboards for utilities using Energy API, showcasing its powerful features and endpoints that cater to developers, data engineers, and energy professionals alike.
Why Energy API
Energy API stands out in the crowded landscape of energy data providers for several reasons:
- Unified Data Source: Energy API aggregates data from multiple trusted sources such as OMIE, ENTSO-E, EIA, and ESIOS, providing a single REST interface. This eliminates the need for developers to manage different formats and schedules, allowing them to focus on building applications rather than data integration.
- Comprehensive Coverage: With over 39 symbols across six commodity categories—electricity, natural gas, crude oil, coal, carbon allowances, and grid carbon intensity—developers can access a wide range of market data in one place. This versatility enables the creation of diverse applications, from trading platforms to sustainability dashboards.
- Rapid Development: The consistent JSON schema across all commodities means that developers can ship features in hours, not weeks. This accelerates the development cycle and allows teams to respond quickly to market changes.
- Real-Time Data: Energy API provides intraday electricity curves and real-time updates, ensuring that users have access to the most current market information. This is essential for applications that rely on timely data for decision-making.
Quick Start
Getting started with Energy API is straightforward. The base URL for accessing the API is:
https://energy-api.com/api/v1
To make your first request, you will need to include your API key as a query parameter. Here’s an example of how to retrieve the latest prices for Brent Crude and TTF Gas:
curl -G https://energy-api.com/api/v1/latest \
--data-urlencode "symbols=BRENT_CRUDE,TTF_GAS" \
--data-urlencode "api_key=YOUR_API_KEY"
The expected JSON response will look like this:
{
"success": true,
"date": "2026-06-11",
"base": "MIXED",
"rates": {
"BRENT_CRUDE": 74.82,
"TTF_GAS": 38.15
},
"dates": {
"BRENT_CRUDE": "2026-06-11",
"TTF_GAS": "2026-06-11"
},
"currencies": {
"BRENT_CRUDE": "USD",
"TTF_GAS": "EUR"
}
}
In this response, the key fields include:
- success: Indicates whether the request was successful.
- date: The date of the data retrieved.
- base: The base currency for the rates.
- rates: An object containing the latest prices for the requested symbols.
- currencies: The currency in which each rate is expressed.
Core Endpoints
Energy API offers a variety of endpoints that cater to different data needs. Here are four key endpoints relevant to building custom dashboards:
1. GET /latest
This endpoint retrieves the most recent price for one or more symbols.
Key Params: symbols (required), base (optional), category (optional)
curl -G https://energy-api.com/api/v1/latest \
--data-urlencode "symbols=BRENT_CRUDE,TTF_GAS,EUA_CO2" \
--data-urlencode "api_key=YOUR_API_KEY"
JSON Response:
{
"success": true,
"date": "2026-06-11",
"base": "MIXED",
"rates": {
"BRENT_CRUDE": 74.82,
"TTF_GAS": 38.15,
"EUA_CO2": 67.40
},
"dates": {
"BRENT_CRUDE": "2026-06-11",
"TTF_GAS": "2026-06-11",
"EUA_CO2": "2026-06-11"
},
"currencies": {
"BRENT_CRUDE": "USD",
"TTF_GAS": "EUR",
"EUA_CO2": "EUR"
}
}
Field Explanation: The response includes the latest rates for Brent Crude, TTF Gas, and EUA CO2, along with their respective currencies and the date of the data.
2. GET /historical
This endpoint provides prices for all symbols on a specific past date. If the date falls on a non-publishing day, it returns the most recent value before it.
Key Params: date (YYYY-MM-DD, required), symbols (required), base (optional)
curl -G https://energy-api.com/api/v1/historical \
--data-urlencode "date=2025-09-15" \
--data-urlencode "symbols=BRENT_CRUDE,TTF_GAS" \
--data-urlencode "api_key=YOUR_API_KEY"
JSON Response:
{
"success": true,
"date": "2025-09-15",
"base": "MIXED",
"rates": {
"BRENT_CRUDE": 71.45,
"TTF_GAS": 36.20
},
"currencies": {
"BRENT_CRUDE": "USD",
"TTF_GAS": "EUR"
}
}
Field Explanation: This response provides historical prices for Brent Crude and TTF Gas on the specified date, along with their currencies.
3. GET /timeseries
This endpoint retrieves historical series between two dates, making it ideal for charting and trend analysis.
Key Params: start (required), end (required), symbols (required), base (optional)
curl -G https://energy-api.com/api/v1/timeseries \
--data-urlencode "start=2025-01-01" \
--data-urlencode "end=2025-03-31" \
--data-urlencode "symbols=BRENT_CRUDE,TTF_GAS" \
--data-urlencode "api_key=YOUR_API_KEY"
JSON Response:
{
"success": true,
"base": "MIXED",
"start_date": "2025-01-01",
"end_date": "2025-03-31",
"rates": {
"BRENT_CRUDE": {
"2025-01-02": 76.30,
"2025-01-03": 75.90
},
"TTF_GAS": {
"2025-01-02": 46.80,
"2025-01-03": 47.10
}
},
"frequencies": {
"BRENT_CRUDE": "daily",
"TTF_GAS": "daily"
},
"currencies": {
"BRENT_CRUDE": "USD",
"TTF_GAS": "EUR"
}
}
Field Explanation: The response includes daily rates for Brent Crude and TTF Gas between the specified dates, along with their frequencies and currencies.
4. GET /fluctuation
This endpoint provides start/end values, absolute change, and percentage change over a specified period.
Key Params: start (required), end (required), symbols (required), base (optional)
curl -G https://energy-api.com/api/v1/fluctuation \
--data-urlencode "start=2025-01-01" \
--data-urlencode "end=2025-03-31" \
--data-urlencode "symbols=BRENT_CRUDE,TTF_GAS" \
--data-urlencode "api_key=YOUR_API_KEY"
JSON Response:
{
"success": true,
"fluctuations": {
"BRENT_CRUDE": {
"start_value": 76.30,
"end_value": 75.90,
"change": -0.40,
"change_pct": -0.52
},
"TTF_GAS": {
"start_value": 46.80,
"end_value": 47.10,
"change": 0.30,
"change_pct": 0.64
}
}
}
Field Explanation: This response provides the start and end values for Brent Crude and TTF Gas, along with the absolute and percentage changes over the specified period.
Real-World Use Cases
Energy API's robust features enable developers to build a variety of applications that leverage energy market data. Here are three concrete examples:
- Price Alert System: Developers can create a price alert system that notifies users when energy prices reach a certain threshold. By utilizing the
/latestendpoint, the application can continuously monitor prices and send alerts via email or SMS when specific conditions are met. - ESG Dashboard: Sustainability teams can build dashboards that track carbon emissions and energy consumption metrics. By using the
/carbon-intensityand/latestendpoints, they can visualize trends in carbon intensity and make informed decisions to reduce their carbon footprint. - Cost Calculator: A cost calculator can be developed to estimate monthly energy expenses based on current market prices. By leveraging the
/cost-estimateendpoint, users can input their expected energy usage and receive an estimate of their monthly costs, helping them budget effectively.
FAQ
How often does the TTF gas price update?
The TTF gas price updates frequently throughout the day, reflecting real-time market conditions. This ensures that users have access to the most current pricing information for their trading and analysis needs.
Can I get historical energy prices going back 5 years?
Yes, Energy API provides access to historical prices for various symbols, allowing users to retrieve data for up to five years. This is particularly useful for trend analysis and forecasting.
Does the API support multiple currencies?
Absolutely! Energy API supports multiple currencies across its endpoints, enabling users to retrieve prices in their preferred currency. This flexibility is essential for international trading and analysis.
Conclusion
In conclusion, Energy API offers a powerful and efficient solution for accessing wholesale energy market data. By providing a unified REST interface, comprehensive coverage of commodities, and real-time updates, it empowers developers to build innovative applications that drive insights and decision-making in the energy sector. Whether you're creating a price alert system, an ESG dashboard, or a cost calculator, Energy API is the fastest path from zero to production energy data.
Don't let fragmented data sources slow you down. Try Energy API for free today and unlock the full potential of energy market insights!
Ready to get started?
Get your API key and start querying energy commodity prices in minutes.
Get API KeyRelated posts
Discover how utilities can leverage Energy API to build a robust green energy portfolio and stay competitive i...
Read more →
Discover how Energy API can transform demand response programs for utilities. Enhance decision-making and opti...
Read more →
Discover how the Utilities API enhances customer engagement by providing reliable market data, streamlining ac...
Read more →
Discover how Energy API transforms predictive modeling for utilities by providing reliable market data, enhanc...
Read more →
Discover how integrating Energy API with IoT devices transforms smart grid management for utilities, streamlin...
Read more →