Calculate the precise position of the sun in the sky for any location and time. Get altitude (elevation angle), azimuth (compass direction), and other solar geometry data essential for solar energy calculations, shadow analysis, photography planning, and architectural design.
{
"status": "ok",
"error": null,
"data": {
"date": "01-22-2026",
"time": "14:30",
"coordinates": {
"latitude": 37.7749,
"longitude": -122.4194
},
"sun": {
"altitude": 0.13571365568367633,
"azimuth": 0.9137156885643708
}
}
}






Calculate the precise position of the sun in the sky for any location and time. Get altitude (elevation angle), azimuth (compass direction), and other solar geometry data essential for solar energy calculations, shadow analysis, photography planning, and architectural design.
A single authenticated GET with the location you care about — no SDK required.
GET /v1/sunposition?query=… x-api-key: your_key
Each request pulls from multiple upstream sources and computes the derived fields for you.
One structured object, typically under 200 ms — ready to render.
{ date, time, coordinates, … }
Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.
See every use caseOur Sun Position API provides real-time altitude and azimuth data that powers solar tracking systems and helps calculate optimal fixed panel angles. Integrate directly with your monitoring systems for maximum efficiency.
Get precise sun altitude and azimuth for any location and time. Plan when and where to shoot for the perfect light angle, predict shadow directions, and never miss golden hour again.
Feed precise sun position data into your design tools and simulations. Calculate shadow lengths, predict natural lighting patterns, and ensure buildings meet daylighting requirements.
Copy a working request, or install a typed SDK. Same endpoint, same key.
const res = await fetch("https://api.apiverve.com/v1/sunposition?lat=37.7749&lon=-122.4194&date=01-16-2026&time=14%3A30", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);Every related API ships with your key — no separate plans, no extra keys, one bill.
See pricingReady-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.
The same key unlocks every other APIVerve endpoint — reach for them when you need them.
Browse the catalog