59trust / 100

Solar Sizing

by Home Energy Calculators in Other

x402 APIPassing, checked 4 h ago

Size a rooftop solar system from annual kWh and peak sun hours: kW, panel count, yearly output, savings and simple payback.

GET
https://home-energy-calc.x402tookit.com/solar-sizing
Price
$0.02
per call in USDC
Uptime
56.3%
last 30 days
Response time
528 ms
780 ms slowest 5%
Last check
Passed
4 h ago, next in 2 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://home-energy-calc.x402tookit.com/solar-sizing

Each call costs $0.02 in USDC on Polygon, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://home-energy-calc.x402tookit.com/solar-sizing?annualKwh=10000&costPerWatt=3&panelWatts=400&peakSunHours=4.5&pricePerKwh=0.16

Parameters

ParameterTypeRequiredDescription
annualKwhnumberYesElectricity to offset per year, kWh (100 to 1,000,000)
costPerWattnumberNoInstalled cost per watt before incentives, for payback
incentivePercentnumberNoTax credit or rebate as % of cost, 0 to 100 (default 0)
offsetPercentnumberNoShare of use to cover, 10 to 150 (default 100)
panelWattsnumberNoWatts per panel, 100 to 800 (default 400)
peakSunHoursnumberYesAverage peak sun hours per day at your site, 1 to 8 (most US sites 3.5 to 6)
pricePerKwhnumberNoElectricity price per kWh, for savings
systemLossPercentnumberNoAll system losses, 0 to 50 (default 14, the NREL PVWatts default)

Example response

The provider's example. We can't check it without paying.

Example response, 32 lines
{
  "annualKwhToOffset": 10000,
  "asOf": "2026-10-11T14:31:36.963Z",
  "coveragePercent": 101.7,
  "degraded": false,
  "disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.",
  "estimatedYearlyKwh": 10170,
  "installedKwDcWithWholePanels": 7.2,
  "notChecked": [
    "roof shape, tilt, azimuth and shading, which can cut output by 10 to 40% (peak sun hours must already reflect your tilt and location)",
    "seasonal and monthly production against your use, battery storage and net-metering rules",
    "…2 more"
  ],
  "panelCount": 18,
  "panelWatts": 400,
  "peakSunHours": 4.5,
  "reasons": [
    "kW = annual kWh / (peak sun hours x 365 x (1 - losses)); output = kW x peak sun hours x 365 x (1 - losses).",
    "Savings count only the energy you use: output beyond your use is valued at zero here (export credits vary by utility).",
    "…1 more"
  ],
  "roofAreaSquareFeetApprox": 324,
  "simplePaybackYears": 13.5,
  "source": "computed locally",
  "summary": "Offsetting 10000 kWh a year at 4.5 peak sun hours and 14% losses needs about 7.08 kW: 18 panels of 400 W (7.2 kW), producing about 10170 kWh a year. Savings about 1600 a year at 0.16 per kWh. Cost 216…",
  "systemCostGross": 21600,
  "systemCostNet": 21600,
  "systemKwDc": 7.079,
  "systemLossPercent": 14,
  "verdict": "COMPUTED",
  "yearlySavings": 1600
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://home-energy-calc.x402tookit.com/solar-sizing?annualKwh=10000&costPerWatt=3&panelWatts=400&peakSunHours=4.5&pricePerKwh=0.16'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://home-energy-calc.x402tookit.com/solar-sizing?annualKwh=10000&costPerWatt=3&panelWatts=400&peakSunHours=4.5&pricePerKwh=0.16' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhome-energy-calc.x402tookit.com%2Fsolar-sizing
const res = await pay("https://home-energy-calc.x402tookit.com/solar-sizing?annualKwh=10000&costPerWatt=3&panelWatts=400&peakSunHours=4.5&pricePerKwh=0.16");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://home-energy-calc.x402tookit.com/solar-sizing?annualKwh=10000&costPerWatt=3&panelWatts=400&peakSunHours=4.5&pricePerKwh=0.16")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402548 ms$0.02
17 h agoPassed402780 ms$0.02
46 h agoExpected HTTP 402, got 530530140 ms-
3 days agoExpected HTTP 402, got 53053099 ms-
4 days agoExpected HTTP 402, got 53053094 ms-
Show 10 older checks
5 days agoExpected HTTP 402, got 530530103 ms-
5 days agoExpected HTTP 402, got 530530120 ms-
5 days agoExpected HTTP 402, got 530530177 ms-
5 days agoExpected HTTP 402, got 530530166 ms-
5 days agoPassed402512 ms$0.02
5 days agoPassed402528 ms$0.02
6 days agoPassed402505 ms$0.02
6 days agoPassed402606 ms$0.02
6 days agoPassed402546 ms$0.02
6 days agoPassed402481 ms$0.02