← Back to directory

Get sunrise, sunset, twilight, moonrise and moon phase for a place and date (Tanod)

https://tanod.dev/v1/space/sun-moon

Overview

Sunrise, sunset, solar noon, day length and civil / nautical / astronomical twilight, plus moonrise, moonset, moon phase, illumination and distance, for a point and a local date, in a time zone you choose. Body: `{"lat": 14.5995, "lon": 120.9842, "date": "2026-10-08", "tz": "Asia/Manila"}`. Computed locally (Meeus series; no upstream call): sun and twilight times within about 1 minute, moonrise and moonset within about 3 minutes; sea-level horizon, terrain and weather not mod

Protocol x402 (POST)
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category space
Provider tanod
Source bazaar
Indexed 2026-10-08 05:29:44

Health

Status healthy
Latency (p50) 398ms
Uptime (30d) 98.5%
Reliability Score 94.2/100
Last Checked 2026-10-31 07:04:42
Last Healthy 2026-10-31 07:04:42
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "date": "2026-10-08", "lat": 14.5995, "lon": 120.9842, "tz": "Asia/Manila" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "accuracy": "Sun and twilight times within ~…", "date": "2026-10-08", "lat": 14.5995, "lon": 120.9842, "method": "Meeus low-order Sun and truncat…", "moon": { "illumination": 0.0703, "moonrise": "2026-10-08T03:25:46+08:00", "moonset": "2026-10-08T15:59:35+08:00", "phase": "waning_crescent" }, "sun": { "max_altitude_deg": 69.54, "solar_noon": "2026-10-08T11:43:37+08:00", "sunrise": "2026-10-08T05:46:20+08:00", "sunset": "2026-10-08T17:40:52+08:00" }, "tz": "Asia/Manila" }, "type": "json" }