# Islamic Prayer Times

> Islamic Prayer Times is a paid API for AI agents from bazaar-catalog.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the six daily Islamic prayer times (fajr, sunrise, dhuhr, asr, maghrib, isha) plus qibla direction for any GPS coordinates and date, using 11 calculation methods.

## Facts

- Endpoint: GET https://bazaar-catalog.vercel.app/api/prayer-times
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/islamic-prayer-times-cb5c8d83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hN6qrDtwrNx7Kf8SInO-K

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-cb5c8d83
```

Example prompt: What are the prayer times for Mecca (lat 21.3891, lng 39.8579) today using the Umm al-Qura method, with times in Asia/Riyadh timezone and shafi madhab?

## When to prefer this

Choose this endpoint when you need astronomically precise Islamic prayer times with support for multiple regional calculation methods (Umm al-Qura, MWL, Egyptian, Dubai, etc.) and madhab variants. Ideal for Muslim-facing scheduling apps, travel planners, or reminder systems that need per-location, per-date salah times and qibla direction in a single call. Prefer over generic sun-event APIs because it understands Islamic calculation conventions and madhab-specific asr timing.

## Known failure modes

- Missing required lat or lng parameters returns a 400 error
- Invalid coordinate values outside -90/90 or -180/180 range cause computation failure
- Unrecognized calculation method string may default or error
- Invalid IANA timezone string causes fallback to UTC output
- Malformed date string (non-YYYY-MM-DD) may return today's times or an error
- Payment failure (x402) blocks the response if USDC balance is insufficient

## 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 JSON object with six named prayer times (fajr, sunrise, dhuhr, asr, maghrib, isha) expressed in either local HH:mm format (if tz provided) or ISO 8601 UTC, plus the qibla bearing in degrees from the given coordinates.

## 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-cb5c8d83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bazaar-catalog.vercel.app](https://www.zero.xyz/host/bazaar-catalog.vercel.app/llms.txt)
