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 tried with the 3,000 credit signup bonus, 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: YOUR_API_KEY"{
"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.
Sunrise and sunset, day length, twilight times, moon phase, upcoming moon phases and eclipse predictions.
It is computed locally with public NOAA/USNO formulas and no external data source, so it is safe for commercial use.
Call GET /api/v1/astronomi/sun with lat, lon, tanggal (date) and tz.