📡 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.
  
    - mosque_id: ID of the mosque (e.g. 10)
 
    - date: Date in 
YYYY-MM-DD format (e.g. 2025-08-01) 
  
  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.
  
    - mosque_id: ID of the mosque (e.g. 10)
 
    - date: Start date in 
YYYY-MM-DD format (optional, defaults to today) 
  
  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.
  
    - mosque_id: ID of the mosque (e.g. 10)
 
  
  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.
  
    - prayer_id: ID of the prayer (e.g. 5 for Maghrib)
 
  
  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:
  
    mosque_name: Name of the mosque 
    city: City of the mosque 
    prayer_name: Name of the prayer (e.g. 1st Jummah, Dhuhr) 
    date: Friday date (YYYY-MM-DD) 
    start_time: Start time of prayer 
    jamaat_time: Jamaat time of prayer 
  
 
ℹ️ Need help? Contact the API administrator.