API · /sunrise-api

Sunrise & Sunset API

healthy 3,675 Subscribers

Sunrise, sunset, solar noon, day length and the civil, nautical and astronomical twilight phases for any latitude/longitude and date — plus a multi-day range. Useful for agriculture, solar energy, photography, outdoor scheduling, smart-home automation and astronomy apps.

api.oanor.com/sunrise-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/sunrise-api/openapi.json
/api/sunrise-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
1122 ms
Server probes · 24h
Subscribers
3,675
active
Total calls
76
last 7 days
status Full status page → · 75 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 12,000 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 12,000 requests/month at 2 rps
  • Single date sunrise, sunset, solar noon and twilight
  • No credit card
Sign in to subscribe

Basic

€8.00 /month

  • 150,000 calls / month
  • 8 requests / second
  • Hard cap (429 above quota, no overage)
  • 150,000 requests/month at 8 rps
  • Civil, nautical and astronomical twilight
  • Commercial use allowed
Sign in to subscribe

Pro

€24.00 /month

  • 750,000 calls / month
  • 20 requests / second
  • Hard cap (429 above quota, no overage)
  • 750,000 requests/month at 20 rps
  • Multi-day range queries in one call
  • Day-length and golden-hour fields
  • Email support
Sign in to subscribe

Mega

€59.00 /month

  • 3,000,000 calls / month
  • 50 requests / second
  • Hard cap (429 above quota, no overage)
  • 3,000,000 requests/month at 50 rps
  • Bulk multi-location batch endpoint
  • 99.9% uptime SLA
  • Priority support
Sign in to subscribe

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

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.oanor.com/astronomy-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

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Sunrise & Sunset API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Sunrise & Sunset API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Sunrise & Sunset API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Sunrise & Sunset API cost?
Sunrise & Sunset API has a free tier with 100 calls / month. Paid plans start at €8.00 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Sunrise & Sunset API GDPR-compliant?
All requests to Sunrise & Sunset API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

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/sunrise-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/sunrise-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/sunrise-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/sunrise-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 in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 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 in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.