# 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.

Category: Religion & Culture. Region: global. 13 endpoints at `https://api.hoshime.com/v1/aladhan/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/aladhan
## GET /v1/aladhan/timingsByCity

The prayer times of a city on one date (today by default). The method defaults to KEMENAG.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `city` | string | yes | City name in English, such as Jakarta. (e.g. Jakarta) |
| `country` | string | yes | Country name in English, such as Indonesia. (e.g. Indonesia) |
| `date` | string | no | Date as yyyy-mm-dd. Omit it for today. |
| `method` | integer | no | Calculation method id. 20 is KEMENAG, the Indonesian method. (default 20) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asr` (string), `date` (string), `dhuhr` (string), `fajr` (string), `hijri` (string), `imsak` (string), `isha` (string), `maghrib` (string), `midnight` (string), `sunrise` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/timingsByCity?city=Jakarta&country=Indonesia" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/timingsByCoords

The prayer times at a latitude and longitude on one date (today by default).

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude from -90 to 90, such as -6.2088. (e.g. -6.2088) |
| `longitude` | string | yes | Longitude from -180 to 180, such as 106.8456. (e.g. 106.8456) |
| `date` | string | no | Date as yyyy-mm-dd. Omit it for today. |
| `method` | integer | no | Calculation method id. 20 is KEMENAG, the Indonesian method. (default 20) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asr` (string), `date` (string), `dhuhr` (string), `fajr` (string), `hijri` (string), `imsak` (string), `isha` (string), `maghrib` (string), `midnight` (string), `sunrise` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/timingsByCoords?latitude=-6.2088&longitude=106.8456" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/calendarByCity

The prayer times of every day of one month in a city, with the Hijri date of each day.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `city` | string | yes | City name in English, such as Jakarta. (e.g. Jakarta) |
| `country` | string | yes | Country name in English, such as Indonesia. (e.g. Indonesia) |
| `year` | integer | yes | Gregorian year, such as 2025. (e.g. 2025) |
| `month` | integer | yes | Gregorian month, from 1 to 12. (e.g. 1) |
| `method` | integer | no | Calculation method id. 20 is KEMENAG, the Indonesian method. (default 20) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asr` (string), `date` (string), `dhuhr` (string), `fajr` (string), `hijri` (string), `imsak` (string), `isha` (string), `maghrib` (string), `midnight` (string), `sunrise` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/calendarByCity?city=Jakarta&country=Indonesia&year=2025&month=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/dateConvert

Converts a date between the Gregorian and the Hijri calendar.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | yes | The date to convert as yyyy-mm-dd, in the calendar it is written in. (e.g. 2026-11-06) |
| `to` | string | yes | The calendar to convert to: hijri or gregorian. (one of hijri, gregorian; e.g. hijri) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `gregorian` (string), `hijri` (string), `hijriMonth` (string), `weekday` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/dateConvert?date=2026-11-06&to=hijri" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/qibla

The qibla direction from a place, in degrees clockwise from true north.

Scope: `social:read` · Units: 1 · Cached: 43200 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `latitude` | string | yes | Latitude from -90 to 90, such as -6.2088. (e.g. -6.2088) |
| `longitude` | string | yes | Longitude from -180 to 180, such as 106.8456. (e.g. 106.8456) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `direction` (number (double)), `latitude` (number (double)), `longitude` (number (double))

```bash
curl "https://api.hoshime.com/v1/aladhan/qibla?latitude=-6.2088&longitude=106.8456" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/asmaAlHusna

The 99 names of Allah with their Arabic form, transliteration and English meaning.

Scope: `social:read` · Units: 1 · Cached: 43200 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `arabic` (string), `meaning` (string), `number` (integer (int64)), `transliteration` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/asmaAlHusna" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/timingsByAddress

The prayer times at a free-text address on one date (today by default). The method defaults to KEMENAG.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `address` | string | yes | Free-text address, such as Jakarta, Indonesia. (e.g. Jakarta, Indonesia) |
| `date` | string | no | Date as yyyy-mm-dd. Omit it for today. |
| `method` | integer | no | Calculation method id. 20 is KEMENAG, the Indonesian method. (default 20) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asr` (string), `date` (string), `dhuhr` (string), `fajr` (string), `hijri` (string), `imsak` (string), `isha` (string), `maghrib` (string), `midnight` (string), `sunrise` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/timingsByAddress?address=Jakarta%2C+Indonesia" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/calendarByAddress

The prayer times of every day of one month at a free-text address, with the Hijri date of each day.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `address` | string | yes | Free-text address, such as Jakarta, Indonesia. (e.g. Jakarta, Indonesia) |
| `year` | integer | yes | Gregorian year, such as 2025. (e.g. 2025) |
| `month` | integer | yes | Gregorian month, from 1 to 12. (e.g. 1) |
| `method` | integer | no | Calculation method id. 20 is KEMENAG, the Indonesian method. (default 20) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asr` (string), `date` (string), `dhuhr` (string), `fajr` (string), `hijri` (string), `imsak` (string), `isha` (string), `maghrib` (string), `midnight` (string), `sunrise` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/calendarByAddress?address=Jakarta%2C+Indonesia&year=2025&month=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/gregorianCalendar

Every day of one Gregorian month with its Hijri date, the calendar that converts Gregorian to Hijri.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `year` | integer | yes | Gregorian year, such as 2026. (e.g. 2026) |
| `month` | integer | yes | Gregorian month, from 1 to 12. (e.g. 11) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `gregorian` (string), `hijri` (string), `weekday` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/gregorianCalendar?year=2026&month=11" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/hijriCalendar

Every day of one Hijri month with its Gregorian date, the calendar that converts Hijri to Gregorian.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `year` | integer | yes | Hijri year, such as 1448. (e.g. 1448) |
| `month` | integer | yes | Hijri month, from 1 to 12. (e.g. 12) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `gregorian` (string), `hijri` (string), `weekday` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/hijriCalendar?year=1448&month=12" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/hijriCalendarByCity

The prayer times of every day of one Hijri month in a city, such as the Ramadan imsakiyah schedule (Hijri month 9).

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `city` | string | yes | City name in English, such as Jakarta. (e.g. Jakarta) |
| `country` | string | yes | Country name in English, such as Indonesia. (e.g. Indonesia) |
| `year` | integer | yes | Hijri year, such as 1447. (e.g. 1447) |
| `month` | integer | yes | Hijri month, from 1 to 12. 9 is Ramadan. (e.g. 9) |
| `method` | integer | no | Calculation method id. 20 is KEMENAG, the Indonesian method. (default 20) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asr` (string), `date` (string), `dhuhr` (string), `fajr` (string), `hijri` (string), `imsak` (string), `isha` (string), `maghrib` (string), `midnight` (string), `sunrise` (string), `timezone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/hijriCalendarByCity?city=Jakarta&country=Indonesia&year=1447&month=9" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/currentTime

The current local time (HH:MM) and Unix timestamp in one IANA time zone.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `zone` | string | yes | IANA time zone name, such as Asia/Jakarta. (e.g. Asia/Jakarta) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `currentAt` (string), `localTime` (string), `zone` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/currentTime?zone=Asia%2FJakarta" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/aladhan/methods

The prayer calculation methods Aladhan supports, with the id to pass as method.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `id` (string), `key` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/aladhan/methods" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
