{"uid":"cap_hN6qrDtwrNx7Kf8SInO-K","slug":"islamic-prayer-times-cb5c8d83","name":"Islamic Prayer Times","description":"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.","url":"https://bazaar-catalog.vercel.app/api/prayer-times","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fk7NUfxs4Clp7gsRq9oZz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Daily prayer reminder for Muslim traveler","prompt":"I'm traveling to Istanbul tomorrow — can you get the prayer times for Istanbul (lat 41.0082, lng 28.9784) for 2024-11-15 using the Turkey calculation method in the Europe/Istanbul timezone so I can set my reminders?"},{"title":"Muslim-facing app schedule builder","prompt":"Build me the salah schedule for Dubai (lat 25.2048, lng 55.2708) for today using the Dubai calculation method, Shafi madhab, in Asia/Dubai timezone — I need all six prayer times and the qibla direction."},{"title":"Hanafi prayer times for North America mosque","prompt":"What are the Hanafi asr prayer times for Chicago (lat 41.8781, lng -87.6298) this Friday using the North America calculation method, timezone America/Chicago?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:38:25.570Z","isFirstParty":false}