Solar Inverter
Get Solar Inverter state
Retrieve the current state of a solar inverter device including power production, status, and energy totals
GET
/
solar-inverter
/
{deviceId}
curl
curl --request GET \
--url 'https://api.amps.ai/solar-inverter/device_abc123' \
--header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'const response = await fetch('https://api.amps.ai/solar-inverter/device_abc123', {
method: 'GET',
headers: {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
url = 'https://api.amps.ai/solar-inverter/device_abc123'
headers = {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
}
response = requests.get(url, headers=headers)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amps.ai/solar-inverter/{deviceId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.amps.ai/solar-inverter/{deviceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.amps.ai/solar-inverter/{deviceId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amps.ai/solar-inverter/{deviceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "device_inverter_001",
"vendor": "example_vendor_a",
"sync": {
"available": true,
"lastPulledAt": "2026-05-07T10:23:45.000Z"
},
"metadata": {
"model": "Hybrid 5kW",
"source": "live"
},
"state": {
"status": "producing",
"currentPower": 3.8,
"producing": true,
"energyTotal": 11540.6
}
},
"meta": {
"requestId": "req_8a2Bf3kP",
"environment": "sandbox",
"timestamp": "2026-06-02T12:00:00.000Z",
"latencyMs": 12
}
}Authorizations
Path Parameters
The unique identifier for the solar inverter device
Example:
"device_abc123"
Query Parameters
Use expedite cache with 1 minute TTL instead of normal 15 minute TTL
Example:
false
Response
Solar Inverter state retrieved successfully
Always true for success responses.
Show child attributes
Show child attributes
Metadata attached to every response: the request identifier, the serving environment, the build timestamp, and the server-side latency.
Show child attributes
Show child attributes
⌘I
curl
curl --request GET \
--url 'https://api.amps.ai/solar-inverter/device_abc123' \
--header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'const response = await fetch('https://api.amps.ai/solar-inverter/device_abc123', {
method: 'GET',
headers: {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
url = 'https://api.amps.ai/solar-inverter/device_abc123'
headers = {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
}
response = requests.get(url, headers=headers)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amps.ai/solar-inverter/{deviceId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.amps.ai/solar-inverter/{deviceId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.amps.ai/solar-inverter/{deviceId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amps.ai/solar-inverter/{deviceId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "device_inverter_001",
"vendor": "example_vendor_a",
"sync": {
"available": true,
"lastPulledAt": "2026-05-07T10:23:45.000Z"
},
"metadata": {
"model": "Hybrid 5kW",
"source": "live"
},
"state": {
"status": "producing",
"currentPower": 3.8,
"producing": true,
"energyTotal": 11540.6
}
},
"meta": {
"requestId": "req_8a2Bf3kP",
"environment": "sandbox",
"timestamp": "2026-06-02T12:00:00.000Z",
"latencyMs": 12
}
}