Skip to main content
The Prezio API provides comprehensive electricity pricing data across European markets, enabling you to build powerful energy applications with accurate, location-specific pricing information.

API Workflow

The diagram below shows the typical workflow for retrieving electricity pricing data with the Prezio API:
The /countries/ endpoint is available to discover supported countries but is not required for most workflows. You can proceed directly with country codes (e.g., “DK”, “SE”, “NO”) if you already know which country you’re working with.
This workflow reflects how you’ll typically interact with the API:
  1. Start with a location - The end-user’s address or coordinates
  2. Find applicable organizations - Discover which DSOs, retailers, etc. serve that location
  3. Get relevant tariffs - Retrieve tariffs from the organization you select (repeat for all organizations contributing to the end-user’s total price)
  4. Get pricing information - Use either the /live/ endpoint for current prices or /calculate/ for specific consumption

Key Concepts

Core API Endpoints

GET /countries/

Returns available country codes and supported time intervals to use in subsequent requests
GET /countries/
Response includes:
  • Country codes and names
  • available_interval_minutes: Supported time resolutions (15, 30, 60 minutes) for each country
[
  {
    "id": 1,
    "name": "Denmark",
    "code": "DK",
    "available_interval_minutes": [15, 30, 60]
  },
  {
    "id": 2,
    "name": "Sweden", 
    "code": "SE",
    "available_interval_minutes": [60]
  }
]
Essential first step to determine which markets and time intervals you can access
Lists local consumer types for a given country (e.g. “Residential”, “Professional aggregated” in GB), and retrieves details for one.
# List local consumer types for a country
GET /local-consumer-types/?country=DK

# Retrieve a specific local consumer type (by id, lct_ id or key)
GET /local-consumer-types/lct_3/?country=DK
Responses include local_consumer_type’s key information: id, key, name, consumer_type, description.It is recommended to use the local_consumer_types endpoint to build selection UIs that need the granular, country-specific labeling.
The local_consumer_types endpoint is currently in beta.
Finds organizations serving a specific location
GET /organizations/?country=DK&address=Rådhuspladsen 1, Copenhagen
Returns DSOs, retailers, and other organizations relevant to the location
Retrieves tariffs from specified organizations
GET /tariffs/?country=DK&organization=org_123
Returns available pricing structures that can be used for calculations
Gets current electricity prices for specified tariffs
GET /live/?country=DK&tariff_id=tar_123&tariff_id=tar_456&address=Copenhagen
Returns pricing information for the current time period
Calculates costs based on consumption data
POST /calculate/
{
  "country": "DK",
  "tariff_id": ["tar_123", "tar_456"],
  "address": "Copenhagen",
  "kwh": [
    {"interval_start": "2023-10-15T14:00:00Z", "amount": "1.5"}
  ]
}
Returns calculated costs for specific consumption amounts

Beta Features

Beta Endpoints Available: Some API endpoints are currently in beta and subject to changes and errors.
For detailed information about beta endpoints, see the API Reference.

API Value

The Prezio API solves critical challenges in the energy industry by providing:

Single Integration

Access comprehensive pricing data through one API instead of connecting to dozens of providers, significantly reducing development time.

Standardized Format

Consistent data structure across all markets and providers, making it easy to expand to new regions.

Location Intelligence

Automatically determine applicable tariffs based on geographic location without needing to understand complex market structures.

Complete Price Picture

All price components in one place - grid costs, energy costs, taxes, and fees - giving you the full electricity cost.
New to the Prezio API? Head to our Quickstart Guide to make your first API call, or try out Environment Setup to understand sandbox testing.