# StatePulse Lightning Density

> StatePulse Lightning Density is a paid API for AI agents from statepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns a lightning strike hazard assessment and lightning potential index for a given location or context

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/environment/lightning-density
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-lightning-density-722b31e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wPkoPwq7z3NyVpb8wJpWF

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 statepulse-lightning-density-722b31e7 -d '<json body>'
```

Example prompt: What's the current lightning strike hazard and lightning potential index for my area — I need to know if it's safe to be outside right now?

## When to prefer this

Use this endpoint when an agent needs a quick, pay-per-call lightning hazard assessment without managing API keys, especially in safety-critical or outdoor planning contexts where real-time environmental risk scoring is needed.

## Known failure modes

- Unsupported location returns supported:false with limited data
- Low confidence result when atmospheric data is sparse
- Missing or invalid location parameters cause request rejection
- Service unavailability due to upstream telemetry data gaps

## How this service works

Queries the hourly lightning potential indices for coordinates.

## Output

Returns a JSON object with strike_hazard (e.g. 'medium'), lightning_potential_index (numeric score, e.g. 12.5), a supported flag, and a confidence level (e.g. 'medium') indicating how reliable the assessment is.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "strike_hazard": "medium",
   "lightning_potential_index": 12.5
  },
  "supported": true,
  "confidence": "medium"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-lightning-density-722b31e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from statepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/statepulse-api.hahavoid0.workers.dev/llms.txt)
