---
title: "Time series data for all sites"
method: GET
path: "/v1/sites/timeSeries"
tags: ["Energy Consumption"]
---

# Time series data for all sites

`GET /v1/sites/timeSeries`

Retrieves time series energy data across all sites

## Query parameters

- `granularity` 'hour' | 'day' | 'month' | 'year'
- `from` string, date-time
- `to` string, date-time
- `lookback` string

## Response `200`

Time series data retrieved successfully

- TimeSeries[]
  - `siteId` string — Site identifier
  - `granularity` string — Data granularity
  - `data` object[]
    - `timestamp` string, date-time
    - `value` number
    - `unit` string

## Other responses

- `4XX` — Client error response

## Changes

- **2025-12-02** `341d0d8f51f9` — 1 breaking, 5 info
  - the `items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - api tag `Energy Consumption` added
  - api tag `Consumption` removed
  - added the optional property `items/data` to the response with the `200` status
  - …2 more
- **2025-11-17** `1ecbbc9bbafb` — 1 breaking, 3 warning, 2 info
  - the `items/` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the optional property `items/data` from the response with the `200` status
  - removed the optional property `items/granularity` from the response with the `200` status
  - removed the optional property `items/siteId` from the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/voltview/apis/voltview-api/changes/v1/sites/timeSeries/get.md)

---

[API](https://skmtc.dev/voltview/apis/voltview-api.md) · [All operations](https://skmtc.dev/voltview/apis/voltview-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voltview/voltview-api/revisions/d90c739b55df/schema)
