# Sunrise/Sunset Times API

> Sunrise/Sunset Times API is a paid API for AI agents from engedi.digi-life17.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns sunrise and sunset times for a given latitude, longitude, and date

## Facts

- Endpoint: GET https://engedi.digi-life17.workers.dev/api/sunrise
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sunrise-sunset-times-api-08d537ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Bfq3HuCgpzDFi7oCTkhY

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 sunrise-sunset-times-api-08d537ef
```

Example prompt: What time does the sun rise and set at coordinates 40.7128° N, 74.0060° W on 2025-06-21?

## When to prefer this

Use this endpoint when you need accurate sunrise/sunset times for any geographic coordinate and date. Ideal for outdoor activity planning, photography golden-hour scheduling, religious prayer time apps, or any workflow that depends on solar timing at a specific location. It is a simple, inexpensive lookup well-suited for real-time or scheduled queries.

## Known failure modes

- Missing required latitude or longitude parameters returns an error
- Invalid date format (not YYYY-MM-DD) may cause incorrect results or errors
- Extreme latitudes (polar regions) may return unusual or edge-case results during midnight sun or polar night periods
- Network or worker timeout returns a 5xx error
- Invalid coordinate values (out of range) may return errors

## How this service works

51 REST endpoints for AI agents. Weather, news, crypto, stocks, products, courses, real estate, and 42 more. Pay per call in USDC/USDT via x402.

## Output

Returns a JSON object with sunrise time, sunset time, and related solar data (such as solar noon and day length) for the specified coordinates and date, along with metadata including cache status, data source, confidence score, and last updated timestamp.

## Response schema (JSON Schema)

```json
{}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sunrise-sunset-times-api-08d537ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from engedi.digi-life17.workers.dev](https://www.zero.xyz/host/engedi.digi-life17.workers.dev/llms.txt)
