Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Panchang Calendar

The Panchang Calendar 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
Credit Cost
1 Credit
Avg Latency
~155ms
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.

Panchang Calendar

The Panchang Calendar API generates a complete month-view Panchang almanac for a given month, year, and geographic location. Rather than returning data for a single day, this endpoint delivers a full calendar's worth of daily Panchang entries in a single response, making it ideal for building monthly Hindu almanac views, scheduling interfaces, and calendar-driven astrology features.


What This API Does

This endpoint computes the core Panchang elements for every day within the specified month and year, calculated relative to the provided geographic coordinates and timezone. The Ayanamsha (sidereal zodiac correction) is configurable via a request header, ensuring compatibility with different Vedic astrology traditions. The result is a structured, day-by-day breakdown of the Hindu almanac for the entire month.


Data Returned

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

  • Tithi — The lunar day, its name, and the presiding deity

  • Nakshatra — The lunar mansion occupied by the Moon for that day

  • Yoga — The auspiciousness index for the day

  • Karana — The half-tithi unit applicable to the day

  • Vara — The weekday and its planetary ruler

  • Sunrise & Sunset times — Astronomically computed local sunrise and sunset for each date

  • Moonrise & Moonset times — Lunar rise and set timings per day

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

  • Chandra Rashi — The zodiac sign occupied by the Moon

  • Rahu Kalam and other inauspicious periods — Daily inauspicious time windows

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


Main Use Cases

  • Hindu calendar applications — Powering monthly Panchang calendar views with full almanac data for every day of the month

  • Festival and event planning — Surfacing religious festivals, fasting days, and auspicious dates across an entire month at a glance

  • Astrology platforms — Providing a month-level data feed for Vedic astrology apps that display daily Tithi, Nakshatra, and Yoga in a calendar grid

  • Scheduling and muhurta tools — Enabling users to scan an entire month to identify the most auspicious days for important activities such as travel, business launches, or ceremonies

  • Religious content platforms — Generating monthly almanac content for devotional apps, websites, and publications


Key Functionality

  • Full-month coverage — Returns Panchang data for every day of the specified month in a single API call, eliminating the need for repeated per-day requests

  • Location-aware calculations — Uses latitude, longitude, and timezone offset to compute astronomically accurate sunrise-relative values specific to any location worldwide

  • Configurable Ayanamsha — The X-Ayanamsha header allows selection of the sidereal correction system (e.g., Lahiri, Raman, KP), ensuring results align with the user's preferred Vedic tradition

  • Multi-language support — The Accept-Language header enables responses in the preferred regional or vernacular language

  • Time-of-day input — Accepts hour, minute, and second alongside the month and year, allowing precise anchoring of calculations to a specific time within the day for edge-case accuracy

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.

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

The Panchang Calendar 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?

The Panchang Calendar 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 endpoint consume?

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

How do I authenticate with the Panchang Calendar 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 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?

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
Presets:
Live Output
Click Send above to execute calculation.
Sample Output

API Categories