📡 Prayer Times API Documentation

Base URL: https://gloucesterprayertimes.com/api/

1. Get All Mosques

Endpoint: /mosques.php
Description: Returns a list of all mosques.
GET https://gloucesterprayertimes.com/api/mosques.php

2. Get Prayer Types

Endpoint: /prayer-types.php
Description: Returns a sorted list of prayer types like Fajr, Dhuhr, etc.
GET https://gloucesterprayertimes.com/api/prayer-types.php

3. Get Timetable for a Day

Endpoint: /timetable.php
Description: Returns all prayer times for a given mosque_id and date.
GET https://gloucesterprayertimes.com/api/timetable.php?mosque_id=10&date=2025-08-01

4. Get Timetable for a Week

Endpoint: /week.php
Description: Returns 7 days of prayer times from the provided date.
GET https://gloucesterprayertimes.com/api/week.php?mosque_id=10&date=2025-08-01

5. Get Prayers for a Mosque

Endpoint: /prayers.php
Description: Lists all prayer entries (with dates) for a mosque.
GET https://gloucesterprayertimes.com/api/prayers.php?mosque_id=10

6. Get Upcoming Prayer for All Mosques

Endpoint: /upcoming-prayers.php
Description: Returns the next upcoming prayer for each mosque for today.
GET https://gloucesterprayertimes.com/api/upcoming-prayers.php

7. Get Today’s Prayer Times for All Mosques

Endpoint: /prayer-today.php
Description: Returns today's times for one specific prayer across all mosques.
GET https://gloucesterprayertimes.com/api/prayer-today.php?prayer_id=5

8. Get Upcoming Jummah (Friday) Prayers

Endpoint: /upcoming-jummah.php
Description: Returns the next upcoming Jummah-related prayers (e.g. 1st Jummah, 2nd Jummah, Jummah, Dhuhr) for all mosques on the next Friday from today.
GET https://gloucesterprayertimes.com/api/upcoming-jummah.php

Returned fields:

ℹ️ Need help? Contact the API administrator.