Call the tariff-rates API endpoint with a location_id to retrieve energy cost information (Tariff Rates) for any specified time period.

Response data format

FlatPeak returns tariff rates as a time-series dataset, similar to a stock market feed.

While this format may appear less efficient for flat-rate tariffs, it offers a universal integration format that future-proofs your implementation against changes in tariff structures.

Units, precision and rounding

FlatPeak uses major currency units across all API endpoints, always returning tariff data with the highest available precision—currently up to 4 or 5 decimal places (e.g., EUR 0.12345).

Implement rounding in your user interfaces. You can use this example as a reference.

How often is data updated

Each response from the Tariff Rates API includes the next_update field, indicating when the tariff data may be refreshed from its source next. This could align with events like market rate publications or scheduled updates from the customer’s energy provider account.

To ensure accuracy, we recommend using the next_update timestamp to schedule your system’s rate to refresh dynamically. If dynamic scheduling isn’t feasible, you can assume that rates for the following day will typically be updated by 23:00 local time the day before.