London Prayer Times API


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
Note:
  • We currently only provide times for London
  • We have all the times until the 31st December 2015
  • We are adding the ability to call the whole year (by February 2015)
  • We have created a Wordpress plugin that has been submitted to Wordpress and should soon will be available to download (by Ramadan 2015) in sha Allah.

Sample Call

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

Response

{
   "city":"london",
   "date":"2014-07-01",
   "fajr":"02:51",
   "fajr_jamat":"03:11",
   "sunrise":"04:48",
   "dhuhr":"01:10",
   "dhuhr_jamat":"01:30",
   "asr":"05:27",
   "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=2014&month=July&key=abc123

Response

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