/energystar/product_types
curl --request POST \
--url https://api.anysite.io/api/energystar/product_types \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 30,
"timeout": 300
}
'import requests
url = "https://api.anysite.io/api/energystar/product_types"
payload = {
"count": 30,
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({count: 30, timeout: 300})
};
fetch('https://api.anysite.io/api/energystar/product_types', 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.anysite.io/api/energystar/product_types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 30,
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/energystar/product_types"
payload := strings.NewReader("{\n \"count\": 30,\n \"timeout\": 300\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/energystar/product_types")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 30,\n \"timeout\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/energystar/product_types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 30,\n \"timeout\": 300\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"alias": "<string>",
"name": "<string>",
"@type": "EnergystarProductType",
"model_count": 123,
"columns": [],
"product_types": [],
"most_efficient_alias": "<string>",
"most_efficient_model_count": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/energystar
/energystar/product_types
List the ENERGY STAR certification categories. Each is a separate dataset with its own set of measured columns, and every other ENERGY STAR endpoint is scoped to one of them. Returns the category’s dataset id, the alias the other endpoints take, its display name, how many certified models it currently holds, the full list of column names it publishes, the sub-types found within it, and the alias and current size of its Most Efficient list where one exists.
Price: 1 credit
⚠️ Common errors: 412: No category matched.
POST
/
api
/
energystar
/
product_types
/energystar/product_types
curl --request POST \
--url https://api.anysite.io/api/energystar/product_types \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 30,
"timeout": 300
}
'import requests
url = "https://api.anysite.io/api/energystar/product_types"
payload = {
"count": 30,
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({count: 30, timeout: 300})
};
fetch('https://api.anysite.io/api/energystar/product_types', 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.anysite.io/api/energystar/product_types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 30,
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/energystar/product_types"
payload := strings.NewReader("{\n \"count\": 30,\n \"timeout\": 300\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/energystar/product_types")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 30,\n \"timeout\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/energystar/product_types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 30,\n \"timeout\": 300\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"alias": "<string>",
"name": "<string>",
"@type": "EnergystarProductType",
"model_count": 123,
"columns": [],
"product_types": [],
"most_efficient_alias": "<string>",
"most_efficient_model_count": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Required range:
1 <= x <= 60Required range:
20 <= x <= 1500Available options:
boilers, ceiling_fans, commercial_boilers, commercial_clothes_washers, commercial_coffee_brewers, commercial_dishwashers, commercial_electric_cooktops, commercial_fryers, commercial_griddles, commercial_hot_food_holding_cabinet, commercial_ice_machines, commercial_ovens, commercial_refrigerators_and_freezers, commercial_steam_cookers, commercial_water_heaters, computers_v9_0, data_center_storage_block_i_o, data_center_storage_file_i_o, dehumidifiers, displays, electric_vehicle_supply_equipment_ac_output, electric_vehicle_supply_equipment_dc_output, enterprise_servers, furnaces, geothermal_heat_pumps, heat_pumps, imaging_equipment, laboratory_grade_refrigerators_and_freezers, large_network_equipment, light_commercial_hvac, light_fixtures_downlights, medical_imaging_equipment, pool_pumps, residential_clothes_dryers, residential_clothes_washers, residential_dishwashers, residential_electric_cooking_products, residential_freezers, residential_refrigerators, room_air_cleaners_v3_0, room_air_conditioners, smart_thermostats, storm_windows, telephones, televisions, uninterruptible_power_supplies, vending_machines, ventilating_fans, water_coolers, water_heaters