ready-to-use endpoints in this product, with JSON responses and consistent error handling.
Computed astronomy from public NOAA/USNO formulas: sunrise/sunset, day length, twilight, moon phase, upcoming moon phases, and eclipse predictions. Pure local computation — no external data source, commercially safe to use.
Computed astronomy from public NOAA/USNO formulas: sunrise/sunset, day length, twilight, moon phase, upcoming moon phases, and eclipse predictions. Pure local computation — no external data source, commercially safe to use.
ready-to-use endpoints in this product, with JSON responses and consistent error handling.
Can be tested on the free tier, then used in production through one API Indonesia key.
https://use.apiindonesia.id/api/v1/astronomi/sunReturns sunrise, sunset, solar noon, and day length for a given lat/lon and date. Handles polar night / midnight sun.
The Astronomy API fits lifestyle, photography, travel, agriculture, construction, and calendar apps that need sunrise/sunset, twilight, moon phase, and eclipse predictions from calculations.
Photography products need golden hour, blue hour, or moon phase for shoot planning.
Outdoor apps need day-length and twilight estimates for a specific location.
Calendars want to show moon phases or eclipse predictions as extra context.
Some outputs are approximate calculations. For high-precision scientific observation, use dedicated astronomy data from a suitable provider.
This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.
curl "https://use.apiindonesia.id/api/v1/astronomi/sun?lat=-6.2&lon=106.8&tanggal=2025-06-21&tz=%2B07:00" \
-H "x-api-key: aip_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"{
"data": {
"date": "2025-06-21",
"latitude": -6.2,
"longitude": 106.8,
"timezone": "+07:00",
"sunrise": "06:00",
"sunset": "17:46",
"solarNoon": "11:53",
"dayLength": 42343,
"declination": 23.44,
"equationOfTime": -0.76,
"polarPhase": "normal"
},
"meta": {
"disclaimer": "Hasil dihitung dari rumus astronomi publik (NOAA/USNO). Aksen ±2 menit adalah normal untuk terbit/terbenam.",
"source": "Computed (NOAA/USNO)"
}
}Hitung fase bulan, penerangan, dan jadwal bulan purnama berikutnya lewat REST API. Cocok untuk aplikasi fotografi, agrikultur, dan keagamaan.
Tampilkan fase bulan (penerangan, nama, usia) dan prediksi gerhana matahari/bulan berikutnya dari rumus astronomi publik — pasangan alami untuk jadwal sholat & kalender Hijriah.
Hitung waktu terbit/terbenam dan batas senja (civil/nautical/astronomical) dari rumus publik NOAA/USNO — satu panggilan REST, tanpa library astronomi di sisi klien.
Start free. Upgrade to Pro or Business, or buy pay as you go credits when you need a one-time top-up. Payments are processed through Sumopod.
Yearly saves 2 months
Do you want to skip subscriptions? Top up credits once from the dashboard and use them until they run out.
Open dashboardFor trying the API and early integration.
For projects that are starting to get real usage.
For production apps with higher traffic.
For high volume, SLA, or company contracts.
Quick answers to common questions about getting started, the free tier, API key security, data sources, and Sumopod billing.