UnifyAPI
← Back to catalog

sunrisesunset.range

mock data$0.002 / call

SunriseSunset — Date Range Sun & Moon Data

Get sunrise/sunset/moon phase data for a date range of up to 365 days for any global coordinate. Returns an array of daily records each with: sunrise, sunset, solar noon, golden hour, day length, moon phase name, and moon illumination percentage. Useful for seasonal planning, photography planning, agriculture, and event scheduling. Specify date_start and date_end in YYYY-MM-DD format; max 365 days per call. No auth required; free commercial use. Source: SunriseSunset.io.

Geo & Mapsprovider: Sunrisesunset#sunrisesunset#geo

Input schema

latrequired

Latitude of the target location (-90 to 90). Positive = North, Negative = South.

number
lngrequired

Longitude of the target location (-180 to 180). Positive = East, Negative = West.

number
date_endrequired

End date of range in ISO format YYYY-MM-DD (e.g. 2026-06-30). Maximum 365 days from start date.

string
timezone

IANA timezone name for output times (e.g. America/New_York, Europe/London, Asia/Tokyo). Auto-detected from lat/lng if omitted.

string
date_startrequired

Start date of range in ISO format YYYY-MM-DD (e.g. 2026-06-01).

string
time_format

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".

string

Call via REST

curl -X POST https://unifyapi.pro/api/call/sunrisesunset.range \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"lat":0,"lng":0,"date_end":"<date_end>","timezone":"<timezone>","date_start":"<date_start>","time_format":"<time_format>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.