61trust / 100

Household Load

by Home Energy Calculators in Other

x402 APIPassing, checked 3 h ago

Total a list of appliances (watts, hours a day, quantity) into kWh and cost per day, month and year, with each one's share.

GET
https://home-energy-calc.x402tookit.com/household-load
Price
$0.02
per call in USDC
Uptime
64.3%
last 30 days
Response time
543 ms
1.1 s slowest 5%
Last check
Passed
3 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/household-load

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/household-load?appliances=refrigerator%3A150%3A8%3B+led+bulb%3A9%3A5%3A12%3B+television%3A100%3A4%3B+laptop%3A60%3A6&pricePerKwh=0.16&standbyWatts=30

Parameters

ParameterTypeRequiredDescription
appliancesstringYesLines name:watts:hoursPerDay[:quantity[:daysPerYear]] separated by semicolons, for example 'fridge:150:8; led bulb:9:5:12; tv:100:4'
pricePerKwhnumberYesElectricity price per kWh, above 0 (any currency)
standbyWattsnumberNoAlways-on standby load in watts for the whole home, 0 to 2000 (default 0)

Example response

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

Example response, 47 lines
{
  "appliances": [
    {
      "costPerYear": 70.08,
      "daysPerYear": 365,
      "hoursPerDay": 8,
      "kwhPerMonth": 36.5,
      "kwhPerYear": 438,
      "name": "refrigerator",
      "quantity": 1,
      "sharePercent": 37.3,
      "watts": 150
    },
    {
      "costPerYear": 42.05,
      "daysPerYear": 365,
      "hoursPerDay": 24,
      "kwhPerMonth": 21.9,
      "kwhPerYear": 262.8,
      "name": "standby (always on)",
      "quantity": 1,
      "sharePercent": 22.4,
      "watts": 30
    }
  ],
  "asOf": "2026-10-11T14:31:36.172Z",
  "averageWatts": 134.2,
  "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.",
  "notChecked": [
    "real power draw: nameplate watts overstate what most devices use, and motors, compressors and heaters cycle (enter an average hours-on figure, such as a fridge's compressor run time of about a third o…",
    "time-of-use or tiered rates and demand charges (see /bill-estimate)",
    "…2 more"
  ],
  "reasons": [
    "kWh = watts x hours per day x quantity x days per year / 1000; cost = kWh x price.",
    "Appliances are listed largest first."
  ],
  "source": "computed locally",
  "summary": "Total 1175.3 kWh a year (97.9 a month, 3.22 a day), costing 188.05 a year at 0.16 per kWh. Largest: refrigerator (37.3%).",
  "totalCostPerMonth": 15.67,
  "totalCostPerYear": 188.05,
  "totalKwhPerDay": 3.22,
  "totalKwhPerMonth": 97.94,
  "totalKwhPerYear": 1175.3,
  "verdict": "COMPUTED"
}

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/household-load?appliances=refrigerator%3A150%3A8%3B+led+bulb%3A9%3A5%3A12%3B+television%3A100%3A4%3B+laptop%3A60%3A6&pricePerKwh=0.16&standbyWatts=30'

# 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/household-load?appliances=refrigerator%3A150%3A8%3B+led+bulb%3A9%3A5%3A12%3B+television%3A100%3A4%3B+laptop%3A60%3A6&pricePerKwh=0.16&standbyWatts=30' \
  | 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%2Fhousehold-load
const res = await pay("https://home-energy-calc.x402tookit.com/household-load?appliances=refrigerator%3A150%3A8%3B+led+bulb%3A9%3A5%3A12%3B+television%3A100%3A4%3B+laptop%3A60%3A6&pricePerKwh=0.16&standbyWatts=30");
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/household-load?appliances=refrigerator%3A150%3A8%3B+led+bulb%3A9%3A5%3A12%3B+television%3A100%3A4%3B+laptop%3A60%3A6&pricePerKwh=0.16&standbyWatts=30")
    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
3 h agoPassed402610 ms$0.02
17 h agoPassed402539 ms$0.02
2 days agoExpected HTTP 402, got 53053085 ms-
3 days agoExpected HTTP 402, got 530530109 ms-
5 days agoExpected HTTP 402, got 53053088 ms-
Show 9 older checks
5 days agoExpected HTTP 402, got 530530200 ms-
5 days agoExpected HTTP 402, got 530530195 ms-
5 days agoPassed402590 ms$0.02
5 days agoPassed402510 ms$0.02
6 days agoPassed402544 ms$0.02
6 days agoPassed402543 ms$0.02
6 days agoPassed4021.1 s$0.02
6 days agoPassed402192 ms$0.02
7 days agoPassed402504 ms$0.02