Waktu Solat Malaysia
Web API

Free and fast API to get prayer times across Malaysia. Official data from JAKIM, reliable for your applications.

Fast & Free

No cost, ready for public use

Official JAKIM Data

Trusted and accurate data source from Malaysia's government body

All Malaysia Zones

Complete coverage for Peninsular, Sabah & Sarawak

Trusted by

asar
Masjid Buntal
Masjid Pangkor Terapung
PahangGo

and many more...

Usage Example

See all available endpoints on the Swagger page.

Get current month prayer times
curl -X GET "https://api.waktusolat.app/v2/solat/WLY01" -H "Accept: application/json"
Response (JSON)
// Response will be shown here

Frequently Asked Questions

Important information about the Waktu Solat Malaysia API

What is the data source for prayer times?
Our prayer time data is sourced from JAKIM's (Jabatan Kemajuan Islam Malaysia) e-solat site. Data is updated regularly to ensure accuracy.
Is this API free to use?

Yes, this API is completely free for public use. We provide this service as a contribution to the Muslim community in Malaysia.

While there are no hard rate limits, we encourage responsible usage practices. Implement client-side caching to minimize redundant API calls. Prayer times don't change frequently, so cache responses for at least 24 hours. Use HTTP caching headers or local storage depending on your platform. This improves performance and reduces server load. Test your app to avoid fetching the same data multiple times in quick succession (for example, when the app has a countdown timer, make sure it doesn't call the API on every tick!). Batch your requests when possible and reuse cached responses.

Which states are supported?
We support all prayer time states in Malaysia only.
Does this API support specific dates?
Yes, you can request prayer times for any month and year using the year and month query parameters. We support data for the previous, current, and following year (if available). See Data Health for details.
Are you open to contributions?

Server hosting costs some money. We welcome financial contributions to help cover expenses and maintain the API. See GitHub Sponsors or contact me if you're interested in supporting the project.

Also, this API is open source on GitHub. Feel free to submit issues or pull requests if you have any suggestions or bug fixes.

Something seems off, where can I report it?
If you notice any discrepancies or issues with the prayer time data, please report them using the feedback form.