Aladhan API
Returns Islamic prayer times by city or coordinates, monthly calendars with Hijri dates, date conversion, qibla direction and the 99 names of Allah.
View as Markdown| GET | /aladhan/timingsByCity | The prayer times of a city on one date (today by default). The method defaults to KEMENAG. |
| GET | /aladhan/timingsByCoords | The prayer times at a latitude and longitude on one date (today by default). |
| GET | /aladhan/calendarByCity | The prayer times of every day of one month in a city, with the Hijri date of each day. |
| GET | /aladhan/dateConvert | Converts a date between the Gregorian and the Hijri calendar. |
| GET | /aladhan/qibla | The qibla direction from a place, in degrees clockwise from true north. |
| GET | /aladhan/asmaAlHusna | The 99 names of Allah with their Arabic form, transliteration and English meaning. |
| GET | /aladhan/timingsByAddress | The prayer times at a free-text address on one date (today by default). The method defaults to KEMENAG. |
| GET | /aladhan/calendarByAddress | The prayer times of every day of one month at a free-text address, with the Hijri date of each day. |
| GET | /aladhan/gregorianCalendar | Every day of one Gregorian month with its Hijri date, the calendar that converts Gregorian to Hijri. |
| GET | /aladhan/hijriCalendar | Every day of one Hijri month with its Gregorian date, the calendar that converts Hijri to Gregorian. |
| GET | /aladhan/hijriCalendarByCity | The prayer times of every day of one Hijri month in a city, such as the Ramadan imsakiyah schedule (Hijri month 9). |
| GET | /aladhan/currentTime | The current local time (HH:MM) and Unix timestamp in one IANA time zone. |
| GET | /aladhan/methods | The prayer calculation methods Aladhan supports, with the id to pass as method. |
timingsByCity
/v1/aladhan/timingsByCityThe prayer times of a city on one date (today by default). The method defaults to KEMENAG.
Parameters
citystring required | City name in English, such as Jakarta. e.g. Jakarta |
countrystring required | Country name in English, such as Indonesia. e.g. Indonesia |
datestring | Date as yyyy-mm-dd. Omit it for today. |
methodinteger | Calculation method id. 20 is KEMENAG, the Indonesian method. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
asr | string |
date | string |
dhuhr | string |
fajr | string |
hijri | string |
imsak | string |
isha | string |
maghrib | string |
midnight | string |
sunrise | string |
timezone | string |
curl "https://api.hoshime.com/v1/aladhan/timingsByCity?city=Jakarta&country=Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/timingsByCity?city=Jakarta&country=Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/timingsByCity?city=Jakarta&country=Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asr": "14:56", "date": "2026-11-07", "dhuhr": "11:36", "fajr": "04:05", "hijri": "1448-05-27", "imsak": "03:55", "isha": "19:00", "maghrib": "17:47", "midnight": "23:36", "sunrise": "05:26", "timezone": "Asia/Jakarta" }, "meta": { "cached": false, "endpoint": "timingsByCity", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
timingsByCoords
/v1/aladhan/timingsByCoordsThe prayer times at a latitude and longitude on one date (today by default).
Parameters
latitudestring required | Latitude from -90 to 90, such as -6.2088. e.g. -6.2088 |
longitudestring required | Longitude from -180 to 180, such as 106.8456. e.g. 106.8456 |
datestring | Date as yyyy-mm-dd. Omit it for today. |
methodinteger | Calculation method id. 20 is KEMENAG, the Indonesian method. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
asr | string |
date | string |
dhuhr | string |
fajr | string |
hijri | string |
imsak | string |
isha | string |
maghrib | string |
midnight | string |
sunrise | string |
timezone | string |
curl "https://api.hoshime.com/v1/aladhan/timingsByCoords?latitude=-6.2088&longitude=106.8456" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/timingsByCoords?latitude=-6.2088&longitude=106.8456", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/timingsByCoords?latitude=-6.2088&longitude=106.8456", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asr": "14:56", "date": "2026-11-07", "dhuhr": "11:36", "fajr": "04:04", "hijri": "1448-05-27", "imsak": "03:54", "isha": "19:00", "maghrib": "17:47", "midnight": "23:36", "sunrise": "05:26", "timezone": "Asia/Jakarta" }, "meta": { "cached": false, "endpoint": "timingsByCoords", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
calendarByCity
/v1/aladhan/calendarByCityThe prayer times of every day of one month in a city, with the Hijri date of each day.
Parameters
citystring required | City name in English, such as Jakarta. e.g. Jakarta |
countrystring required | Country name in English, such as Indonesia. e.g. Indonesia |
yearinteger required | Gregorian year, such as 2025. e.g. 2025 |
monthinteger required | Gregorian month, from 1 to 12. e.g. 1 |
methodinteger | Calculation method id. 20 is KEMENAG, the Indonesian method. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
asr | string |
date | string |
dhuhr | string |
fajr | string |
hijri | string |
imsak | string |
isha | string |
maghrib | string |
midnight | string |
sunrise | string |
timezone | string |
curl "https://api.hoshime.com/v1/aladhan/calendarByCity?city=Jakarta&country=Indonesia&year=2025&month=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/calendarByCity?city=Jakarta&country=Indonesia&year=2025&month=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/calendarByCity?city=Jakarta&country=Indonesia&year=2025&month=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "asr": "15:23", "date": "2025-01-01", "dhuhr": "11:56", "fajr": "04:17", "hijri": "1446-07-01", "imsak": "04:07", "isha": "19:27", "maghrib": "18:11", "midnight": "23:56", "sunrise": "05:42", "timezone": "Asia/Jakarta" }, { "asr": "15:23", "date": "2025-01-02", "dhuhr": "11:57", "fajr": "04:17", "hijri": "1446-07-02", "imsak": "04:07", "isha": "19:27", "maghrib": "18:11", "midnight": "23:57", "sunrise": "05:42", "timezone": "Asia/Jakarta" } ], "meta": { "cached": false, "endpoint": "calendarByCity", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
dateConvert
/v1/aladhan/dateConvertConverts a date between the Gregorian and the Hijri calendar.
Parameters
datestring required | The date to convert as yyyy-mm-dd, in the calendar it is written in. e.g. 2026-11-06 |
tostring required | The calendar to convert to: hijri or gregorian.hijrigregoriane.g. hijri |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
gregorian | string |
hijri | string |
hijriMonth | string |
weekday | string |
curl "https://api.hoshime.com/v1/aladhan/dateConvert?date=2026-11-06&to=hijri" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/dateConvert?date=2026-11-06&to=hijri", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/dateConvert?date=2026-11-06&to=hijri", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "gregorian": "2026-11-06", "hijri": "1448-05-26", "hijriMonth": "Jumādá al-ūlá", "weekday": "Friday" }, "meta": { "cached": false, "endpoint": "dateConvert", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
qibla
/v1/aladhan/qiblaThe qibla direction from a place, in degrees clockwise from true north.
Parameters
latitudestring required | Latitude from -90 to 90, such as -6.2088. e.g. -6.2088 |
longitudestring required | Longitude from -180 to 180, such as 106.8456. e.g. 106.8456 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
direction | number (double) |
latitude | number (double) |
longitude | number (double) |
curl "https://api.hoshime.com/v1/aladhan/qibla?latitude=-6.2088&longitude=106.8456" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/qibla?latitude=-6.2088&longitude=106.8456", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/qibla?latitude=-6.2088&longitude=106.8456", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "direction": 295.15174505875416, "latitude": -6.2088, "longitude": 106.8456 }, "meta": { "cached": false, "endpoint": "qibla", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
asmaAlHusna
/v1/aladhan/asmaAlHusnaThe 99 names of Allah with their Arabic form, transliteration and English meaning.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
arabic | string |
meaning | string |
number | integer (int64) |
transliteration | string |
curl "https://api.hoshime.com/v1/aladhan/asmaAlHusna" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/asmaAlHusna", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/asmaAlHusna", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "arabic": "الرَّحْمَنُ", "meaning": "The Beneficent", "number": 1, "transliteration": "Ar Rahmaan" }, { "arabic": "الرَّحِيمُ", "meaning": "The Merciful", "number": 2, "transliteration": "Ar Raheem" } ], "meta": { "cached": false, "endpoint": "asmaAlHusna", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
timingsByAddress
/v1/aladhan/timingsByAddressThe prayer times at a free-text address on one date (today by default). The method defaults to KEMENAG.
Parameters
addressstring required | Free-text address, such as Jakarta, Indonesia. e.g. Jakarta, Indonesia |
datestring | Date as yyyy-mm-dd. Omit it for today. |
methodinteger | Calculation method id. 20 is KEMENAG, the Indonesian method. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
asr | string |
date | string |
dhuhr | string |
fajr | string |
hijri | string |
imsak | string |
isha | string |
maghrib | string |
midnight | string |
sunrise | string |
timezone | string |
curl "https://api.hoshime.com/v1/aladhan/timingsByAddress?address=Jakarta%2C+Indonesia" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/timingsByAddress?address=Jakarta%2C+Indonesia", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/timingsByAddress?address=Jakarta%2C+Indonesia", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asr": "14:56", "date": "2026-11-07", "dhuhr": "11:36", "fajr": "04:05", "hijri": "1448-05-27", "imsak": "03:55", "isha": "19:00", "maghrib": "17:47", "midnight": "23:36", "sunrise": "05:26", "timezone": "Asia/Jakarta" }, "meta": { "cached": false, "endpoint": "timingsByAddress", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
calendarByAddress
/v1/aladhan/calendarByAddressThe prayer times of every day of one month at a free-text address, with the Hijri date of each day.
Parameters
addressstring required | Free-text address, such as Jakarta, Indonesia. e.g. Jakarta, Indonesia |
yearinteger required | Gregorian year, such as 2025. e.g. 2025 |
monthinteger required | Gregorian month, from 1 to 12. e.g. 1 |
methodinteger | Calculation method id. 20 is KEMENAG, the Indonesian method. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
asr | string |
date | string |
dhuhr | string |
fajr | string |
hijri | string |
imsak | string |
isha | string |
maghrib | string |
midnight | string |
sunrise | string |
timezone | string |
curl "https://api.hoshime.com/v1/aladhan/calendarByAddress?address=Jakarta%2C+Indonesia&year=2025&month=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/calendarByAddress?address=Jakarta%2C+Indonesia&year=2025&month=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/calendarByAddress?address=Jakarta%2C+Indonesia&year=2025&month=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "asr": "15:23", "date": "2025-01-01", "dhuhr": "11:56", "fajr": "04:17", "hijri": "1446-07-01", "imsak": "04:07", "isha": "19:27", "maghrib": "18:11", "midnight": "23:56", "sunrise": "05:42", "timezone": "Asia/Jakarta" }, { "asr": "15:23", "date": "2025-01-02", "dhuhr": "11:57", "fajr": "04:17", "hijri": "1446-07-02", "imsak": "04:07", "isha": "19:27", "maghrib": "18:11", "midnight": "23:57", "sunrise": "05:42", "timezone": "Asia/Jakarta" } ], "meta": { "cached": false, "endpoint": "calendarByAddress", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
gregorianCalendar
/v1/aladhan/gregorianCalendarEvery day of one Gregorian month with its Hijri date, the calendar that converts Gregorian to Hijri.
Parameters
yearinteger required | Gregorian year, such as 2026. e.g. 2026 |
monthinteger required | Gregorian month, from 1 to 12. e.g. 11 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
gregorian | string |
hijri | string |
weekday | string |
curl "https://api.hoshime.com/v1/aladhan/gregorianCalendar?year=2026&month=11" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/gregorianCalendar?year=2026&month=11", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/gregorianCalendar?year=2026&month=11", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "gregorian": "01-11-2026", "hijri": "21-05-1448", "weekday": "Sunday" }, { "gregorian": "02-11-2026", "hijri": "22-05-1448", "weekday": "Monday" } ], "meta": { "cached": false, "endpoint": "gregorianCalendar", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
hijriCalendar
/v1/aladhan/hijriCalendarEvery day of one Hijri month with its Gregorian date, the calendar that converts Hijri to Gregorian.
Parameters
yearinteger required | Hijri year, such as 1448. e.g. 1448 |
monthinteger required | Hijri month, from 1 to 12. e.g. 12 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
gregorian | string |
hijri | string |
weekday | string |
curl "https://api.hoshime.com/v1/aladhan/hijriCalendar?year=1448&month=12" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/hijriCalendar?year=1448&month=12", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/hijriCalendar?year=1448&month=12", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "gregorian": "07-05-2027", "hijri": "01-12-1448", "weekday": "Friday" }, { "gregorian": "08-05-2027", "hijri": "02-12-1448", "weekday": "Saturday" } ], "meta": { "cached": false, "endpoint": "hijriCalendar", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
hijriCalendarByCity
/v1/aladhan/hijriCalendarByCityThe prayer times of every day of one Hijri month in a city, such as the Ramadan imsakiyah schedule (Hijri month 9).
Parameters
citystring required | City name in English, such as Jakarta. e.g. Jakarta |
countrystring required | Country name in English, such as Indonesia. e.g. Indonesia |
yearinteger required | Hijri year, such as 1447. e.g. 1447 |
monthinteger required | Hijri month, from 1 to 12. 9 is Ramadan. e.g. 9 |
methodinteger | Calculation method id. 20 is KEMENAG, the Indonesian method. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
asr | string |
date | string |
dhuhr | string |
fajr | string |
hijri | string |
imsak | string |
isha | string |
maghrib | string |
midnight | string |
sunrise | string |
timezone | string |
curl "https://api.hoshime.com/v1/aladhan/hijriCalendarByCity?city=Jakarta&country=Indonesia&year=1447&month=9" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/hijriCalendarByCity?city=Jakarta&country=Indonesia&year=1447&month=9", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/hijriCalendarByCity?city=Jakarta&country=Indonesia&year=1447&month=9", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "asr": "…", "date": "…", "dhuhr": "…", "fajr": "…", "hijri": "…", "imsak": "…", "isha": "…", "maghrib": "…", "midnight": "…", "sunrise": "…", "timezone": "…" } ], "meta": { "cached": false, "endpoint": "hijriCalendarByCity", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
currentTime
/v1/aladhan/currentTimeThe current local time (HH:MM) and Unix timestamp in one IANA time zone.
Parameters
zonestring required | IANA time zone name, such as Asia/Jakarta. e.g. Asia/Jakarta |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
currentAt | string |
localTime | string |
zone | string |
curl "https://api.hoshime.com/v1/aladhan/currentTime?zone=Asia%2FJakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/currentTime?zone=Asia%2FJakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/currentTime?zone=Asia%2FJakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "currentAt": "2026-11-06T18:01:47Z", "localTime": "01:01", "zone": "Asia/Jakarta" }, "meta": { "cached": false, "endpoint": "currentTime", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }
methods
/v1/aladhan/methodsThe prayer calculation methods Aladhan supports, with the id to pass as method.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
id | string |
key | string |
name | string |
curl "https://api.hoshime.com/v1/aladhan/methods" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/aladhan/methods", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/aladhan/methods", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "0", "key": "JAFARI", "name": "Shia Ithna-Ashari, Leva Institute, Qum" }, { "id": "1", "key": "KARACHI", "name": "University of Islamic Sciences, Karachi" } ], "meta": { "cached": false, "endpoint": "methods", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "aladhan", "requestId": "req_2Xb9kQ…", "units": 1 } }