GET times/month
Returns prayer times based on custom month and year for a given zone.
Resource URL
http://api.azanpro.com/times/month.json
Parameters
Parameter | Remark | Description | ||||||
---|---|---|---|---|---|---|---|---|
zone | Required | The location code based on prayer time zones provided by Jakim. Input: Refer to zone codes here. |
||||||
month | Required | Month using numeric representation with or without leading zeros. 01 (January) through 12 (December). | ||||||
year | Required | Year using ISO-8601 year number. Examples: 1999 or 2003. | ||||||
format | Optional |
Options for time formatting
|
||||||
pre | Optional |
Show result in preformatted text enclosed with <pre> tags. Input: true / false Default: false |
Response Fields
Parameter | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zone | The location code based on prayer time zones provided by Jakim. Refer to zone codes here. | ||||||||||||||||||
start | Start date in format `dd-mm-yyyy`. | ||||||||||||||||||
end | End date in format `dd-mm-yyyy`. | ||||||||||||||||||
locations | List of locations identified by Jakim for which having similar prayer timezone. | ||||||||||||||||||
prayer_times |
prayer times information based on the selected zone.
|
Exception Fields
Parameter | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
error_code | Return error code `400` for any error occured. | ||||||||
error_type | Error types either REQUIRED_FIELD, INVALID_ZONE, LIMIT_EXCEEDED or COMPLEX_ERROR | ||||||||
error_desc |
Show error description based on table below
|
Example Request
http://api.azanpro.com/times/month.json?zone=sgr01&month=04&year=2021&format=12-hour
Example Result
{ "zone": "SGR01", "start": "01-04-2021", "end": "30-04-2021", "locations": [ "Gombak", "Hulu Selangor", "Rawang", "Hulu Langat", "Sepang", "Petaling", "Shah Alam" ], "prayer_times": [ { "date": "01-04-2021", "datestamp": 1617206400, "imsak": "5:55 am", "subuh": "6:05 am", "syuruk": "7:11 am", "zohor": "1:20 pm", "asar": "4:22 pm", "maghrib": "7:24 pm", "isyak": "8:33 pm" }, { "date": "02-04-2021", "datestamp": 1617292800, "imsak": "5:55 am", "subuh": "6:05 am", "syuruk": "7:11 am", "zohor": "1:20 pm", "asar": "4:23 pm", "maghrib": "7:23 pm", "isyak": "8:33 pm" }, { "date": "03-04-2021", "datestamp": 1617379200, "imsak": "5:55 am", "subuh": "6:05 am", "syuruk": "7:11 am", "zohor": "1:20 pm", "asar": "4:23 pm", "maghrib": "7:23 pm", "isyak": "8:33 pm" }, { "date": "04-04-2021", "datestamp": 1617465600, "imsak": "5:54 am", "subuh": "6:04 am", "syuruk": "7:10 am", "zohor": "1:19 pm", "asar": "4:23 pm", "maghrib": "7:23 pm", "isyak": "8:32 pm" }, { "date": "05-04-2021", "datestamp": 1617552000, "imsak": "5:54 am", "subuh": "6:04 am", "syuruk": "7:10 am", "zohor": "1:19 pm", "asar": "4:24 pm", "maghrib": "7:23 pm", "isyak": "8:32 pm" }, { "date": "06-04-2021", "datestamp": 1617638400, "imsak": "5:53 am", "subuh": "6:03 am", "syuruk": "7:10 am", "zohor": "1:19 pm", "asar": "4:24 pm", "maghrib": "7:23 pm", "isyak": "8:32 pm" }, { "date": "07-04-2021", "datestamp": 1617724800, "imsak": "5:53 am", "subuh": "6:03 am", "syuruk": "7:09 am", "zohor": "1:18 pm", "asar": "4:24 pm", "maghrib": "7:23 pm", "isyak": "8:32 pm" }, { "date": "08-04-2021", "datestamp": 1617811200, "imsak": "5:52 am", "subuh": "6:02 am", "syuruk": "7:09 am", "zohor": "1:18 pm", "asar": "4:25 pm", "maghrib": "7:22 pm", "isyak": "8:32 pm" }, { "date": "09-04-2021", "datestamp": 1617897600, "imsak": "5:52 am", "subuh": "6:02 am", "syuruk": "7:08 am", "zohor": "1:18 pm", "asar": "4:25 pm", "maghrib": "7:22 pm", "isyak": "8:32 pm" }, { "date": "10-04-2021", "datestamp": 1617984000, "imsak": "5:51 am", "subuh": "6:01 am", "syuruk": "7:08 am", "zohor": "1:18 pm", "asar": "4:25 pm", "maghrib": "7:22 pm", "isyak": "8:32 pm" }, { "date": "11-04-2021", "datestamp": 1618070400, "imsak": "5:51 am", "subuh": "6:01 am", "syuruk": "7:08 am", "zohor": "1:17 pm", "asar": "4:26 pm", "maghrib": "7:22 pm", "isyak": "8:32 pm" }, { "date": "12-04-2021", "datestamp": 1618156800, "imsak": "5:51 am", "subuh": "6:01 am", "syuruk": "7:07 am", "zohor": "1:17 pm", "asar": "4:26 pm", "maghrib": "7:22 pm", "isyak": "8:32 pm" }, { "date": "13-04-2021", "datestamp": 1618243200, "imsak": "5:50 am", "subuh": "6:00 am", "syuruk": "7:07 am", "zohor": "1:17 pm", "asar": "4:26 pm", "maghrib": "7:22 pm", "isyak": "8:31 pm" }, { "date": "14-04-2021", "datestamp": 1618329600, "imsak": "5:50 am", "subuh": "6:00 am", "syuruk": "7:07 am", "zohor": "1:17 pm", "asar": "4:27 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "15-04-2021", "datestamp": 1618416000, "imsak": "5:49 am", "subuh": "5:59 am", "syuruk": "7:06 am", "zohor": "1:16 pm", "asar": "4:27 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "16-04-2021", "datestamp": 1618502400, "imsak": "5:49 am", "subuh": "5:59 am", "syuruk": "7:06 am", "zohor": "1:16 pm", "asar": "4:27 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "17-04-2021", "datestamp": 1618588800, "imsak": "5:48 am", "subuh": "5:58 am", "syuruk": "7:06 am", "zohor": "1:16 pm", "asar": "4:28 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "18-04-2021", "datestamp": 1618675200, "imsak": "5:48 am", "subuh": "5:58 am", "syuruk": "7:06 am", "zohor": "1:16 pm", "asar": "4:28 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "19-04-2021", "datestamp": 1618761600, "imsak": "5:48 am", "subuh": "5:58 am", "syuruk": "7:05 am", "zohor": "1:15 pm", "asar": "4:28 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "20-04-2021", "datestamp": 1618848000, "imsak": "5:47 am", "subuh": "5:57 am", "syuruk": "7:05 am", "zohor": "1:15 pm", "asar": "4:28 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "21-04-2021", "datestamp": 1618934400, "imsak": "5:47 am", "subuh": "5:57 am", "syuruk": "7:05 am", "zohor": "1:15 pm", "asar": "4:29 pm", "maghrib": "7:21 pm", "isyak": "8:31 pm" }, { "date": "22-04-2021", "datestamp": 1619020800, "imsak": "5:46 am", "subuh": "5:56 am", "syuruk": "7:04 am", "zohor": "1:15 pm", "asar": "4:29 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "23-04-2021", "datestamp": 1619107200, "imsak": "5:46 am", "subuh": "5:56 am", "syuruk": "7:04 am", "zohor": "1:15 pm", "asar": "4:29 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "24-04-2021", "datestamp": 1619193600, "imsak": "5:46 am", "subuh": "5:56 am", "syuruk": "7:04 am", "zohor": "1:14 pm", "asar": "4:29 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "25-04-2021", "datestamp": 1619280000, "imsak": "5:45 am", "subuh": "5:55 am", "syuruk": "7:04 am", "zohor": "1:14 pm", "asar": "4:30 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "26-04-2021", "datestamp": 1619366400, "imsak": "5:45 am", "subuh": "5:55 am", "syuruk": "7:03 am", "zohor": "1:14 pm", "asar": "4:30 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "27-04-2021", "datestamp": 1619452800, "imsak": "5:45 am", "subuh": "5:55 am", "syuruk": "7:03 am", "zohor": "1:14 pm", "asar": "4:30 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "28-04-2021", "datestamp": 1619539200, "imsak": "5:44 am", "subuh": "5:54 am", "syuruk": "7:03 am", "zohor": "1:14 pm", "asar": "4:31 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "29-04-2021", "datestamp": 1619625600, "imsak": "5:44 am", "subuh": "5:54 am", "syuruk": "7:03 am", "zohor": "1:14 pm", "asar": "4:31 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" }, { "date": "30-04-2021", "datestamp": 1619712000, "imsak": "5:44 am", "subuh": "5:54 am", "syuruk": "7:03 am", "zohor": "1:13 pm", "asar": "4:31 pm", "maghrib": "7:20 pm", "isyak": "8:31 pm" } ] }