Precise Sunrise & Sunset Times for Any Location

Sunrise Sunset API.

Calculate precise sunrise and sunset times along with civil, nautical, and astronomical twilight for any location and date. Get golden hour timing for photography, dawn and dusk times for outdoor activities, and solar noon for architectural planning.

Free tier, no card< 200ms responses99.9% uptime SLA
GET/v1/sunrisesunsetlive
Response200 OK · sample
{
  "status": "ok",
  "error": null,
  "data": {
    "solarNoon": "2025-12-16T12:14:40.51Z",
    "sunrise": "2025-12-16T07:24:56.165Z",
    "sunset": "2025-12-16T17:04:24.854Z",
    "sunriseEnd": "2025-12-16T07:27:58.828Z",
    "sunsetStart": "2025-12-16T17:01:22.192Z",
    "dawn": "2025-12-16T06:56:02.774Z",
    "dusk": "2025-12-16T17:33:18.245Z",
    "nauticalDawn": "2025-12-16T06:23:38.134Z",
    "nauticalDusk": "2025-12-16T18:05:42.886Z",
    "nightEnd": "2025-12-16T05:52:07.048Z",
    "night": "2025-12-16T18:37:13.971Z",
    "goldenHourEnd": "2025-12-16T08:05:08.406Z",
    "goldenHour": "2025-12-16T16:24:12.613Z"
  }
}
Sample response · verify to run one live call, no signup
Integrates with your favorite tools
LangChainn8nZapierMakePipedreamPower AutomatePostman

Sunrise Sunset API

Calculate precise sunrise and sunset times along with civil, nautical, and astronomical twilight for any location and date. Get golden hour timing for photography, dawn and dusk times for outdoor activities, and solar noon for architectural planning.

  • Precise sunrise and sunset times for any coordinates worldwide
  • Golden hour and blue hour timing for perfect photography
  • Civil, nautical, and astronomical twilight calculations
  • Query any date - past, present, or future
  1. 1

    Send one request

    A single authenticated GET with the location you care about — no SDK required.

    GET /v1/sunrisesunset?query=
    x-api-key: your_key
  2. 2

    We do the aggregation

    Each request pulls from multiple upstream sources and computes the derived fields for you.

  3. 3

    Get clean JSON back

    One structured object, typically under 200 ms — ready to render.

    { solarNoon, sunrise, sunset, }

Everything in a single call.

/v1/sunrisesunsetapplication/json
solarNoon"2025-12-16T12:14:40.51Z"
sunrise"2025-12-16T07:24:56.165Z"
sunset"2025-12-16T17:04:24.854Z"
sunriseEnd"2025-12-16T07:27:58.828Z"
sunsetStart"2025-12-16T17:01:22.192Z"
dawn"2025-12-16T06:56:02.774Z"
dusk"2025-12-16T17:33:18.245Z"
nauticalDawn"2025-12-16T06:23:38.134Z"
nauticalDusk"2025-12-16T18:05:42.886Z"
nightEnd"2025-12-16T05:52:07.048Z"
night"2025-12-16T18:37:13.971Z"
goldenHourEnd"2025-12-16T08:05:08.406Z"
goldenHour"2025-12-16T16:24:12.613Z"

What developers build with it.

Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.

See every use case

Call it in your language.

Copy a working request, or install a typed SDK. Same endpoint, same key.

const res = await fetch("https://api.apiverve.com/v1/sunrisesunset?lat=36.72016&lon=-4.42034&date=01-16-2026", {
  headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);

One subscription, the whole precise sunrise & sunset times for any location stack.

Every related API ships with your key — no separate plans, no extra keys, one bill.

See pricing
8APIs in this bundle
99.9%uptime SLA

Wire it into the tools you already run.

Ready-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.

Google Sheets
Log daily sunrise and sunset times
WhenScheduled daily
ThenFetch sunrise/sunset → append row
Slack
Post daily sunrise/sunset to a channel
WhenScheduled daily
ThenFetch sunrise/sunset → post message
Airtable
Enrich location records with sun times
WhenNew record created
ThenFetch sunrise/sunset → populate fields
Notion
Add sun times to daily journal entries
WhenNew database item created
ThenFetch sunrise/sunset → update properties
Salesforce
Enrich leads with local daylight data
WhenNew lead created
ThenFetch sunrise/sunset → update custom field
GitHub
Add sun times to outdoor IoT project issues
WhenNew issue opened
ThenFetch sunrise/sunset → add comment
Browse all integrations

Questions about the API

How accurate are the sunrise and sunset times?
Our calculations are based on established astronomical algorithms and are accurate to within one minute. We account for atmospheric refraction, which makes the sun appear slightly above the horizon even when geometrically below it.
What time zone are the times returned in?
All times are returned in UTC (ISO 8601 format). You can easily convert to local time using the timezone offset for your location, or use our World Time API to get the local timezone.
Can I get sunrise/sunset for a specific date?
Yes! Pass the optional date parameter in MM-DD-YYYY format to get times for any date. If not specified, we return today's times.
What is the difference between dawn and sunrise?
Sunrise is when the sun's upper edge appears above the horizon. Dawn (civil twilight) begins earlier, when there's enough light to see without artificial lighting. We also provide nautical dawn (horizon visible at sea) and astronomical dawn (sky completely dark before).
What is golden hour?
Golden hour is the period shortly after sunrise or before sunset when the sun is low, producing warm, soft lighting ideal for photography. We return both the morning golden hour end time and evening golden hour start time.
Do you account for daylight saving time?
Times are returned in UTC, which doesn't observe daylight saving. This ensures consistency and lets you handle DST conversion in your application based on the user's local rules.
What happens in polar regions with midnight sun or polar night?
In polar regions during summer or winter, the sun may not rise or set. In these cases, we return null for sunrise/sunset and indicate whether it's polar day (continuous daylight) or polar night (continuous darkness).
Can I use this for smart home automation?
Absolutely! Many users integrate our API with smart home systems to trigger lights, blinds, or thermostats based on actual sunrise/sunset rather than fixed schedules. This adapts automatically as day length changes throughout the year.

Start building with the Sunrise Sunset API. Free tier, no card required — your key is live in minutes.

Bonus: 300+ more APIs

The same key unlocks every other APIVerve endpoint — reach for them when you need them.

Browse the catalog