Skip to content
API96Astro API

Sunrise, Sunset, Moonrise & Twilights API

Available

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.

Endpoint
POST /v1/panchang/sun-moon-timings
Input
Date and place
Output
JSON
Delivery
Direct response
Cost
1 credit
Compute class
Standard

Example response

Fields in data (inferred from the example)

  • date · string
  • location · object
  • ayanamsha · object
  • sun_moon · object
Example response

Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and images are replaced by a placeholder.

Loading the example…

Request schema and every field: the Panchang & almanac reference.

Sunrise, Sunset, Moonrise & Twilights API: common questions

What 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.

What input does Sunrise, Sunset, Moonrise & Twilights need?

Date and place.

How 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.

Can 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.