How to Display Accurate Prayer Times via API Instead of Web Scraping?

Featured Imgs 23

Hi all,
Im currently working on a WordPress website where I display daily prayer times. Right now, Im using web scraping to fetch the prayer timings on this website salatalert.com, but Im facing issues with reliability and accuracy. The scraped data sometimes fails to update correctly, and its also affecting the sites performance.

I was wondering if theres a way to replace the scraping method with an API for more accurate and reliable results? Are there any good APIs available for fetching daily prayer times, specifically for regions like Saudi Arabia? Ideally, Im looking for an API that integrates easily with WordPress and allows for timezone adjustments.

Any recommendations or insights on how to implement this efficiently would be appreciated.