Free and fast API to get prayer times across Malaysia. Official data from JAKIM, reliable for your applications.
No cost, ready for public use
Trusted and accurate data source from Malaysia's government body
Complete coverage for Peninsular, Sabah & Sarawak
Trusted by
and many more...
See all available endpoints on the Swagger page.
curl -X GET "https://api.waktusolat.app/v2/solat/WLY01" -H "Accept: application/json"
// Response will be shown here
Important information about the Waktu Solat Malaysia API
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.
year and
month query parameters. We support data for
the previous, current, and following year (if available). See Data
Health for details.
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.