Copy page

Copy page as Markdown for LLMs

View as Markdown

View this page as plain text


Open in ChatGPT

Ask ChatGPT about this page

Open in Claude

Ask Claude about this page

Lal Kitab Mahadasha Content API

Access Lal Kitab Mahadasha Content 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 interpretation content for a given Maha Dasha for the provided birth details.


API Endpoint

POST https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/mahadasha-content

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.

CodeLanguage
enEnglish
hiHindi
bnBengali
maMarathi
tmTamil
tlTelugu
mlMalayalam
knKannada

Support Article: Translating Vedic APIs into Different Languages


Headers

NameTypeDescription
Authorization *StringYour API Access Token, e.g. Bearer {token}

Request Body

NameTypeDescription
api_key *StringYour API key
lanStringLanguage code as per the table above; default is en
maha_dasha *StringThe Maha Dasha planet, e.g. Sun.

200: OK Lal Kitab Mahadasha Content Fetched Successfully

{
    "success": 1,
    "data": {
        "maha_dasha": "Sun",
        "content": {
            "key_areas": [
                {
                    "content": "Sun Mahadasha positions the native for leadership roles in government, administration, or corporate management with remarkable effectiveness. Decision-making abilities sharpen, and subordinates respond positively to the native's confident direction and clear vision. Political aspirations may surface or strengthen during this empowering period. The native should maintain integrity in positions of power as Sun exposes corruption ruthlessly. Offering water to the rising sun every morning and wearing ruby or copper ring on the ring finger are Lal Kitab remedies that amplify leadership qualities and ensure sustained authority throughout this powerful planetary period.",
                    "title": "Authority and Leadership"
                },
                {
                    "content": "Sun Mahadasha generally boosts physical vitality and stamina considerably, though the native must guard against eye problems, headaches, and heart-related concerns during challenging transits. Excessive heat in the body may cause skin irritations or blood pressure fluctuations. Morning exercise in sunlight and consuming wheat-based foods strengthen Sun energy positively and naturally. The native should avoid eating non-vegetarian food on Sundays as a Lal Kitab prescription for maintaining health. Keeping the kitchen fire burning bright and maintaining a clean hearth at home also supports robust physical health during this energizing dasha period.",
                    "title": "Health and Vitality"
                },
                {
                    "content": "Sun Mahadasha brings the father relationship into sharp focus, for better or for worse, demanding attention and resolution. The native may receive significant support or inheritance from the father during favorable transits. Alternatively, unresolved conflicts with paternal figures demand attention and honest resolution during this period. Serving the father and seeking his blessings before important ventures activates powerful Sun energy. If the father has passed, donating wheat and jaggery in his memory on Sundays fulfills karmic obligations. The native who honors paternal lineage experiences accelerated professional success.",
                    "title": "Father and Paternal Relations"
                },
                {
                    "content": "Sun Mahadasha opens doors to government contracts, administrative positions, and institutional partnerships with established organizations. The native gains favor with bureaucrats and political leaders through confident and authoritative conduct. Medical, pharmaceutical, and administrative careers receive substantial boosts during this favorable period. However, the native must avoid ego clashes with superiors as Sun creates both confidence and stubbornness simultaneously. Keeping a solid gold piece in the pocket and offering jaggery at religious places are Lal Kitab remedies that smooth professional interactions and attract beneficial governmental support.",
                    "title": "Career and Government Connections"
                }
            ],
            "summary": "Sun Mahadasha in Lal Kitab brings authority, self-confidence, and governmental connections to the forefront. The native experiences heightened leadership abilities and recognition from powerful institutions. Father figures and authority relationships become particularly significant. This dasha rewards bold initiative and pushes the native toward positions of command."
        }
    }
}

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/mahadasha-content' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'maha_dasha="Sun"' \
--form 'lan="en"' \

NodeJS Example

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/mahadasha-content',
  'headers': {
    'Authorization': 'Bearer {Your Auth Token}'
  },
  formData: {
    'api_key': '{Your API Key}',
    'maha_dasha': 'Sun',
    '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("maha_dasha", "Sun");
form.append("lan", "en");

var settings = {
  "url": "https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/mahadasha-content",
  "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/mahadasha-content"

payload = {'api_key': '{Your API Key}',
'maha_dasha': 'Sun',
    '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.