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

API Documentation

Access prayer times, news, events, Islamic content, and more through our free public API. No authentication required. Some endpoints are feature-gated — check /api/site-settings/public-features for availability.

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/public-stats

Get public donation statistics (anonymized)

Try it

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

Announcements

Public announcements and website banners.

GET
/api/announcements

List active public announcements (PSAs)

Try it

https://theswf.net/api/announcements
GET
/api/special-announcements/website

Get the active website banner announcement, if any

Try it

https://theswf.net/api/special-announcements/website

Site Settings

Public configuration and feature availability.

GET
/api/site-settings/public-features

List publicly enabled features (e.g. radio, lms, ibadah, oms)

Try it

https://theswf.net/api/site-settings/public-features

Search

Search across all public content.

POST
/api/search

Search across news, events, projects, and more. Returns results as an unauthenticated user.

Parameters

queryrequiredSearch query string
typesArray of content types to search (news, events, projects, shop, locations)
limitMax results per type (default: 5)

Radio

Requires "radio" feature

Community radio schedules, live sessions, and recordings. Requires the "radio" feature to be enabled.

GET
/api/radio/schedules/upcoming

Get upcoming radio schedule for the next 24 hours

Try it

https://theswf.net/api/radio/schedules/upcoming
GET
/api/radio/sessions/current

Get the currently live radio session, if any

Try it

https://theswf.net/api/radio/sessions/current
GET
/api/radio/recordings/public

Browse past radio recordings (if recordings are enabled)

Try it

https://theswf.net/api/radio/recordings/public

LMS (Learning)

Requires "lms" feature

Browse classes, categories, and verify certificates. Requires the "lms" feature to be enabled (except certificate verification).

GET
/api/lms/classes/public

List publicly available classes

Parameters

pagePage number (default: 1)
page_sizeItems per page (default: 20)
category_idFilter by category ID
searchSearch in class name and description

Try it

https://theswf.net/api/lms/classes/public
GET
/api/lms/classes/public/{identifier}

Get class details by ID or slug

GET
/api/lms/categories/public

List class categories

Try it

https://theswf.net/api/lms/categories/public
GET
/api/lms/certificates/verify/{code}

Verify a certificate by its code (always available, no feature gate)

Ibadah (Worship)

Requires "ibadah" feature

Duas, hadith collections, Quran, readings, and community campaigns. Requires the "ibadah" feature to be enabled.

GET
/api/ibadah/duas/public/categories

List dua categories

Try it

https://theswf.net/api/ibadah/duas/public/categories
GET
/api/ibadah/duas/public

List published duas

Try it

https://theswf.net/api/ibadah/duas/public
GET
/api/ibadah/duas/public/{id}

Get a single dua by ID

GET
/api/ibadah/hadith/public/collections

List hadith collections

Try it

https://theswf.net/api/ibadah/hadith/public/collections
GET
/api/ibadah/hadith/public/collections/{slug}

Get collection details with books

GET
/api/ibadah/hadith/public/collections/{slug}/books/{num}

Get hadiths within a specific book

GET
/api/ibadah/hadith/public/collections/{slug}/hadiths/{num}

Get a single hadith by number

GET
/api/ibadah/hadith/public/search

Search hadith text (English and Arabic)

Parameters

qrequiredSearch query
collectionFilter by collection slug
pagePage number
page_sizeItems per page
GET
/api/ibadah/readings/public

Browse public readings

Try it

https://theswf.net/api/ibadah/readings/public
GET
/api/ibadah/readings/public/{id}

Get a single reading by ID

GET
/api/ibadah/quran/public/surahs

List all 114 surahs

Try it

https://theswf.net/api/ibadah/quran/public/surahs
GET
/api/ibadah/quran/public/surahs/{num}

Get full surah with ayahs

GET
/api/ibadah/quran/public/pages/{num}

Get mushaf page with word-level data

GET
/api/ibadah/quran/public/juz/{num}

Get all ayahs in a juz (1-30)

GET
/api/ibadah/campaigns/public

List active public campaigns

Try it

https://theswf.net/api/ibadah/campaigns/public
GET
/api/ibadah/campaigns/public/featured

Get the featured campaign

GET
/api/ibadah/campaigns/public/{id}

Get campaign details with activities

GET
/api/ibadah/campaigns/public/{id}/contributors

Get per-activity contributor lists for a campaign

GET
/api/ibadah/campaigns/public/{id}/breakdown

Get activity breakdown by time period

OMS (Community Service)

Requires "oms" feature

Community boards with volunteer slots and drives. Requires the "oms" feature to be enabled.

GET
/api/oms/boards/public

List published community boards

Try it

https://theswf.net/api/oms/boards/public
GET
/api/oms/boards/public/{id_or_slug}

Get board details with groups, slots, and pledges

GET
/api/oms/drives/public

List active public volunteer drives

Try it

https://theswf.net/api/oms/drives/public
GET
/api/oms/drives/public/{id}

Get drive details

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.

Stay Updated

Get the latest news and updates from SWF

Community

  • News
  • Events
  • Projects
  • Prayer Times

Services

  • Donate
  • Book a Room
  • Shop
  • Locations

About

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

Developers

  • API Docs
  • OpenAPI Spec
  • llms.txt
  • RSS Feed

© 2025 SWF. All rights reserved.

UK Registered Charity No: 1093750

HomeEventsDonatePrayerMore