Sunrise Sunset

Sunrise Sunset

Planning your day has never been easier with! Say goodbye to guesswork and rely on our accurate sunrise and sunset times. Our API is designed to provide you with precise information, ensuring that you can make the most out of your time.

Benefits of Using API:

  1. Precision: Get accurate sunrise and sunset times for any location.
  2. Planning: Plan your activities with confidence, knowing the exact times of sunrise and sunset.
  3. Automation: Integrate our API seamlessly into your applications and automate the retrieval of sunrise and sunset data.
  4. Weather Insights: Enhance your weather-related applications by incorporating precise sunrise and sunset information.
  5. Global Coverage: Access sunrise and sunset times for locations around the world.

Example Code in JavaScript:

// Sample JavaScript code to use API
const apiUrl = '';
    .then((response) => response.json())
    .then((data) => {
        const sunriseTime = data.results.sunrise;
        const sunsetTime = data.results.sunset;
        console.log(`Sunrise: ${sunriseTime}`);
        console.log(`Sunset: ${sunsetTime}`);
    .catch((error) =>
        console.error('Error fetching sunrise and sunset data:', error)