I’ve started a little to look into the possibility of using the power of www.suncalc.org (or suncalc.net).
I’ve contacted suncalc.org regarding output as json, since I did not find it on the page as if now.
In another project of mine I’ve used api.sunrise-sunset.org since it does output a json, than can easily be parsed for further use. However sunrise-sunset.org does not output the sun’s altitude and azimuth, but I have reached out to them asking if they could add it.
We’ll see what happens.