DocsDeveloper API

Developer API

Access your mosque's data programmatically with API keys and receive real-time updates via webhooks.

1

Create an API key

Navigate to 'Developer' in the sidebar. Click 'Create API Key' and give it a name (e.g. 'Website Integration'). Choose permissions: read prayer times, read notices, or full access. The key is shown once — copy it immediately.

Developer API page showing API keys and webhook configuration
The Developer page — create API keys and configure webhooks
2

Use the REST API

Use your API key in the Authorization header to fetch prayer times, notices, events, and display settings. The API returns JSON and supports filtering by date range.

Example Request
GET /api/v1/prayer-times?date=2026-03-14
Authorization: Bearer pd_live_a1b2c3d4...
// Response
{ "date": "2026-03-14", "fajr": { "start": "05:12", "iqamah": "05:45" }, "sunrise": "06:48", "dhuhr": { "start": "12:15", "iqamah": "13:30" }, "asr": { "start": "15:42", "iqamah": "16:15" }, "maghrib": { "start": "18:23", "iqamah": "18:28" }, "isha": { "start": "19:45", "iqamah": "20:15" } }
3

Configure webhooks

Set up webhooks to receive real-time notifications when prayer times are updated, notices change, or settings are modified. Enter your webhook URL and select which events to subscribe to.

Keep your API key secret
Never expose your API key in client-side code or public repositories. Use environment variables and server-side code to make API calls.

Common use case: Fetch today's prayer times from the API and display them on your mosque's main website, digital signage, or mobile app — keeping everything in sync automatically.