API Documentation
REST endpoint for Islamic prayer times across UK cities.
Endpoint
GET /api/prayer-times
Query Parameters
| Name | Required | Description |
|---|---|---|
| city | Yes* | UK city name. Required if lat/lng are not provided. |
| lat | Yes* | Latitude decimal. Required with lng if city is not provided. |
| lng | Yes* | Longitude decimal. Required with lat if city is not provided. |
| date | No | Date in YYYY-MM-DD format. Defaults to today. |
| month | No | Month in YYYY-MM format. Returns all days for the month. |
| school | No | madhab selection: hanafi (default) or shafi. |
Supported Cities
London, Birmingham, Manchester, Leicester, Bradford, Glasgow, Leeds, Liverpool, Sheffield
Examples
/api/prayer-times?city=Leicester
/api/prayer-times?city=Leicester&date=2026-03-09
/api/prayer-times?lat=52.6369&lng=-1.1398
/api/prayer-times?city=Leicester&month=2026-03&school=shafi