Logo

SEARCH ASTRO INSIGHT API DOCS

Home Vedic Astrology
POST Vedic API v1

Panchang Chart Image Sunrise

The Panchang Chart Image 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/chart/panchang/image/sunrise
Credit Cost
1 Credit
Avg Latency
~31ms
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 Image Sunrise.

Panchang Chart Image Sunrise

The Panchang Chart Image Sunrise API generates a rendered visual image of a Panchang chart where all Vedic almanac data is anchored to the local sunrise of the given date and location. It combines sunrise-relative Panchang computation with a fully customisable chart rendering engine, returning a chart image that faithfully represents the traditional Vedic almanac convention of reckoning the day from sunrise.

What This API Does

This endpoint accepts a date, time, timezone, and geographic coordinates, determines the local sunrise for that date and location, and computes the full Panchang using sunrise as the reference point. It then renders the resulting Panchang data into a styled chart image according to the visual configuration parameters provided in the request body. The API returns a finished chart image, handling both the astronomical computation and the visual rendering entirely on the server.

What Data It Returns

The response delivers a rendered Panchang chart image in which all displayed data is sunrise-anchored. The image includes:

  • Panchang Chart Layout — A structured chart diagram in the chosen regional style (North Indian, South Indian, or East Indian), with all elements computed from the local sunrise moment

  • Zodiac Signs — Displayed within the chart as traditional astrological symbols or as numbers, depending on the signSymbol setting

  • Planetary Positions — Planets placed within the chart according to their sidereal positions at sunrise, shown as symbols or abbreviated names based on the planetSymbol setting

  • Rendered Visual Elements — Chart borders, inner and outer grid lines, sign labels, and planet labels, all styled according to the provided color, size, and line-width configuration

Main Use Cases

  • Traditional Panchang Compliance — Generating chart images that adhere to classical Vedic almanac conventions, where the day and all its elements are reckoned from sunrise rather than midnight

  • Astrology & Jyotish Applications — Embedding sunrise-anchored Panchang chart images directly into Vedic astrology apps without requiring any client-side chart rendering

  • Hindu Calendar & Almanac Platforms — Displaying a visually accurate daily Panchang chart that matches the data shown in traditional printed almanacs

  • Kundali & Horoscope Report Generation — Including a sunrise-based Panchang chart image in PDF or web-based horoscope and consultation reports

  • Religious & Spiritual Portals — Showing a correctly anchored Panchang chart on daily Panchang pages, festival pages, or puja scheduling tools where sunrise-relative data is required

  • White-Label Astrology Products — Producing fully branded, sunrise-accurate chart images by customising colors, sizes, and styles to match a product's visual identity

Key Functionality

  • Sunrise-Anchored Computation — All Panchang elements rendered in the chart (Tithi, Nakshatra, Yoga, Karana, planetary positions, muhurtas) are calculated relative to the local sunrise, matching the traditional Vedic almanac standard

  • Automatic Sunrise Determination — The API internally computes the precise local sunrise for the given date, latitude, and longitude, so callers do not need to supply it separately

  • Multiple Chart Styles — Supports North Indian, South Indian, and East Indian chart layouts via the chartStyle parameter, catering to regional Vedic astrology traditions

  • Full Visual Customisation — Exposes granular control over every visual aspect of the chart: background color (bgColor), inner and outer line colors and widths (innerLineColor, outerLineColor, innerLineWidth, outerLineWidth), sign color (signColor), planet color (planetColor), chart size (chartSize), and font sizes for signs and planets (signFontSize, planetFontSize)

  • Symbol or Text Display — Signs can be rendered as traditional astrological symbols or as numbers (signSymbol), and planets can be shown as symbols or their abbreviated names (planetSymbol), giving flexibility for different audiences

  • Server-Side Rendering — The entire chart is rendered on the server, so clients receive a finished image with no dependency on client-side graphics libraries or rendering engines

  • Ayanamsha Support — Planetary positions within the chart are computed using the Ayanamsha system specified via the X-Ayanamsha header, ensuring compatibility with different schools of Vedic astrology

  • Location-Aware Precision — Sunrise time and all derived Panchang data are calculated for the exact latitude, longitude, and timezone provided, guaranteeing geographic accuracy for any location globally

  • Multi-Language Support — The Accept-Language header allows sign and planet labels within the chart to be rendered in the preferred language, supporting regional and international audiences

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
chartStyle
Optional
string
Chart display style. Supported values: north, south, east. Default is north.
Example: north
bgColor
Optional
string
Background color of the chart in HEX format. Default is #FFFEC9.
Example: #FFFEC9
innerLineColor
Optional
string
Inner line color of the chart in HEX format. Default is #FFC000.
Example: #FFC000
outerLineColor
Optional
string
Outer line color of the chart in HEX format. Default is #FFC000.
Example: #FFC000
signColor
Optional
string
Color of zodiac signs in HEX format. Default is #FF0000.
Example: #FF0000
planetColor
Optional
string
Color of planet names/symbols in HEX format. Default is #0000FF.
Example: #0000FF
chartSize
Optional
integer
Size of the chart in pixels. Default is 350.
Example: 350
innerLineWidth
Optional
integer
Width of inner chart lines. Default is 2.
Example: 2
outerLineWidth
Optional
integer
Width of outer chart lines. Default is 5.
Example: 5
signFontSize
Optional
integer
Font size of zodiac signs. Default is 15.
Example: 15
planetFontSize
Optional
integer
Font size of planet names/symbols. Default is 15.
Example: 15
signSymbol
Optional
string
Display zodiac sign symbol or number. Y = show symbol, N = show number. Default is N.
Example: N
planetSymbol
Optional
string
Display planet symbol or name. Y = show symbol, N = show name. Default is N.
Example: N

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 Image Sunrise.

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

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

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

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

How do I authenticate with the Panchang Chart Image 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 Chart Image 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 Chart Image 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 chart/panchang/image/sunrise
Presets:
Live Output
Click Send above to execute calculation.
Sample Output

API Categories