Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Panchang Calendar Sunrise

The Panchang Calendar Sunrise API provides Panchang related calculations and insights based on Vedic Astrology principles. This endpoint is designed for astrology applications, report generation systems, horoscope platforms, and developer integrations requiring structured JSON responses and reliable REST API access.

https://json.astroinsightapi.com/api/v1/panchang/calendar/sunrise
Credit Cost
1 Credit
Avg Latency
~139ms
Auth Type
Basic Auth
Format
JSON / UTF-8

Available Response Languages

🇬🇧 English en
🇮🇳 Hindi hi
🇮🇳 Marathi ma

API Overview & Calculation Details

Methodology and astrological context for Panchang Calendar Sunrise.

Panchang Calendar Sunrise

The Panchang Calendar Sunrise API generates a full month-view Panchang almanac where every daily entry is computed relative to the astronomical sunrise of that day at the given location. This is the sunrise-anchored counterpart to the standard Panchang Calendar endpoint, and it delivers the most traditionally precise form of the monthly Hindu almanac — the method followed in classical Vedic astrology and orthodox religious practice.


What This API Does

This endpoint calculates the complete set of Panchang elements for every day of the specified month and year, with all values anchored to the actual local sunrise at the provided latitude, longitude, and timezone. Because the Hindu day (Tithi) begins and ends at sunrise rather than midnight, tying calculations to sunrise produces results that are in strict accordance with traditional Panchang methodology. The Ayanamsha used for sidereal calculations is selectable via a request header.


Data Returned

For each day in the requested month, the response typically includes:

  • Tithi — The lunar day name, index, and presiding deity, computed from sunrise

  • Nakshatra — The lunar mansion occupied by the Moon at sunrise, with ruling deity

  • Yoga — The daily auspiciousness index derived from the combined solar and lunar longitudes at sunrise

  • Karana — The half-tithi unit in effect at sunrise

  • Vara — The weekday and its planetary lord

  • Sunrise & Sunset times — Precise astronomically computed local sunrise and sunset for each date and location

  • Moonrise & Moonset times — Daily lunar rise and set timings

  • Festivals and observances — Hindu festivals, Vrats (fasting days), and religious events for each date

  • Chandra Rashi — The zodiac sign occupied by the Moon

  • Rahu Kalam, Gulika Kalam, Yamaganda — Inauspicious daily time windows

  • Abhijit Muhurta — The most auspicious time slot of the day

  • Ayanamsha value — The sidereal correction applied per the selected system


Main Use Cases

  • Traditional Hindu calendar apps — Building monthly Panchang calendar views that strictly follow the sunrise-based day boundary, as used in orthodox almanacs and Panchangams

  • Religious and ritual scheduling — Helping priests, practitioners, and devotees identify auspicious and inauspicious days across an entire month using sunrise-accurate data

  • Vedic astrology platforms — Supplying a month-level, sunrise-anchored Panchang feed for horoscope, muhurta, and electional astrology features

  • Festival discovery — Surfacing the correct dates for festivals and Vrats that depend on the Tithi at sunrise (e.g., Ekadashi, Pradosh, Purnima)

  • Muhurta and event planning tools — Enabling users to scan a full month for the best days and time windows for weddings, travel, business, or other significant activities


Key Functionality

  • Sunrise-anchored daily calculations — All Panchang elements for each day are computed from the actual astronomical sunrise at the specified location, matching the traditional Vedic definition of a day and ensuring orthodox accuracy

  • Full-month coverage in one call — Returns data for every day of the specified month in a single request, avoiding the overhead of repeated per-day API calls

  • Location-aware — Uses latitude, longitude, and timezone offset to derive precise sunrise times and location-specific Panchang values for any place in the world

  • Configurable Ayanamsha — The X-Ayanamsha header allows selection of the sidereal correction system (e.g., Lahiri, Raman, KP), making the endpoint compatible with multiple Vedic astrology traditions

  • Multi-language support — The Accept-Language header enables responses in the preferred regional or vernacular language, supporting diverse user bases

  • Time-of-day input — Accepts hour, minute, and second in addition to month and year, allowing fine-grained anchoring for edge cases where the sunrise moment is near a Tithi or Nakshatra boundary

Request Parameters

Payload specifications for JSON request body.

application/json
Parameter Type Description & Example
day
Required
integer
Day of birth (1–31).
Example: 15
month
Required
integer
Month of birth (1–12).
Example: 9
year
Required
integer
Year of birth (e.g., 1994).
Example: 1994
hour
Required
integer
Hour of birth in 24-hour format (0–23).
Example: 12
min
Required
integer
Minute of birth (0–59).
Example: 30
sec
Optional
integer
Second of birth (0–59). Optional. If not provided, it is considered as 0.
Example: 30
lat
Required
float
Latitude of the birth location.
Example: 28.6139
lon
Required
float
Longitude of the birth location.
Example: 77.1025
tzone
Optional
float
Timezone offset from UTC. Optional. If not provided, it is considered as 5.5 (IST).
Example: 5.5

Required & Optional Headers

Header Key Value / Format Description
Authorization
Required
Basic {base64} Base64 encoded string of CLIENT_ID:CLIENT_SECRET.
Content-Type
Required
application/json Specifies JSON payload format in request body.
Accept-Language
Optional
en, hi, ta, te... Returns localized astrology output. Default: en
X-Ayanamsha
Optional
lahiri, raman, krishnamurti... Ayanamsha system: lahiri, raman, fagan_bradley, usha_shashi, krishnamurti, djwhal_khul, yukteshwar, jn_bhasin, suryasiddhanta, aryabhata. Default: lahiri

Frequently Asked Questions

Comprehensive developer guidance for Panchang Calendar Sunrise.

What is the Panchang Calendar Sunrise API and what data does it provide?

The Panchang Calendar Sunrise API provides authentic Panchang calculations based on Vedic astrology algorithms. It returns structured JSON data containing detailed planetary positions, house calculations, and astrological parameters suitable for Kundli apps, astrology websites, and developer applications.

What input parameters are required to call Panchang Calendar Sunrise?

The Panchang Calendar Sunrise API requires standard Vedic birth details: day, month, year, hour, min, sec, latitude (lat), longitude (lon), and timezone (tzone). All parameters can be passed in the JSON request body.

How many credits does the Panchang Calendar Sunrise endpoint consume?

Each calculation request to Panchang Calendar Sunrise consumes 1 API credit. The endpoint delivers high performance with an average response time of ~139ms.

How do I authenticate with the Panchang Calendar Sunrise API?

Authenticate using HTTP Basic Authentication by including your Base64 encoded client_id:client_secret credentials in the Authorization header (Authorization: Basic BASE64(client_id:client_secret)).

Can I get Panchang Calendar Sunrise responses in regional Indian languages?

Yes! The API supports multiple languages including English, Hindi, Marathi. Pass your desired language code (e.g. 'hi' for Hindi, 'ta' for Tamil, 'en' for English) in the Accept-Language request header.

Which Ayanamsha systems can be calculated with Panchang Calendar Sunrise?

Supported Ayanamshas include NC Lahiri (Default), BV Raman, Krishnamurti (KP), Fagan Bradley, Usha Shashi, Djwhal Khul, Sri Yukteshwar, JN Bhasin, Surya Siddhanta, and Aryabhata. Specify your choice using the X-Ayanamsha header.

What response format and HTTP codes does this API return?

The API returns clean JSON UTF-8 output. Successful requests return HTTP 200 OK with the computed data payload. Parameter validation errors return HTTP 422 with actionable error messages.

POST panchang/calendar/sunrise
Presets:
Live Output
Click Send above to execute calculation.
Sample Output

API Categories