N

Nsgoods · Solar Legality

by Nsgoods

GETBase

$0.005

per call · USD Coin on Base

Signed plug-in solar legality record for one US state

Endpoint

GET https://solar.nsgoods.org/solar-legality

4

Calls / 30d

3

Unique payers / 30d

Sep 2

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://solar.nsgoods.org/solar-legality", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://solar.nsgoods.org/solar-legality?state=california" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "legal_status": "legal_signed",
  "license": {
    "name": "CC BY 4.0"
  },
  "query": "colorado",
  "record": {
    "avg_rate_cents": 15,
    "legislation": {
      "bill": "HB26-1007",
      "max_watts": 1920
    },
    "main_utilities": [
      "Xcel Energy"
    ],
    "slug": "colorado",
    "state": "Colorado",
    "status_badge_verbatim": "Legal — signed (eff. Jan 1, 2027)"
  }
}

Payment details

Pay to0xc87a06dee4c0e85912296002617120bbfd5ef990
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Nsgoods & similar services