Public API
☪️ Islam / PrayerTimes
With this public functionality you can obtain information about prayer times and other data.
🎯 Parameters
geolocation: {
lat: {
description: "Refers to the latitude of the coordinates for geolocation.",
type: String,
methods: [ Params ],
nested: [ lon ]
},
lon: {
description: "Refers to the longitude of the coordinates for geolocation.",
type: String,
methods: [ Params ],
nested: [ lat ]
}
}
🔥 cURL
curl -X GET \
'https://api.tpeoficial.com/v1/public/islam/prayertimes?lat=40.4167047&lon=-3.7035825'
✅ 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"
}
}
]
}
BASE URL
Public
https://api.tpeoficial.com/v1/public/islam/prayertimes
Was this section helpful?