Declination & equation of time
API · /solarposition-api
Solar Position API
Solar-position astronomy as an API, computed locally and deterministically with the NOAA solar-calculator algorithm. The position endpoint gives the sun's elevation (altitude above the horizon), azimuth (clockwise from true north), zenith angle and hour angle for any latitude, longitude, date and local time with a UTC offset — telling you exactly where the sun is in the sky and whether it is above the horizon. The declination endpoint gives the solar declination — the sun's angle north or south of the equator, about +23.44° at the June solstice and −23.44° in December — and the equation of time, the difference between apparent and mean solar time, for any date. The solar-noon endpoint gives the local clock time of solar noon, the peak (noon) elevation 90 − |latitude − declination| and the day length, handling polar day and polar night. Latitudes and longitudes are in degrees (north and east positive), dates are YYYY-MM-DD and times HH:MM:SS local. Everything is computed locally and deterministically, so it is instant and private. Ideal for solar-tracking, PV-panel-orientation, photography golden-hour, agriculture, shading-analysis and astronomy app developers, sun-path and daylight tools, and STEM teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is the sun's position in the sky; for sunrise and sunset clock times use a sunrise API and for solar irradiance and PV resource a solar-resource API.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 81 ms
- Server probes · 24h
- Subscribers
- 4,086
- active
- Total calls
- 76
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 3,000 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 3,000 calls/month
- 2 req/sec
- Position + declination + solar noon
- No credit card
Starter
€7.00 /month
- 40,000 calls / month
- 6 requests / second
- Hard cap (429 above quota, no overage)
- 40,000 calls/month
- 6 req/sec
- Elevation, azimuth, equation of time
- Email support
Pro
€18.00 /month
- 250,000 calls / month
- 15 requests / second
- Hard cap (429 above quota, no overage)
- 250,000 calls/month
- 15 req/sec
- Solar-tracking & PV-orientation pipelines
- Priority support
Mega
€55.00 /month
- 1,450,000 calls / month
- 40 requests / second
- Hard cap (429 above quota, no overage)
- 1,450,000 calls/month
- 40 req/sec
- Platform scale
- Dedicated SLA
Built by
Related APIs
Other APIs with overlapping tags.
Elevation API
Terrain elevation in metres above sea level for any coordinate — a single point or a batch of up to 50 points for route and grid profiles. Ideal for hiking and outdoor apps, mapping, drone flight planning, solar siting, flood and line-of-sight analysis.
api.oanor.com/elevation-api
Meteorites API
NASA's catalogue of 45,000+ meteorites recovered on Earth as an API. For each meteorite: its name, NASA id, classification (recclass, e.g. L5, Iron), mass in grams, whether it was seen to fall or simply found, the year, and the latitude/longitude where it was recovered. Look one up by name or id, find the meteorites NEAR any coordinate (great-circle distance), rank by mass or year, list a classification or year, or search. Great for space, education, mapping and museum apps. Distinct from asteroids and close-approach data — these are rocks already on the ground.
api.oanor.com/meteorites-api
Constellations API
The 88 modern IAU constellations as an API — the reference an astronomy app, planetarium or education tool needs. For each constellation: its official IAU abbreviation, English name, the Latin genitive used when naming stars (e.g. "Alpha Andromedae"), a size rank, the approximate centre in equatorial coordinates (right ascension / declination) and the constellation name in roughly 25 languages. Look one up by abbreviation or name, search across every language, find which constellation a sky position falls nearest to, or list them all. Distinct from stars-api (individual stars) — this is the reference for the constellations themselves. Served from memory — always fast.
api.oanor.com/constellations-api
Observatory Codes API
The IAU Minor Planet Center list of observatory codes as an API — every site the MPC uses to identify a telescope when it publishes astrometric observations of asteroids and comets. For each of 2,700+ codes: the 3-character code, the observatory name, its east longitude and the parallax constants (rho·cos φ', rho·sin φ'). From those constants the API derives each site's geocentric latitude and a -180..180 longitude, so you can find the observatories nearest any point on Earth with a great-circle (haversine) search. Look one up by code, search by name, list them all, or find the closest sites to a latitude/longitude. Distinct from telescope-api (optics maths) — this is the registry of real observing sites and where they are. Served from memory — always fast.
api.oanor.com/observatories-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Solar Position API?
What's the rate limit for Solar Position API?
How much does Solar Position API cost?
Can I cancel my subscription anytime?
Is Solar Position API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/solarposition-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/solarposition-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/solarposition-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/solarposition-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.