Get telemetry history
curl --request GET \
--url https://api.kapa.energy/bat/v1/{id}/telemetry \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kapa.energy/bat/v1/{id}/telemetry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kapa.energy/bat/v1/{id}/telemetry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kapa.energy/bat/v1/{id}/telemetry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kapa.energy/bat/v1/{id}/telemetry"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kapa.energy/bat/v1/{id}/telemetry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kapa.energy/bat/v1/{id}/telemetry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"battery_id": "bat_1",
"points": [
{
"measured_at": "2026-11-12T18:00:12Z",
"received_at": "2026-11-12T18:02:41Z",
"stored_energy_wh": 8400,
"battery_power_w": 3200,
"grid_power_w": 1900
},
{
"measured_at": "2026-11-12T18:05:09Z",
"received_at": "2026-11-12T18:07:38Z",
"stored_energy_wh": 8133,
"battery_power_w": 3200,
"grid_power_w": 1850
},
{
"measured_at": "2026-11-12T18:10:14Z",
"received_at": "2026-11-12T18:12:44Z",
"stored_energy_wh": 7867,
"battery_power_w": 3150,
"grid_power_w": null
}
],
"next_cursor": "c_eyJ0IjoiMjAyNi0xMS0xMlQxODoxMDoxNFoifQ"
}{
"type": "https://api.kapa.energy/problems/invalid-time-window",
"title": "Invalid time window",
"status": 400,
"code": "invalid_time_window",
"detail": "end must be after start.",
"invalid_params": [
{
"name": "end",
"reason": "must be after start"
}
]
}{
"type": "https://api.kapa.energy/problems/unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized",
"detail": "The access token has expired."
}{
"type": "https://api.kapa.energy/problems/battery-not-found",
"title": "Battery not found",
"status": 404,
"code": "battery_not_found",
"detail": "No battery with id bat_9 is accessible to this client."
}Telemetry
Get telemetry history
Measurements taken during [start, end), in ascending measured_at order.
Points are returned as reported by the manufacturer, without interpolation, so
their spacing can be irregular and can differ between batteries.
GET
/
bat
/
v1
/
{id}
/
telemetry
Get telemetry history
curl --request GET \
--url https://api.kapa.energy/bat/v1/{id}/telemetry \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kapa.energy/bat/v1/{id}/telemetry"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kapa.energy/bat/v1/{id}/telemetry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kapa.energy/bat/v1/{id}/telemetry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kapa.energy/bat/v1/{id}/telemetry"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kapa.energy/bat/v1/{id}/telemetry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kapa.energy/bat/v1/{id}/telemetry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"battery_id": "bat_1",
"points": [
{
"measured_at": "2026-11-12T18:00:12Z",
"received_at": "2026-11-12T18:02:41Z",
"stored_energy_wh": 8400,
"battery_power_w": 3200,
"grid_power_w": 1900
},
{
"measured_at": "2026-11-12T18:05:09Z",
"received_at": "2026-11-12T18:07:38Z",
"stored_energy_wh": 8133,
"battery_power_w": 3200,
"grid_power_w": 1850
},
{
"measured_at": "2026-11-12T18:10:14Z",
"received_at": "2026-11-12T18:12:44Z",
"stored_energy_wh": 7867,
"battery_power_w": 3150,
"grid_power_w": null
}
],
"next_cursor": "c_eyJ0IjoiMjAyNi0xMS0xMlQxODoxMDoxNFoifQ"
}{
"type": "https://api.kapa.energy/problems/invalid-time-window",
"title": "Invalid time window",
"status": 400,
"code": "invalid_time_window",
"detail": "end must be after start.",
"invalid_params": [
{
"name": "end",
"reason": "must be after start"
}
]
}{
"type": "https://api.kapa.energy/problems/unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized",
"detail": "The access token has expired."
}{
"type": "https://api.kapa.energy/problems/battery-not-found",
"title": "Battery not found",
"status": 404,
"code": "battery_not_found",
"detail": "No battery with id bat_9 is accessible to this client."
}Authorizations
OAuth 2.0 client credentials. Obtain a token from POST /token.
Path Parameters
Battery identifier.
Query Parameters
Only points measured at or after this time. Defaults to end minus 24 hours.
RFC 3339 timestamp in UTC, with a Z suffix.
Pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$Example:
"2026-11-12T18:00:00Z"
Only points measured before this time. Defaults to now.
RFC 3339 timestamp in UTC, with a Z suffix.
Pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,9})?Z$Example:
"2026-11-12T18:00:00Z"
Opaque cursor from next_cursor of the previous page. Keep the other parameters unchanged.
Maximum number of points per page.
Required range:
1 <= x <= 10000