Compute sunrise, sunset, solar noon, and civil/nautical/astronomical twilight times for a coordinate + date.
Compute sunrise, sunset, solar noon, and civil/nautical/astronomical twilight times for a coordinate + date. Query: lat (-90..90), lon (-180..180), date (YYYY-MM-DD). All times returned as ISO 8601 UTC. At high latitudes near solstices an event may not occur (polar day/night) — those fields return null and a note is included. dayLengthMinutes is the sunrise→sunset interval.
| Method | Endpoint | Price | Description |
|---|---|---|---|
GET | /v1/marketplace/api/sunrise-compute | $0.00115 | Invoke Sunrise Compute (General) and return the upstream response. |
Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.
# 1. Ask for a quote
curl -i https://api.jarvisclaw.ai/v1/marketplace/api/sunrise-compute
# 2. Pay it (the SDK signs and retries for you)
curl -H "X-PAYMENT: <signed-payload>" https://api.jarvisclaw.ai/v1/marketplace/api/sunrise-compute
Open in the marketplace
Docs: Getting started · x402 payments · x402 discovery · All APIs