Detailed lunar phase & next phases
API · /astronomy-api
Astronomy API
A fast, fully-local astronomy and ephemeris engine: compute the equatorial (right-ascension/declination) and horizontal (azimuth/altitude) positions of the Sun, Moon and all planets for any observer and moment, get precise rise, set and transit (culmination) times for any body, read detailed lunar state (phase angle, named phase, illuminated fraction, apparent magnitude, geocentric distance, age since the last new moon and the dates of the next new/first-quarter/full/last-quarter moons), and list the exact equinoxes and solstices of any year. Every endpoint accepts input via the query string or the request body. Pure server-side computation (no third-party upstream), so responses are instant and always available. Ideal for weather and tide apps, astrophotography planners, calendars, solar/energy tools, Islamic and lunar calendars, and education.
API health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 78 ms
- Server probes · 24h
- Subscribers
- 3,300
- active
- Total calls
- 12
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 10,000 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- 10,000 calls/month, 2 req/s
- Sun/Moon/planet positions, rise-set, moon phase & seasons
- No credit card
Basic
€9.00 /month
- 150,000 calls / month
- 10 requests / second
- Hard cap (429 above quota, no overage)
- 150,000 requests/month, 10 req/s
- All endpoints, full planet set & detailed lunar data
- Commercial use included
- Email support
Pro
€29.00 /month
- 1,000,000 calls / month
- 25 requests / second
- Hard cap (429 above quota, no overage)
- 1,000,000 requests/month, 25 req/s
- High throughput for apps & batch ephemeris
- Priority email support
- Commercial use allowed
Mega
€79.00 /month
- 5,000,000 calls / month
- 100 requests / second
- Hard cap (429 above quota, no overage)
- 5,000,000 requests/month, 100 req/s
- Highest throughput for planners & data pipelines
- Priority support
- Commercial use allowed
Built by
Related APIs
Other APIs with overlapping tags.
Planets API
Physical and orbital data for the solar system and beyond: every planet, dwarf planet, major moon and the Sun with NASA fact-sheet values (mass, radius, surface gravity, density, escape velocity, mean temperature, orbital and rotation period, semi-major axis, moon count and rings), plus a searchable catalogue of more than 6,000 confirmed exoplanets from the NASA Exoplanet Archive (radius, mass, orbital period, equilibrium temperature, distance in light-years, host star, discovery year and method). Filter exoplanets by host star, discovery method, year, size or distance, compare solar-system bodies side by side, and look up any single body or exoplanet by name. Every endpoint accepts input via the query string or the request body and returns lean JSON. Pure server-side data (no third-party upstream), so responses are instant and always available. Ideal for education, EdTech, astronomy apps, data visualisation and science tools.
api.oanor.com/planets-api
Space Launch API
Track rocket launches from around the world. List upcoming and past launches with launch windows and live status, search by rocket or mission, get full detail for any launch, browse the space agencies behind them, and follow upcoming spaceflight events. Every launch comes as a clean record with the rocket configuration and family, launch service provider, mission name, type, orbit and description, pad and location, weather probability, webcast-live flag and imagery — sourced from The Space Devs’ Launch Library 2. Delivered through a fast, reliable API, ideal for countdown widgets, space-news sites, education tools, calendars and hobbyist apps.
api.oanor.com/spacelaunch-api
Moon API
Everything about the Moon from one fast, fully-local API. Get the current (or any date) lunar phase with illumination percentage, age in days, phase angle and waxing/waning state, plus the matching emoji; list the upcoming principal phases (new, first quarter, full, last quarter) with accurate UTC timestamps; render a full monthly lunar calendar; and look up the Moon’s zodiac sign and ecliptic longitude. Phase instants are computed with Jean Meeus’ astronomical algorithms and are accurate to about a minute. Every endpoint takes an optional ISO date and works by GET or JSON POST. Pure server-side compute with no third-party upstream, so responses are instant and always available. Ideal for calendar and weather apps, photography and astronomy tools, gardening, fishing and astrology features.
api.oanor.com/moon-api
Spaceflight News API
Latest space news — articles and blog posts about rockets, launches, missions and astronomy, aggregated from dozens of sources (SpaceNews, NASA, ESA, Spaceflight Now and more). Search the archive by keyword or fetch a single article. Great for space dashboards, newsletters, aggregators and education apps.
api.oanor.com/spacenews-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Astronomy API?
What's the rate limit for Astronomy API?
How much does Astronomy API cost?
Can I cancel my subscription anytime?
Is Astronomy 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/astronomy-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/astronomy-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/astronomy-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/astronomy-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.