☪️ Prayertimes

Obtain information about prayer times and other data.

Do you want to create a product or need to know about prayer schedules?

No more talking, here is our prayer utility.

Usage

import DymoAPI from "dymo-api";

const dymo = new DymoAPI();

console.log(await dymo.getPrayerTimes({ 
  lat: "37.3755847689721", 
  lon: "-4.457957889422379" 
}));

Response

{
  country: "Spain",
  prayerTimesByTimezone: [
    {
      timezone: "Africa/Ceuta",
      prayerTimes: {
        coordinates: "1:00 AM",
        date: "5:17 PM",
        calculationParameters: "1:00 AM",
        fajr: "6:04 AM",
        sunrise: "7:34 AM",
        dhuhr: "1:30 PM",
        asr: "4:43 PM",
        sunset: "7:17 PM",
        maghrib: "7:20 PM",
        isha: "8:35 PM"
      }
    },
    {
      timezone: "Atlantic/Canary",
      prayerTimes: {
        coordinates: "12:00 AM",
        date: "4:17 PM",
        calculationParameters: "12:00 AM",
        fajr: "5:04 AM",
        sunrise: "6:34 AM",
        dhuhr: "12:30 PM",
        asr: "3:43 PM",
        sunset: "6:17 PM",
        maghrib: "6:20 PM",
        isha: "7:35 PM"
      }
    },
    {
      timezone: "Europe/Madrid",
      prayerTimes: {
        coordinates: "1:00 AM",
        date: "5:17 PM",
        calculationParameters: "1:00 AM",
        fajr: "6:04 AM",
        sunrise: "7:34 AM",
        dhuhr: "1:30 PM",
        asr: "4:43 PM",
        sunset: "7:17 PM",
        maghrib: "7:20 PM",
        isha: "8:35 PM"
      }
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
latStringRefers to the latitude of the coordinates for geolocation
lonStringRefers to the longitude of the coordinates for geolocation