AlGantori According to this documentation https://aladhan.com/prayer-times-api#GetTimingsByCity I am NOT able to guess the correct syntax. I have tried the following which don't seem to work nor return an error. http://api.aladhan.com/v1/timingsByCity?city=Corvallis&country=USA&method=2&date_or_timestamp=30-04-2022 http://api.aladhan.com/v1/timingsByCity/:30-04-2022?city=Corvallis&country=USA&method=2 http://api.aladhan.com/v1/timingsByCity?city=Corvallis&country=USA&method=2:/date_or_timestamp=30-04-2022 I plan to NOT call the API until the date change is detected in order to avoid unnecessary calls. In particular for Ramadhan I would like to retrieve the timings for the next day so the user can tell when Fajr for the next day is without having to wait for past midnight. Thank you.
meezaan @AlGantori Al Salaamu Alaykum! Are you have this issue again? The last time I flushed the cache and we got the new co-ordinates for those locations from the Google maps API. I will check a couple of other things and revert back.
meezaan @AlGantori Ah, hang on, I just saw your API calls. Here is the correct syntax: http://api.aladhan.com/v1/timingsByCity/30-04-2022?city=Corvallis&country=USA&method=2 No : after timingsByCity/. Hope this helps.
AlGantori meezaan removing the colon fixed the problem, updating the doc with actual example would help the next person, Thank you. I peeked around github but I could not find where the doc is really located (https://aladhan.com/prayer-times-api#GetTimingsByCity) otherwise I would have attempted adding my little example contribution 🙂 Since I have your attention, do you handle this tafseer API as well? because it currently does not support secure https which causes CORS (mixed content) errors in my app. I posted an issue here: https://github.com/Quran-Tafseer/tafseer_api/issues/71
meezaan @AlGantori yes the docs are with the API documentation on the aladhan.com website and also with the source code at https://github.com/islamic-network/api.aladhan.com/blob/master/routes/timings/v1/prayerTimes.php#L477. I'm afraid I don't look after the tafseer API - just https://alquran.cloud/api.