London Prayer Times API

Last updated: 25 Nov 2022


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:
  • On 25th November 2022 we added the times for 2023
  • We have added the ability to call times in a 24hour format (Added 22 May 2019)

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 2023 times

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