sunrisesunset.daily
mock data$0.001 / callSunriseSunset — Daily Sun & Moon Times
Get complete daily astronomical data for any lat/lng and date from SunriseSunset.io. Returns sunrise, sunset, dawn, dusk, first/last light, solar noon, golden hour, day length, nautical twilight, current sun altitude and azimuth, moonrise, moonset, moon phase name, moon illumination percentage, and lunar phase value (0–1 cycle). Supports "today", "tomorrow", or any YYYY-MM-DD date. Timezone auto-detected from coordinates or specify an IANA name. Time format: 12h, 24h, or Unix timestamps. No auth required; free commercial use.
Input schema
Latitude of the target location (-90 to 90). Positive = North, Negative = South.
Longitude of the target location (-180 to 180). Positive = East, Negative = West.
Date to query: "today", "tomorrow", or ISO date YYYY-MM-DD (e.g. 2026-01-15). Defaults to today.
IANA timezone name for output times (e.g. America/New_York, Europe/London, Asia/Tokyo). Auto-detected from lat/lng if omitted.
Time output format: "0"=12-hour AM/PM (e.g. 5:26:02 AM), "1"=24-hour (e.g. 05:26:02), "2"=Unix timestamp seconds. Defaults to "0".
Call via REST
curl -X POST https://unifyapi.pro/api/call/sunrisesunset.daily \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"lat":0,"lng":0,"date":"<date>","timezone":"<timezone>","time_format":"<time_format>"}'