Panchang & almanac
AvailableSunrise, Sunset, Moonrise & Twilights API
Sunrise, sunset, solar noon, moonrise, moonset, the Moon's sign and its phase with illumination.
- POST /v1/panchang/sun-moon-timings
- 1 credit
curl https://api.96astroapi.com/v1/panchang/sun-moon-timings \ -H "Authorization: Bearer $ASTRO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "date": "2026-10-13", "timezone": "Asia/Kolkata", "latitude": 28.6139, "longitude": 77.209 }'
Overview
Sunrise, sunset, solar noon, moonrise, moonset, the Moon's sign and its phase with illumination.
Call it with POST /v1/panchang/sun-moon-timings. Input: date and place. Output: JSON, as a direct response. Each successful call costs 1 credit.
- POST /v1/panchang/sun-moon-timings
- 1 credit
- Date and place
Also one at a time
Try it
Response
Ready when you are
Press Run it to see the live response here.
Example response
Fields in dataMeasured from 6 real answers to different inputs: a required field was in every one.
datestringlocationobjectayanamshaobjectsun_moonobject
200Example response
Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.
Loading the example…
Request schema and every field: the Panchang & almanac reference.
Related endpoints
01What does the Sunrise, Sunset, Moonrise & Twilights API return?
Sunrise, sunset, solar noon, moonrise, moonset, the Moon's sign and its phase with illumination. The response's data object includes date, location, ayanamsha and sun_moon. See the reference for an example response.
02What input does Sunrise, Sunset, Moonrise & Twilights need?
Date and place.
03How much does a Sunrise, Sunset, Moonrise & Twilights call cost?
1 credit per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.
04Can I try it before paying?
Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.


