Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url https://api.ionelectricity.com/v2/hanimport requests
url = "https://api.ionelectricity.com/v2/han"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionelectricity.com/v2/han', 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.ionelectricity.com/v2/han",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionelectricity.com/v2/han"
req, _ := http.NewRequest("GET", url, nil)
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.ionelectricity.com/v2/han")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionelectricity.com/v2/han")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"locale": "<string>",
"codename": "<string>",
"isInitializing": true,
"bleName": "<string>",
"pin": "<string>",
"macAddress": "<string>",
"latitude": 123,
"longitude": 123,
"houseName": "<string>",
"houseImageUrl": "<string>",
"version": 123,
"meter": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"isTriphase": true,
"powerMax": 123,
"version": 123,
"_deleted": true
},
"instant": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"latestRecordDate": {},
"latestRecords": {},
"latestRecordsExport": {},
"powerPhase1": 123,
"powerPhase2": 123,
"powerPhase3": 123,
"currentPhase1": 123,
"currentPhase2": 123,
"currentPhase3": 123,
"voltagePhase1": 123,
"voltagePhase2": 123,
"voltagePhase3": 123,
"peakPower": 123,
"peakCurrent": 123,
"peakVoltage": 123,
"hasPowerCut": true,
"activeCyclePeriod": 123,
"predictedPowerCutTime": {},
"version": 123,
"_deleted": true
},
"tariff": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"tariffPrices": {},
"activeTariffSchedule": 123,
"activeCycleSchedule": 123,
"bestTariffSchedule": 123,
"bestCycleSchedule": 123,
"isGreen": true,
"version": 123,
"_deleted": true
},
"consumption": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"consumptionData": {},
"consumptionByCyclePeriod": {},
"averageConsumption": {},
"targetConsumptionMonth": 123,
"annualConsumptionDailyCycleSchedule": {},
"annualConsumptionWeeklyCycleSchedule": {},
"carbonEmissions24h": 123,
"version": 123,
"_deleted": true
},
"cost": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"costData": {},
"averageCost": {},
"version": 123,
"_deleted": true
},
"simulation": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"costMonth": {},
"version": 123,
"_deleted": true
},
"_deleted": true
}
]curl --request GET \
--url https://api.ionelectricity.com/v2/hanimport requests
url = "https://api.ionelectricity.com/v2/han"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionelectricity.com/v2/han', 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.ionelectricity.com/v2/han",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionelectricity.com/v2/han"
req, _ := http.NewRequest("GET", url, nil)
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.ionelectricity.com/v2/han")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionelectricity.com/v2/han")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"locale": "<string>",
"codename": "<string>",
"isInitializing": true,
"bleName": "<string>",
"pin": "<string>",
"macAddress": "<string>",
"latitude": 123,
"longitude": 123,
"houseName": "<string>",
"houseImageUrl": "<string>",
"version": 123,
"meter": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"isTriphase": true,
"powerMax": 123,
"version": 123,
"_deleted": true
},
"instant": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"latestRecordDate": {},
"latestRecords": {},
"latestRecordsExport": {},
"powerPhase1": 123,
"powerPhase2": 123,
"powerPhase3": 123,
"currentPhase1": 123,
"currentPhase2": 123,
"currentPhase3": 123,
"voltagePhase1": 123,
"voltagePhase2": 123,
"voltagePhase3": 123,
"peakPower": 123,
"peakCurrent": 123,
"peakVoltage": 123,
"hasPowerCut": true,
"activeCyclePeriod": 123,
"predictedPowerCutTime": {},
"version": 123,
"_deleted": true
},
"tariff": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"tariffPrices": {},
"activeTariffSchedule": 123,
"activeCycleSchedule": 123,
"bestTariffSchedule": 123,
"bestCycleSchedule": 123,
"isGreen": true,
"version": 123,
"_deleted": true
},
"consumption": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"consumptionData": {},
"consumptionByCyclePeriod": {},
"averageConsumption": {},
"targetConsumptionMonth": 123,
"annualConsumptionDailyCycleSchedule": {},
"annualConsumptionWeeklyCycleSchedule": {},
"carbonEmissions24h": 123,
"version": 123,
"_deleted": true
},
"cost": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"costData": {},
"averageCost": {},
"version": 123,
"_deleted": true
},
"simulation": {
"id": "<string>",
"createdAt": {},
"updatedAt": {},
"_version": 123,
"_lastChangedAt": {},
"costMonth": {},
"version": 123,
"_deleted": true
},
"_deleted": true
}
]Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?