sunrisesunset.sun_position
mock data$0.001 / callSunriseSunset — Sun Position & Golden Hour
Get the current sun position (altitude and azimuth), sunrise/sunset compass bearings, golden hour window, and solar noon time for any location and date. Sun altitude is the elevation angle above the horizon (negative = below). Sun azimuth is the compass direction of the sun (0=North, 90=East, 180=South, 270=West). Golden hour is the last hour before sunset — ideal for photography. Includes dawn, dusk, and day length. Useful for solar panel orientation, photography planning, outdoor event scheduling, and navigation. No auth required; free commercial use. Source: SunriseSunset.io.
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.sun_position \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"lat":0,"lng":0,"date":"<date>","timezone":"<timezone>","time_format":"<time_format>"}'