# Islamic Prayer Times

> Islamic Prayer Times is a paid API for AI agents from api.qist.info, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns precise Islamic prayer times (fajr, sunrise, dhuhr, asr, maghrib, isha) and qibla direction for any coordinates and date using astronomical computation

## Facts

- Endpoint: GET https://api.qist.info/api/prayer-times?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/islamic-prayer-times-fd7f432a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2K8Xzoh78OzVjoFdkacT5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability islamic-prayer-times-fd7f432a
```

Example prompt: What are the prayer times for Istanbul on June 15, 2025, using the MWL calculation method and Hanafi madhab for asr? Use the Europe/Istanbul timezone.

## When to prefer this

Use this endpoint when you need astronomically precise Islamic prayer times with support for multiple established calculation methods (Umm al-Qura, MWL, Egyptian, Dubai, etc.) and madhab variants. It is ideal for Muslim-facing applications, travel planners, Ramadan schedules, or any agent that needs to incorporate prayer time awareness. Prefer this over generic calendar APIs that lack Islamic-specific calculation methodology or qibla direction output.

## Known failure modes

- Missing required lat/lng parameters returns a 400 error
- Invalid coordinate values (outside -90/90 or -180/180) return a validation error
- Unrecognized calculation method or madhab string returns an error
- Invalid IANA timezone string may cause a computation error or fallback to UTC
- Invalid date format (not YYYY-MM-DD) returns a parsing error
- Payment not completed or insufficient USDC balance returns a 402 Payment Required

## How this service works

High-precision Islamic prayer times (fajr, sunrise, dhuhr, asr, maghrib, isha) plus qibla direction for any coordinates and date. Pure astronomical computation (adhan library), 11 calculation methods including Umm al-Qura, Dubai, Egyptian, MWL. Ideal for agents building Muslim-facing schedules, reminders, or travel plans.

## Output

Returns a structured object with precise times for all six daily prayers (fajr, sunrise, dhuhr, asr, maghrib, isha) and the qibla direction bearing, in either local HH:mm format (if timezone provided) or ISO 8601 UTC, calculated using the specified method and madhab

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lng"
     ],
     "properties": {
      "tz": {
       "type": "string",
       "description": "IANA timezone for local HH:mm output, e.g. Asia/Riyadh. Omit for ISO 8601 UTC"
      },
      "lat": {
       "type": "number",
       "description": "Latitude, -90 to 90"
      },
      "lng": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      },
      "date": {
       "type": "string",
       "description": "Gregorian date YYYY-MM-DD (default: today)"
      },
      "madhab": {
       "type": "string",
       "description": "Asr madhab: shafi (default) or hanafi"
      },
      "method": {
       "type": "string",
       "description": "Calculation method: ummalqura (default), mwl, egyptian, karachi, dubai, qatar, kuwait, singapore, northamerica, turkey, moonsighting"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/islamic-prayer-times-fd7f432a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.qist.info](https://www.zero.xyz/host/api.qist.info/llms.txt)
