SEARCH ASTRO INSIGHT API DOCS
The Varshaphal Year Chart Image API provides Varshaphal 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/varshaphal/chart/image
en
hi
ma
Methodology and astrological context for Varshaphal Year Chart Image.
Generates and returns a Varshaphal (Solar Return) chart as a direct image file. This endpoint computes the solar return chart for the target year and renders it as a chart diagram image, returning the raw image binary rather than a JSON wrapper — making it ideal for use cases where the image needs to be streamed, downloaded, or embedded directly without additional parsing.
This endpoint accepts the individual's birth details, their current geographic location for the target year, and the desired Varshaphal year, then computes the solar return chart and renders it as a chart image. The Varshaphal chart is cast at the exact moment the Sun returns to its natal degree in the target year, using the current location to determine the house framework. The endpoint returns the chart as an image file, with full control over the visual style, color scheme, dimensions, and symbol preferences — enabling seamless integration into any interface or document pipeline that consumes image assets directly.
The response is a rendered chart image file containing:
Varshaphal solar return chart diagram — a complete visual chart with all planets placed in their solar return houses and signs
Ascendant and house structure — the Varshaphal Lagna and house divisions rendered within the chart layout
Planet and sign labels — zodiac signs and planet symbols or abbreviations rendered in the specified style and language
Full visual styling — chart rendered according to the specified style (North, South, or East Indian), background color, line colors, planet and sign colors, chart size, line widths, and font sizes
Direct image embedding — serving the chart image directly to a frontend tag, mobile image view, or canvas element without any intermediate JSON parsing
File download and export — enabling users to download their Varshaphal chart as an image file from an astrology app or web portal
PDF and document generation — inserting the chart image directly into report generation pipelines (e.g., PDF libraries, document templates) that consume raw image streams
Caching and CDN delivery — storing the rendered chart image on a CDN or object storage for fast repeated delivery without re-rendering
Print and sharing workflows — generating a high-quality chart image for printing, sharing via messaging apps, or attaching to emails
Returns the chart as a raw image file rather than a JSON response, making it directly consumable by image rendering contexts without additional parsing or decoding steps
Accepts both birth location and current location separately — birth data anchors the natal chart calculation, while current latitude, longitude, and timezone determine where the Varshaphal chart is cast for the target year
Accepts a target Varshaphal year (varshaphalYear) to render the solar return chart for any past, present, or future year
Supports multiple Ayanamsha systems (e.g., Lahiri, Raman, KP) via the X-Ayanamsha header for sidereal calculations aligned with the practitioner's tradition
Supports multiple chart styles — North Indian, South Indian, and East Indian formats (chartStyle) to match regional practitioner and user preferences
Accepts a comprehensive set of visual customization parameters — background color (bgColor), inner and outer line colors and widths, sign color, planet color, chart size in pixels, sign font size, and planet font size — enabling pixel-level control over the chart's appearance
Supports planet symbol styles (planetSymbol, signSymbol) to switch between traditional abbreviations and symbolic glyphs
Designed for localization — the Accept-Language header controls the language used for any text labels within the rendered chart
Complements the Varshaphal Year Chart and Varshaphal Year Chart Extended endpoints: use those when a JSON response with embedded chart data is needed, and this endpoint when a raw image file output is required
Payload specifications for JSON request body.
| 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
|
|
varshaphalYear
Optional
|
integer |
Varshaphal year.
Example:
2025
|
|
cLat
Required
|
float |
Current Latitude of the birth location.
Example:
28.6139
|
|
cLon
Required
|
float |
Current Longitude of the birth location.
Example:
77.1025
|
|
cTzone
Optional
|
float |
Current 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
|
| 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 |
Explore complementary endpoints in this category.
Comprehensive developer guidance for Varshaphal Year Chart Image.
The Varshaphal Year Chart Image API provides authentic Varshaphal 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.
The Varshaphal Year Chart Image 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.
Each calculation request to Varshaphal Year Chart Image consumes 1 API credit. The endpoint delivers high performance with an average response time of ~73ms.
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)).
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.
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.
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.