81trust / 100

Energy Electricity

by energy-electricity in Other

x402 APIPassing, checked 50 min ago

US electricity data from the EIA grid monitor and retail survey: generation mix by fuel type with percentage breakdown (latest hour), demand by region, and average retail price by state/sector (monthly).

GET https://api.agentstools.dev/energy/electricity

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
22 ms typical, 22 ms slowest 5%
Last check
50 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.agentstools.dev/energy/electricity?metric=generation_mix&region=texas"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.agentstools.dev%2Fenergy%2Felectricity
const res = await pay("https://api.agentstools.dev/energy/electricity?metric=generation_mix&region=texas");
console.log(await res.json());

Example input

{
  "metric": "generation_mix",
  "region": "texas"
}

Example output

{
  "as_of": "2026-07-03T03",
  "metric": "generation_mix",
  "mix": [
    {
      "fueltype": "NG",
      "pct": 44.8,
      "value_mwh": 286795
    }
  ],
  "region": "texas",
  "renewable_share_pct": 32.4,
  "total_generation_mwh": 640000,
  "unit": "MWh"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
50 min agoPassed40222 ms$0.008
6 h agoPassed40227 ms$0.008