# Solar Legality Record by US State

> Solar Legality Record by US State is a paid API for AI agents from solar.nsgoods.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns a signed plug-in solar legality record for a specified US state, including legal status and relevant regulatory details

## Facts

- Endpoint: GET https://solar.nsgoods.org/solar-legality
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solar-legality-record-by-us-state-066901e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YWwd5r8JMqT2XTXZl1FQw

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 solar-legality-record-by-us-state-066901e5
```

Example prompt: Can you look up the plug-in solar legality record for California and tell me whether it's legal to install one there?

## When to prefer this

Use this endpoint when you need a structured, signed authoritative record of plug-in solar legality for a specific US state, especially when you need to verify compliance or regulatory status programmatically. Prefer this over general web search when you need a machine-readable, signed response suitable for automated decision-making or compliance workflows.

## Known failure modes

- Missing 'state' query parameter returns a validation error
- Unrecognized or misspelled state slug returns a not-found or error response
- Non-US territories or invalid strings may return no record
- Service unavailable if the backend record store is down
- Payment failure (402) if x402 payment header is missing or malformed

## How this service works

Signed plug-in solar legality record for one US state. Free preview: GET /solar-legality/preview

## Output

A signed JSON record containing the queried state, the legal status of plug-in solar installations (e.g. legal, restricted, illegal), a detailed regulatory record object, and optionally license or permit information relevant to that state.

## 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",
     "required": [
      "state"
     ],
     "properties": {
      "state": {
       "type": "string",
       "description": "US state slug or name, e.g. california."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "record",
      "legal_status"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "record": {
       "type": "object"
      },
      "license": {
       "type": "object"
      },
      "legal_status": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solar-legality-record-by-us-state-066901e5/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)
