# nsgoods Plug-in Solar Legality — All 50 States

> nsgoods Plug-in Solar Legality — All 50 States is a paid API for AI agents from solar.nsgoods.org, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Returns a signed, comprehensive dataset of plug-in solar legality status for all 50 US states in a single call

## Facts

- Endpoint: GET https://solar.nsgoods.org/solar-legality/all?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nsgoods-plug-in-solar-legality-all-50-states-1589fcd1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PlPNL_LHe2us8rx0gxlWn

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nsgoods-plug-in-solar-legality-all-50-states-1589fcd1
```

Example prompt: Can you pull the full signed plug-in solar legality dataset for all 50 US states so I can see which states permit or restrict residential plug-in solar systems?

## When to prefer this

Choose this endpoint when you need plug-in solar legality data for all 50 US states in a single request, especially when you need the cryptographic signature for authenticity verification. Prefer the sibling single-state endpoint if you only need one state to reduce cost. Use this over generic legal databases when you specifically need plug-in (grid-tied or balcony-style) solar rules rather than general solar or utility regulations.

## Known failure modes

- 503 Service Unavailable — returned when the signing service is unavailable; user is not charged for this error
- Network timeout if the signing process takes too long
- Unexpected schema changes in the state objects if the dataset is updated

## How this service works

Signed full 50-state plug-in solar legality dataset. Free preview: GET /solar-legality/preview If the signer is unavailable it returns 503; you are never charged for an error.

## Output

A signed JSON dataset containing records for all 50 US states, each describing the legality status of plug-in solar systems. Includes a count of states, an array of per-state objects with legality details, and a license metadata object. The dataset is cryptographically signed to verify authenticity. Returns HTTP 503 if the signing service is unavailable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "count",
      "states"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "states": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "license": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nsgoods-plug-in-solar-legality-all-50-states-1589fcd1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from solar.nsgoods.org](https://www.zero.xyz/host/solar.nsgoods.org/llms.txt)
