SWF - Serving our communitySWF - Serving our communityBETA
HomeNewsEventsLocationsDonatePrayer TimesProjectsShopBook a Room
LoginDonate Now
Public API

API Documentation

Access prayer times, news, events, and more through our free public API. No authentication required.

Try Prayer Times APIView llms.txtOpenAPI Spec

No Auth Required

All endpoints are public

JSON Responses

Clean, structured data

AI-Friendly

Works with AI assistants

Prayer Times

Get daily prayer times and schedules for our mosque locations.

GET
/api/prayer-times

List all locations with prayer times configured

Try it

https://theswf.net/api/prayer-times
GET
/api/prayer-times/{location_slug}/today

Get today's prayer times for a specific location

Try it

https://theswf.net/api/prayer-times/al-jamia-al-zahra/today
GET
/api/prayer-times/{location_slug}/date/{date}

Get prayer times for a specific date (YYYY-MM-DD format)

Try it

https://theswf.net/api/prayer-times/al-jamia-al-zahra/date/2026-01-20
GET
/api/prayer-times/{location_slug}/month

Get prayer times for an entire month

Parameters

yearrequiredYear (e.g., 2026)
monthrequiredMonth number 1-12

Try it

https://theswf.net/api/prayer-times/al-jamia-al-zahra/month?year=2026&month=1
GET
/api/prayer-times/{location_slug}/ramadan

Get Ramadan timetable with suhoor/iftar times

Parameters

yearYear (optional, defaults to current year)

Try it

https://theswf.net/api/prayer-times/al-jamia-al-zahra/ramadan?year=2026

News & Articles

Access published news articles and announcements.

GET
/api/news

List published articles with pagination

Parameters

pagePage number (default: 1)
page_sizeItems per page (default: 20, max: 50)
category_idFilter by category ID
searchSearch in title and content
featuredFilter featured articles only

Try it

https://theswf.net/api/news?page=1&page_size=10
GET
/api/news/slug/{slug}

Get a single article by its URL slug

Try it

https://theswf.net/api/news/slug/ramadan-announcement
GET
/api/news/categories

List all news categories

Try it

https://theswf.net/api/news/categories

Events

Browse upcoming and past community events.

GET
/api/events

List published events with pagination

Parameters

pagePage number
page_sizeItems per page
upcomingShow only future events (true/false)
categoryFilter by category (community, educational, charity, religious, youth)
featured_onlyShow only featured events
searchSearch in title and description

Try it

https://theswf.net/api/events?page=1&page_size=10&upcoming=true
GET
/api/events/slug/{slug}

Get event details by URL slug

Try it

https://theswf.net/api/events/slug/community-iftar

Charity Projects

View active fundraising campaigns and charity projects.

GET
/api/projects

List active charity projects

Parameters

pagePage number
page_sizeItems per page
categoryFilter by category
searchSearch projects

Try it

https://theswf.net/api/projects?page=1&page_size=10
GET
/api/projects/featured

Get featured projects for display

Parameters

limitNumber of projects to return

Try it

https://theswf.net/api/projects/featured?limit=5
GET
/api/projects/slug/{slug}

Get project details by URL slug

Try it

https://theswf.net/api/projects/slug/orphan-sponsorship
GET
/api/projects/{project_id}/stats

Get donation statistics for a project

Shop Products

Browse products available in our community shop.

GET
/api/shop

List active products

Parameters

pagePage number
page_sizeItems per page
typeProduct type (physical, external, preorder, interest)
categoryFilter by category
featuredFeatured products only
searchSearch products

Try it

https://theswf.net/api/shop?page=1&page_size=10
GET
/api/shop/{slug}

Get product details by URL slug

Try it

https://theswf.net/api/shop/prayer-mat

Locations & Venues

Information about our mosque and community centre locations.

GET
/api/locations

List all active locations

Try it

https://theswf.net/api/locations
GET
/api/locations/main

Get the main mosque/centre details

Try it

https://theswf.net/api/locations/main
GET
/api/locations/{slug}

Get location details by URL slug

Try it

https://theswf.net/api/locations/al-jamia-al-zahra
GET
/api/locations/bookable

List locations with room booking enabled

Try it

https://theswf.net/api/locations/bookable

Room Booking

Check availability for room and hall bookings.

GET
/api/bookings/availability

Check available time slots for a bookable unit

Parameters

unit_idrequiredThe bookable unit ID
daterequiredStart date (YYYY-MM-DD)
endEnd date for range query (max 31 days)

Try it

https://theswf.net/api/bookings/availability?unit_id=123&date=2026-02-01

Donations

Public donation statistics.

GET
/api/donations/stats

Get public donation statistics (anonymized)

Try it

https://theswf.net/api/donations/stats

Example Response

Prayer times response from GET /api/prayer-times/al-jamia-al-zahra/today

{
  "date": "2026-01-19",
  "day_name": "Monday",
  "fajr_start": "06:07",
  "fajr_jamaat": "07:00",
  "sunrise": "08:13",
  "dhuhr_start": "12:22",
  "dhuhr_jamaat": "13:00",
  "asr_start": "14:37",
  "asr_jamaat": "15:00",
  "maghrib_start": "16:30",
  "maghrib_jamaat": "16:30",
  "isha_start": "17:52",
  "isha_jamaat": "18:30",
  "jummah_time": "13:00",
  "is_ramadan": false,
  "suhoor_end": null,
  "iftar": null
}

Need Help?

If you have questions about the API or need assistance integrating with our services, please get in touch.

Contact Us
SWF

Serving our community through faith, charity, and togetherness. Together we make a difference.

Community

  • News
  • Events
  • Projects
  • Prayer Times

Services

  • Donate
  • Book a Room
  • Shop
  • Locations

About

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2025 SWF. All rights reserved.

UK Registered Charity No: 1093750

HomeEventsDonatePrayerMore