Returns today's Hijri date.
Convert for some other date? Send the date as parameter like thishttps://www.habibur.com/hijri/api01/date/?date=2021-01-01
For JSON, send format=jsonhttps://www.habibur.com/hijri/api01/date/?format=json
For raw date, send raw=yeshttps://www.habibur.com/hijri/api01/date/?raw=yes
To use it on your server side php page, you can easily call like this
print file_get_contents("https://www.habibur.com/hijri/api01/date/"); // the above code will print the hijri date.
Copy and paste this code into your static HTML page.
Hijri Date Today : <span> <script src='https://www.habibur.com/hijri/api01/date/?format=js'></script> </span>
You can further style the p/span to change font size color.
Use for anything you like, be it commercial or non-commercial use, as long as my server doesn't boggle down due to your frequent calls. I have no idea where the limit is.
A few thousands calls per day might be ok.
I shall check server load and if it rises significantly than might inform you back on a solution. Cache the result to reduce calls if needed.
Not required. But you can provide if you like so.