Lal Kitab Horoscope Chart API
Access Lal Kitab Horoscope Chart from the DivineAPI Lal Kitab suite. Based on the principles of Lal Kitab (the Red Book of Vedic astrology), this endpoint returns the Lal Kitab horoscope (Teva) chart as an SVG image, a base64 image and chart data for the provided birth details.
API Endpoint
POST https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/horoscope-chart
Returns the requested Lal Kitab data in the response.
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 |
| lan | String | Language code as per the table above; default is en |
200: OK Lal Kitab 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\">1</text>\n <text x=\"90\" y=\"76\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">2</text>\n <text x=\"68\" y=\"94\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">3</text>\n <text x=\"159\" y=\"184\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">4</text>\n <text x=\"68\" y=\"275\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">5</text>\n <text x=\"90\" y=\"295\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">6</text>\n <text x=\"179\" y=\"207\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">7</text>\n <text x=\"270\" y=\"295\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">8</text>\n <text x=\"288\" y=\"273\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">9</text>\n <text x=\"198\" y=\"185\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">10</text>\n <text x=\"288\" y=\"94\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">11</text>\n <text x=\"270\" y=\"76\" text-anchor=\"middle\" style=\"fill:#000; font-size:12px;\" font-family=\"Tahoma, sans-serif\">12</text>\n\n\n \n \n \n \n \n \n \n \n \n <text x=\"10\" y=\"260\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Sa</text>\n <text x=\"10\" y=\"285\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ra</text>\n \n \n \n \n <text x=\"154\" y=\"272\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ma</text>\n <text x=\"179\" y=\"272\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ve</text>\n \n \n <text x=\"254\" y=\"350\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Me</text>\n \n \n <text x=\"330\" y=\"260\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Su</text>\n <text x=\"330\" y=\"285\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Mo</text>\n \n \n <text x=\"270\" y=\"177.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ju</text>\n \n \n <text x=\"330\" y=\"84.5\" style=\"fill:#000; font-size:12px;\" font=\"Tahoma\" font-family=\"sans-serif\">Ke</text>\n \n \n \n</svg>\n\n\n",
"base64_image": "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM2MCIgd2lkdGg9IjM2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICAKICAgIAogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjM2MCIgaGVpZ2h0PSIzNjAiIGZpbGw9InRyYW5zcGFyZW50IiBzdHJva2U9Ii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ICAgICAgICAgICAgICAgPHRleHQgeD0iMTc5IiB5PSIyNzIiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+VmU8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIAogICAgICAgICAgICAgICAgPHRleHQgeD0iMjU0IiB5PSIzNTAiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+TWU8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIAogICAgICAgICAgICAgICAgPHRleHQgeD0iMzMwIiB5PSIyNjAiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+U3U8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjMzMCIgeT0iMjg1IiBzdHlsZT0iZmlsbDojMDAwOyBmb250LXNpemU6MTJweDsiIGZvbnQ9IlRhaG9tYSIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiPk1vPC90ZXh0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAKICAgICAgICAgICAgICAgIDx0ZXh0IHg9IjI3MCIgeT0iMTc3LjUiIHN0eWxlPSJmaWxsOiMwMDA7IGZvbnQtc2l6ZToxMnB4OyIgZm9udD0iVGFob21hIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiI+SnU8L3RleHQ+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgIAogICAgICAgICAgICAgICAgPHRleHQgeD0iMzMwIiB5PSI4NC41IiBzdHlsZT0iZmlsbDojMDAwOyBmb250LXNpemU6MTJweDsiIGZvbnQ9IlRhaG9tYSIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiPktlPC90ZXh0PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAKICAgICAgICAKPC9zdmc+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/lal-kitab/horoscope-chart' \
--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 'lan="en"' \
NodeJS Example
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/horoscope-chart',
'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',
'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("lan", "en");
var settings = {
"url": "https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/horoscope-chart",
"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/lal-kitab/horoscope-chart"
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',
'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.