Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Panchang Chart

The Panchang Chart 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/chart/panchang
Credit Cost
1 Credit
Avg Latency
~67ms
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 Chart.

The Panchang Chart endpoint generates a structured Vedic astrological chart based on a given date, time, and geographic location. It computes and returns the full chart data representation of the Panchang — the traditional Hindu almanac — in a structured format suitable for rendering or further processing by the client.

This is the base chart endpoint in the Panchang Chart family. Related variants include /sunrise (chart anchored to the sunrise moment), /extended (richer metadata per element), /extended/sunrise (extended data at sunrise), and /image variants that return a pre-rendered chart image instead of structured data.

What it returns

The response contains the computed chart data for the specified moment and location, including:

  • Planetary positions mapped to houses and zodiac signs within the chart layout

  • Ascendant (Lagna) placement and degree

  • Chart structure data (house cusps, sign boundaries) formatted according to the requested chart style

  • Nakshatra assignments for each planet

  • Retrograde status indicators

  • Visual styling metadata (colors, font sizes, line widths, symbol preferences) reflecting the customization options passed in the request headers

Main use cases

  • Rendering a Panchang chart on the client side using the returned structured data (e.g., North Indian, South Indian, or East Indian chart styles)

  • Powering daily Panchang displays in astrology applications and websites

  • Generating chart data for a specific birth moment or event for Vedic astrological analysis

  • Feeding chart data into interpretation engines or report generators that need positional layout information

  • Supporting Muhurta (auspicious timing) tools that display the planetary configuration for a chosen moment

Key functionality

  • Accepts precise date and time input (day, month, year, hour, minute, second) along with timezone offset

  • Takes geographic coordinates (latitude and longitude) for location-specific chart calculation

  • Supports configurable Ayanamsha (sidereal zodiac offset system) via request header, allowing compatibility with different Vedic traditions (e.g., Lahiri, Raman, KP)

  • Returns chart data structured for direct use in chart-rendering UIs, with styling parameters (chart size, colors, line widths, font sizes, symbol types) respected in the output

  • Supports localization via the Accept-Language header, enabling planet names, sign names, and other labels to be returned in the preferred language

  • Serves as the lightweight base variant — use /extended for additional classical Vedic attributes per planet, or /image variants when a pre-rendered chart graphic is needed instead of raw data

 

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

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

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

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

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

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

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

API Categories