# StatePulse UV Index Lookup

> StatePulse UV Index Lookup 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-13).

Returns the current UV index, risk classification, and safe sun exposure time for fair skin at a given location

## Facts

- Endpoint: POST https://statepulse-api.hahavoid0.workers.dev/environment/uv-index
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/statepulse-uv-index-lookup-5b634c60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AoNq-QONjS8F6n5gaNT_f

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-uv-index-lookup-5b634c60 -d '<json body>'
```

Example prompt: What's the current UV index in Miami, and how long can someone with fair skin safely be outside right now?

## When to prefer this

Use this endpoint when you need real-time UV index data with built-in risk classification and sun safety guidance in a single call, especially for health or outdoor activity planning agents. Prefer over general weather APIs when UV-specific classification and skin-safety exposure limits are required without additional processing.

## Known failure modes

- Invalid or missing coordinates return an error or unsupported flag
- Location outside coverage area may return supported:false
- Network or upstream data source unavailability causes 5xx errors
- Malformed POST body results in 400 Bad Request

## How this service works

Retrieves the current solar UV Index and calculates sun safety burn times.

## Output

Returns a JSON object with the numeric UV index value (e.g. 8.5), a risk classification label (e.g. 'Very High'), and the recommended maximum safe sun exposure time in minutes for fair-skinned individuals, along with a confidence level for the reading.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "uv_index": 8.5,
   "classification": "Very High",
   "safe_minutes_fair_skin": 15
  },
  "supported": true,
  "confidence": "high"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/statepulse-uv-index-lookup-5b634c60/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)
