GET /v2/times/month.json
Returns today's prayer times based on given zone.
Resource URL
Parameters
{format} | type | optional | decription | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{month_year} | string | Required | We use a key to avoid abuse on our API. The API is Free! https://api.pray.zone/v2/times/month.json?city=mecca&month=2021-04 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{city} | string | Required | The city id is the name of the city, the space are replaced with "-". The list of the cities and id are accessible here. Required if {longitude}|{latitude}|{elevation} or {ip} is missing. https://api.pray.zone/v2/times/month.json?city=mecca&month=2021-04 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{longitude} {latitude} {elevation} | string | Required | Required if {longitude}|{latitude}|{elevation} or {city} is missing.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{ip} | string | Required | Only IPv4 are allowed Required if {city} or {ip} is missing. https://api.pray.zone/v2/times/month.json?ip=163.172.18.192&month=2021-04 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{key} | string | optional | We use a key to avoid abuse on our API. The API is Free! https://api.pray.zone/v2/times/month.json?city=mecca&month=2021-04&key=MagicKey | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{school} | int | optional | Each countries has an default assigned school, the list of school by countries is accessible here.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{juristic} | int | optional | 0 for Shafii (or the standard way), 1 for Hanafi. If you leave this empty, it defaults to Shafii.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{highlat} | int | optional | In locations at higher latitude, twilight may persist throughout the night during some months of the year. In these abnormal periods, the determination of Fajr and Isha is not possible using the usual formulas mentioned in the previous section. To overcome this problem, several solutions have been proposed, three of which are described below.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{timeformat} | int | optional | Time format
|
Parameters
{format} | type | optional | decription | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{key} | string | No | We use a key to avoid abuse on our API. The API is Free! | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{city} | string | No | The city id is the name of the city, the space are replaced with "-". The list of the cities and id are accessible here. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{school} | int | Yes | Each countries has an default assigned school, the list of school by countries is accessible here.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{juristic} | int | Yes | 0 for Shafii (or the standard way), 1 for Hanafi. If you leave this empty, it defaults to Shafii.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{higher-latitudes} | int | Yes | In locations at higher latitude, twilight may persist throughout the night during some months of the year. In these abnormal periods, the determination of Fajr and Isha is not possible using the usual formulas mentioned in the previous section. To overcome this problem, several solutions have been proposed, three of which are described below.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{time-format} | int | Yes | Time format
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
{day} | string | Yes | We use a key to avoid abuse on our API. The API is Free! | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{month-year} | string | Yes | We use a key to avoid abuse on our API. The API is Free! |
Example Request
Example Result
{ "code": 200, "status": "OK", "results": { "datetime": [ { "times": { "Imsak": "04:49", "Sunrise": "06:11", "Fajr": "04:59", "Dhuhr": "12:25", "Asr": "15:50", "Sunset": "18:38", "Maghrib": "18:49", "Isha": "-", "Midnight": "23:49" }, "date": { "timestamp": 1617235200, "gregorian": "2021-04-01", "hijri": "1442-08-19" } }, { "times": { "Imsak": "04:48", "Sunrise": "06:10", "Fajr": "04:58", "Dhuhr": "12:24", "Asr": "15:50", "Sunset": "18:39", "Maghrib": "18:50", "Isha": "-", "Midnight": "23:48" }, "date": { "timestamp": 1617321600, "gregorian": "2021-04-02", "hijri": "1442-08-20" } }, { "times": { "Imsak": "04:47", "Sunrise": "06:09", "Fajr": "04:57", "Dhuhr": "12:24", "Asr": "15:49", "Sunset": "18:39", "Maghrib": "18:50", "Isha": "-", "Midnight": "23:48" }, "date": { "timestamp": 1617408000, "gregorian": "2021-04-03", "hijri": "1442-08-21" } }, { "times": { "Imsak": "04:46", "Sunrise": "06:08", "Fajr": "04:56", "Dhuhr": "12:24", "Asr": "15:49", "Sunset": "18:39", "Maghrib": "18:50", "Isha": "-", "Midnight": "23:48" }, "date": { "timestamp": 1617494400, "gregorian": "2021-04-04", "hijri": "1442-08-22" } }, { "times": { "Imsak": "04:45", "Sunrise": "06:07", "Fajr": "04:55", "Dhuhr": "12:23", "Asr": "15:49", "Sunset": "18:40", "Maghrib": "18:51", "Isha": "-", "Midnight": "23:47" }, "date": { "timestamp": 1617580800, "gregorian": "2021-04-05", "hijri": "1442-08-23" } }, { "times": { "Imsak": "04:44", "Sunrise": "06:07", "Fajr": "04:54", "Dhuhr": "12:23", "Asr": "15:48", "Sunset": "18:40", "Maghrib": "18:51", "Isha": "-", "Midnight": "23:47" }, "date": { "timestamp": 1617667200, "gregorian": "2021-04-06", "hijri": "1442-08-24" } }, { "times": { "Imsak": "04:43", "Sunrise": "06:06", "Fajr": "04:53", "Dhuhr": "12:23", "Asr": "15:48", "Sunset": "18:40", "Maghrib": "18:51", "Isha": "-", "Midnight": "23:47" }, "date": { "timestamp": 1617753600, "gregorian": "2021-04-07", "hijri": "1442-08-25" } }, { "times": { "Imsak": "04:42", "Sunrise": "06:05", "Fajr": "04:52", "Dhuhr": "12:23", "Asr": "15:48", "Sunset": "18:41", "Maghrib": "18:52", "Isha": "-", "Midnight": "23:46" }, "date": { "timestamp": 1617840000, "gregorian": "2021-04-08", "hijri": "1442-08-26" } }, { "times": { "Imsak": "04:41", "Sunrise": "06:04", "Fajr": "04:51", "Dhuhr": "12:22", "Asr": "15:47", "Sunset": "18:41", "Maghrib": "18:52", "Isha": "-", "Midnight": "23:46" }, "date": { "timestamp": 1617926400, "gregorian": "2021-04-09", "hijri": "1442-08-27" } }, { "times": { "Imsak": "04:40", "Sunrise": "06:03", "Fajr": "04:50", "Dhuhr": "12:22", "Asr": "15:47", "Sunset": "18:41", "Maghrib": "18:52", "Isha": "-", "Midnight": "23:46" }, "date": { "timestamp": 1618012800, "gregorian": "2021-04-10", "hijri": "1442-08-28" } }, { "times": { "Imsak": "04:39", "Sunrise": "06:02", "Fajr": "04:49", "Dhuhr": "12:22", "Asr": "15:47", "Sunset": "18:42", "Maghrib": "18:53", "Isha": "-", "Midnight": "23:45" }, "date": { "timestamp": 1618099200, "gregorian": "2021-04-11", "hijri": "1442-08-29" } }, { "times": { "Imsak": "04:38", "Sunrise": "06:01", "Fajr": "04:48", "Dhuhr": "12:21", "Asr": "15:46", "Sunset": "18:42", "Maghrib": "18:53", "Isha": "-", "Midnight": "23:45" }, "date": { "timestamp": 1618185600, "gregorian": "2021-04-12", "hijri": "1442-08-30" } }, { "times": { "Imsak": "04:37", "Sunrise": "06:00", "Fajr": "04:47", "Dhuhr": "12:21", "Asr": "15:46", "Sunset": "18:42", "Maghrib": "18:53", "Isha": "-", "Midnight": "23:45" }, "date": { "timestamp": 1618272000, "gregorian": "2021-04-13", "hijri": "1442-09-01" } } ], "location": { "latitude": 21.416667938232425, "longitude": 39.81666564941406, "elevation": 333.0, "city": "Mecca", "country": "Saudi Arabia", "country_code": "SA", "timezone": "Asia/Riyadh", "local_offset": 3.0 }, "settings": { "timeformat": "HH:mm", "school": "Ithna Ashari", "juristic": "Shafii", "highlat": "None", "fajr_angle": 18.5, "isha_angle": 90.0 } } }