The Ambee Solar Parameters API provides solar position and sun timing data for a specified geographic location and timestamp. The API uses latitude, longitude, timezone, and time information to calculate key solar parameters, helping applications understand the sun’s position and daily movement at a given location.
Key features include solar azimuth and elevation angles, sunrise and sunset times, local time information and timezone details. These parameters can be used for applications such as solar energy planning, photovoltaic system optimization, daylight analysis, and location-based solar calculations.
Coverage
Global
Access current solar position and sun timing data for any location worldwide.
Retrieve present Solar parameters data using geographic coordinates (latitude/longitude).
x-api-key
Content-type
Accept-Language
lat
lng
locale
https://api.ambeedata.com/astronomical/solar-parameters/latest?lat=21&lng=77const http = require("https");
const options = {
"method": "GET",
"hostname": "api.ambeedata.com",
"port": null,
"path": "/astronomical/solar-parameters/latest?lat=21&lng=77",
"headers": {
"x-api-key": "API_KEY",
"Content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();