Varshphal Horoscope Chart API
The Varshphal Horoscope Chart API is part of the Varshphal (annual horoscope) suite and returns a divisional chart of the annual horoscope as an SVG image, for the chosen year and the requested chart id (D1 to D60). Provide the birth details, the varshphal_year, and the chart id in the URL path.
API Endpoint
POST https://astroapi-3.divineapi.com/indian-api/v1/varshphal/horoscope-chart/:chart_id
Returns the requested divisional chart of the annual (Varshphal) horoscope as an SVG image in the response.
Chart Identifier (chart_id)
chart_id defines which chart you want to generate.
chalit - Chalit Chart
SUN - Sun Chart
MOON - Moon Chart
D1 - Birth/Lagna Chart
D2 - Hora Chart
D3 - Dreshkan Chart
D4 - Chaturthamsha Chart
D5 - Panchamsha Chart
D7 - Saptamansha Chart
D9 - Navamsha Chart
D10 - Dashamansha Chart
D12 - Dwadashamsha Chart
D16 - Shodashamsha Chart
D20 - Vishamansha Chart
D24 - Chaturvimshamsha Chart
D27 - Bhamsha Chart
D30 - Trishamansha Chart
D40 - Khavedamsha Chart
D45 - Akshvedansha Chart
D60 - Shashtyamsha Chart
cuspal - Cuspal Chart
Supported Language Codes
You can localize the API response by passing the lan parameter in the request body.
| Code | Language |
|---|---|
| en | English |
| hi | Hindi |
| bn | Bengali |
| ma | Marathi |
| tm | Tamil |
| tl | Telugu |
| ml | Malayalam |
| kn | Kannada |
Support Article: Translating Vedic APIs into Different Languages
Headers
| Name | Type | Description |
|---|---|---|
| Authorization * | String | Your API Access Token, e.g. Bearer {token} |
Request Body
| Name | Type | Description |
|---|---|---|
| api_key * | String | Your API key |
| full_name * | String | Full name, e.g. Rahul Kumar |
| day * | Integer | Date of birth, e.g. 24 |
| month * | Integer | Month of birth, e.g. 05 |
| year * | Integer | Year of birth, e.g. 2023 |
| hour * | Integer | Hour (24-hour format), e.g. 14 |
| min * | Integer | Minute, e.g. 40 |
| sec * | Integer | Second, e.g. 43 |
| gender * | String | Gender, e.g. male |
| place * | String | Place of birth, e.g. New Delhi |
| lat * | Float | Latitude, e.g. 28.7041 |
| lon * | Float | Longitude, e.g. 77.1025 |
| tzone * | Float | Timezone, e.g. 5.5 — See Timezone List |
| varshphal_year * | Integer | The year for which the annual (Varshphal) horoscope is calculated, e.g. 2024 |
| lan | String | Language code as per the table above; default is en |
200: OK Horoscope Chart Fetched Successfully
{
"success": 1,
"data": {
"svg": "<svg height=\"360\" width=\"360\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n \n \n <rect x=\"0\" y=\"0\" width=\"360\" height=\"360\" fill=\"transparent\" stroke=\"#000\" stroke-width=\"4\"></rect>\n\t<line x1=\"0\" y1=\"0\" x2=\"360\" y2=\"360\" stroke=\"#000\" stroke-width=\"2\"></line>\n\t<line x1=\"0\" y1=\"360\" x2=\"360\" y2=\"0\" stroke=\"#000\" stroke-width=\"2\"></line>\n\t<line x1=\"0\" y1=\"180\" x2=\"180\" y2=\"0\" stroke=\"#000\" stroke-width=\"2\"></line>\n\t<line x1=\"180\" y1=\"0\" x2=\"360\" y2=\"180\" stroke=\"#000\" stroke-width=\"2\"></line>\n\t<line x1=\"360\" y1=\"180\" x2=\"180\" y2=\"360\" stroke=\"#000\" stroke-width=\"2\"></line>\n\t<line x1=\"0\" y1=\"180\" x2=\"180\" y2=\"360\" stroke=\"#000\" stroke-width=\"2\"></line>\n\n \n\n <text x=\"180\" y=\"164\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">9</text>\n <text x=\"90\" y=\"76\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">10</text>\n <text x=\"68\" y=\"94\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">11</text>\n <text x=\"159\" y=\"184\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">12</text>\n <text x=\"68\" y=\"275\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">1</text>\n <text x=\"90\" y=\"295\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">2</text>\n <text x=\"179\" y=\"207\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">3</text>\n <text x=\"270\" y=\"295\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">4</text>\n <text x=\"288\" y=\"273\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">5</text>\n <text x=\"198\" y=\"185\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">6</text>\n <text x=\"288\" y=\"94\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">7</text>\n <text x=\"270\" y=\"76\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">8</text>\n\n\n \n <text x=\"170\" y=\"82\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">As</text>\n \n \n <text x=\"75\" y=\"30\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Pl</text>\n \n \n <text x=\"10\" y=\"84.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Sa</text>\n \n \n <text x=\"84\" y=\"159.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ma</text>\n <text x=\"84\" y=\"184.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ne</text>\n <text x=\"84\" y=\"209.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ra</text>\n \n \n <text x=\"10\" y=\"260\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Me</text>\n <text x=\"10\" y=\"285\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ur</text>\n \n \n <text x=\"52.5\" y=\"350\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Su</text>\n <text x=\"77.5\" y=\"350\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ve</text>\n <text x=\"102.5\" y=\"350\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ju</text>\n \n \n \n \n \n \n \n \n <text x=\"270\" y=\"177.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ke</text>\n \n \n \n \n <text x=\"254\" y=\"30\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Mo</text>\n \n</svg>\n\n\n",
"data": {
"1": {
"sign_no": 9,
"planet": [
{
"name": "Ascendant",
"symbol": "As"
}
]
},
"2": {
"sign_no": 10,
"planet": [
{
"name": "Pluto",
"symbol": "Pl"
}
]
},
"3": {
"sign_no": 11,
"planet": [
{
"name": "Saturn",
"symbol": "Sa"
}
]
},
"4": {
"sign_no": 12,
"planet": [
{
"name": "Mars",
"symbol": "Ma"
},
{
"name": "Neptune",
"symbol": "Ne"
},
{
"name": "Rahu",
"symbol": "Ra"
}
]
},
"5": {
"sign_no": 1,
"planet": [
{
"name": "Mercury",
"symbol": "Me"
},
{
"name": "Uranus",
"symbol": "Ur"
}
]
},
"6": {
"sign_no": 2,
"planet": [
{
"name": "Sun",
"symbol": "Su"
},
{
"name": "Venus",
"symbol": "Ve"
},
{
"name": "Jupiter",
"symbol": "Ju"
}
]
},
"7": {
"sign_no": 3,
"planet": []
},
"8": {
"sign_no": 4,
"planet": []
},
"9": {
"sign_no": 5,
"planet": []
},
"10": {
"sign_no": 6,
"planet": [
{
"name": "Ketu",
"symbol": "Ke"
}
]
},
"11": {
"sign_no": 7,
"planet": []
},
"12": {
"sign_no": 8,
"planet": [
{
"name": "Moon",
"symbol": "Mo"
}
]
}
},
"base64_image": "data:image/svg+x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4dD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgCiAgICAgICAgICAgICAgICA8dGV4dCB4PSIxMCIgeT0iODQuNSIgc3R5bGU9ImZpbGw6IzAwMDsgZm9udC1zaXplOjEycHg7IiBmb250PSJUYWhvbWEiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIj5TYTwvdGV4dD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgCiAgICAgICAgICAgICAgICA8dGV4dCB4PSI4NCIgeT0iMTU5LjUiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+TWE8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9Ijg0IiB5PSIxODQuNSIgc3R5bGU9ImZpbGw6IzAwMDsgZm9udC1zaXplOjEycHg7IiBmb250PSJUYWhvbWEiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIj5OZTwvdGV4dD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHRleHQgeD0iODQiIHk9IjIwOS41IiBzdHlsZT0iZmlsbDojMDAwOyBmb250LXNpemU6MTJweDsiIGZvbnQ9IlRhaG9tYSIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiPlJhPC90ZXh0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAKICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjEwIiB5PSIyNjAiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+TWU8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjEwIiB5PSIyODUiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+VXI8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIAogICAgICAgICAgICAgICAgPHRleHQgeD0iNTIuNSIgeT0iMzUwIiBzdHlsZT0iZmlsbDojMDAwOyBmb250LXNpemU6MTJweDsiIGZvbnQ9IlRhaG9tYSIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiPlN1PC90ZXh0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8dGV4dCB4PSI3Ny41IiB5PSIzNTAiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+VmU8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjEwMi41IiB5PSIzNTAiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+SnU8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIAogICAgICAgIAogICAgCiAgICAgICAgCiAgICAKICAgICAgICAKICAgIAogICAgICAgICAgICAgICAgPHRleHQgeD0iMjcwIiB5PSIxNzcuNSIgc3R5bGU9ImZpbGw6IzAwMDsgZm9udC1zaXplOjEycHg7IiBmb250PSJUYWhvbWEiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIj5LZTwvdGV4dD4KICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgCiAgICAgICAgCiAgICAKICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjI1NCIgeT0iMzAiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+TW88L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPC9zdmc+CgoK"
}
}Code Integration Examples
Below are examples for using this API in different programming environments.
cURL Example
curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/varshphal/horoscope-chart/D1' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'full_name="Test"' \
--form 'day="24"' \
--form 'month="05"' \
--form 'year="2023"' \
--form 'hour="14"' \
--form 'min="40"' \
--form 'sec="43"' \
--form 'gender="male"' \
--form 'place="New Delhi"' \
--form 'lat="28.7041"' \
--form 'lon="77.1025"' \
--form 'tzone="5.5"' \
--form 'varshphal_year="2024"' \
--form 'lan="en"' \
NodeJS Example
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-3.divineapi.com/indian-api/v1/varshphal/horoscope-chart/D1',
'headers': {
'Authorization': 'Bearer {Your Auth Token}'
},
formData: {
'api_key': '{Your API Key}',
'full_name': 'Test',
'day': '24',
'month': '05',
'year': '2023',
'hour': '14',
'min': '40',
'sec': '43',
'gender': 'male',
'place': 'New Delhi',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'varshphal_year': '2024',
'lan': 'en'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
JavaScript (jQuery AJAX) Example
var form = new FormData();
form.append("api_key", "{Your API Key}");
form.append("full_name", "Test");
form.append("day", "24");
form.append("month", "05");
form.append("year", "2023");
form.append("hour", "14");
form.append("min", "40");
form.append("sec", "43");
form.append("gender", "male");
form.append("place", "New Delhi");
form.append("lat", "28.7041");
form.append("lon", "77.1025");
form.append("tzone", "5.5");
form.append("varshphal_year", "2024");
form.append("lan", "en");
var settings = {
"url": "https://astroapi-3.divineapi.com/indian-api/v1/varshphal/horoscope-chart/D1",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer {Your Auth Token}"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});Python Example
import requests
url = "https://astroapi-3.divineapi.com/indian-api/v1/varshphal/horoscope-chart/D1"
payload = {'api_key': '{Your API Key}',
'full_name': 'Test',
'day': '24',
'month': '05',
'year': '2023',
'hour': '14',
'min': '40',
'sec': '43',
'gender': 'male',
'place': 'New Delhi',
'lat': '28.7041',
'lon': '77.1025',
'tzone': '5.5',
'varshphal_year': '2024',
'lan': 'en'}
headers = {
'Authorization': 'Bearer {Your Auth Token}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
This API serves as a foundation for further astrological computations, including Kundli generation, planetary charts, yogas, and personalized reports. It provides all key birth-time astrological parameters such as tithi, nakshatra, rashi, yoga, karana, varna, gana, and planetary influences, essential for deeper Vedic analysis.