London Prayer Times API

Last updated: 22 May 2019


URL

http://www.londonprayertimes.com/api/times/

Method

GET

URL Params

Required
format=[string] - Possible values: json or xml
key=[string]
Optional
date=[string] - Format: yyyy-mm-dd
year=[numeric] - Format: yyyy
month=[string|numeric] - Examples: January, Jan, 01, 1
city=[string] - Possible values: london
24hours=[string] - Possible values: true
 
Notes (updated 22nd May 2019):
  • We have added the ability to call times in a 24hour format (Added 22 May 2019)
  • We currently only provide times for London
  • We have added all the times for 2019 (added Dec 28 2018).
  • We have added the ability to call the whole year (added February 2015)
  • The API provides two times for when Asr begins. "asr_2" is the time Asr starts according to Hanafi Opinion
  • We have created a Wordpress plugin. We are NOT currently maintaining the plugin. It cant be found here London Prayer Times Plugin

QUICK START

Check out our CODEPEN example we have put together to show you an example of the JS you could use. Remember to use your own API Key once it has been provided to you.

Sample call

http://www.londonprayertimes.com/api/times/?format=json&key=abc123

{
   "city":"london",
   "date":"2016-07-01",
   "fajr":"02:51",
   "fajr_jamat":"03:11",
   "sunrise":"04:48",
   "dhuhr":"01:10",
   "dhuhr_jamat":"01:30",
   "asr":"05:27",
   "asr_2":"05:57",
   "asr_jamat":"06:15",
   "magrib":"09:24",
   "magrib_jamat":"09:34",
   "isha":"11:00",
   "isha_jamat":"11:10"
}

Sample Call

http://www.londonprayertimes.com/api/times/?format=json&year=2016&month=July&key=abc123

Response

{
   "city":"london",
   "times":{
      "2016-07-01":{
         "date":"2016-07-01",
         "fajr":"02:51",
         "fajr_jamat":"03:11",
         "sunrise":"04:48",
         "dhuhr":"01:10",
         "dhuhr_jamat":"01:30",
         "asr":"05:27",
         "asr":"05:57",
         "asr_jamat":"06:15",
         "magrib":"09:24",
         "magrib_jamat":"09:34",
         "isha":"11:00",
         "isha_jamat":"11:10"
      },
      "2016-07-02":{
         ...
      },
      ...
   }
}

Sample call for 2017 times

http://www.londonprayertimes.com/api/times/?format=json&key=abc123&year=2017