16

I need to get muslim prayer (Umm Al-qura Makkah time) time to my iOS app. Are there any servers providing these information in either JSON or XML ?

Thanks.

Maduranga E
  • 1,679
  • 5
  • 23
  • 37

1 Answers1

20

Like this? http://xhanch.com/xhanch-api-islamic-get-prayer-time/

According to this site, the following URL will return the desired data in JSON:

http://api.xhanch.com/islamic-get-prayer-time.php?lng=55&lat=25&yy=2012&mm=12&gmt=4&m=json

Update

Some additional resources, according to a few commenters (preserving here so they don't get lost)

Paul Richter
  • 10,908
  • 10
  • 52
  • 85
  • 1
    http://xhanch.com/api/islamic-get-prayer-time.php?lng=55&lat=25&yy=2012&mm=12&gmt=4&m=json – Mohamed Haseel Dec 12 '12 at 06:53
  • 2
    Just in case someone tries this, the domain has been updated to http://api.xhanch.com/islamic-get-prayer-time.php?lng=55&lat=25&yy=2012&mm=12&gmt=4&m=json – Swayam Sep 21 '13 at 09:23
  • The time is not accurate as per Ummul Qura Mecca – obaid May 13 '14 at 06:20
  • @obaid Hmm ok. Can you elaborate in what way their JSON is not accurate? What is the difference between the Meccan Ummul Qura (is this the same as Umm al-Qura?), and the times returned by this API? This question seems to get a decent amount of hits, so if its not accurate, I wouldn't mind improving the answer to correct or explain any errors. – Paul Richter May 13 '14 at 15:33
  • 1
    Yes, its not accurate I have the Library for php server and mobile platforms in how to calculate the timings standalone based on the moon angle and sun rising time along with the latitude and longitude. I'm not infront of the MAC pc. I'll post it soon – obaid Sep 18 '14 at 08:00
  • @obaid how u got correct timings for namaz this site is not responinding me correct time – Erum Feb 18 '15 at 04:49
  • @Swayam how u got correct timings for namaz this site is not responinding me correct time – Erum Feb 18 '15 at 04:49
  • 2
    You can browse http://praytimes.org/ you will get a lot of resource on Namaz timings. Sorry I was late to put the answer. – obaid Feb 19 '15 at 07:54
  • 1
    Try http://aladhan.com/rest-api. – Meezaan-ud-Din Mar 22 '16 at 07:20
  • Can use this one too: https://prayertimes.date/api – Yanga Sep 16 '18 at 03:38
  • Sadly, nothing works now. – Iqra. Nov 02 '19 at 11:08