# WorldData402 Sun Position & Times

> WorldData402 Sun Position & Times is a paid API for AI agents from worlddata402.worlddata402.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Returns sunrise, sunset, solar noon, and sun position data for a given latitude/longitude and optional date.

## Facts

- Endpoint: GET https://worlddata402.worlddata402.workers.dev/v1/sun?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worlddata402-sun-position-times-e524db6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e7cNe-tiEdaTJsm1qnLb7

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 worlddata402-sun-position-times-e524db6c
```

Example prompt: What time does the sun rise and set tomorrow at latitude 48.8566, longitude 2.3522 — I need the exact solar schedule for Paris.

## When to prefer this

Choose this endpoint when you need precise, pay-per-call solar event calculations (sunrise, sunset, solar noon, twilight) for any global coordinate without requiring a subscription. Ideal for agents that need occasional sun timing lookups billed micropayment-style via USDC on Base, without managing API keys or monthly plans.

## Known failure modes

- Missing required lat or lon parameters returns a 400/422 error
- Coordinates out of valid range (lat > 90, lon > 180) may return an error or unexpected results
- Invalid date format may cause a parsing error
- Payment failure over x402 returns 402 Payment Required
- Polar regions may return null for sunrise/sunset during midnight sun or polar night periods

## How this service works

Global market, government and reference data for AI agents. Pay-per-call over x402 (USDC on Base mainnet).

## Output

Returns computed solar event times (sunrise, sunset, solar noon, civil/nautical/astronomical twilight) and sun position metrics (altitude, azimuth) for the specified coordinates and date, expressed in UTC and/or local time depending on the response format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "lat",
  "lon"
 ],
 "properties": {
  "lat": {
   "type": "number"
  },
  "lon": {
   "type": "number"
  },
  "date": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-sun-position-times-e524db6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worlddata402.worlddata402.workers.dev](https://www.zero.xyz/host/worlddata402.worlddata402.workers.dev/llms.txt)
