A building block for your next idea.
Add daylight times for Sofia to a photography or outdoor-trip planner.
Know before you build
Attribute Sunrise-Sunset.org as requested by the provider. Parse the returned timezone information carefully; default results are in UTC. This service provides solar times, not cloud cover or weather forecasts.
Check current provider documentation ↗Your first request
Start with this documented example. Replace credential placeholders with your own test credentials. Browser execution depends on the provider’s CORS policy.
curl --request GET 'https://api.sunrise-sunset.org/json?lat=42.6977&lng=23.3219&formatted=0'Practical questions
What can I build with Sunrise-Sunset.org?+
Add daylight times for Sofia to a photography or outdoor-trip planner.
Does Sunrise-Sunset.org need authentication?+
The reviewed example is listed as “No key”. Attribute Sunrise-Sunset.org as requested by the provider. Parse the returned timezone information carefully; default results are in UTC. This service provides solar times, not cloud cover or weather forecasts.
Can I call Sunrise-Sunset.org from a browser?+
Browser access depends on the provider’s CORS policy for your origin, method, and headers. The playground makes a direct request and cannot bypass those restrictions.
Sources & confidence
Provider documentation was reviewed on 16 September 2026. This is not a live availability test or an endorsement.
Source catalogs can become outdated. Read our review and attribution policy. Plain-text guide ↗