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 Antardasha Content API

Access Lal Kitab Antardasha 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 and Antar Dasha for the provided birth details.


API Endpoint

POST https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-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
antar_dasha *StringThe Antar Dasha planet, e.g. Moon.
maha_dasha *StringThe Maha Dasha planet, e.g. Sun.

200: OK Lal Kitab Antardasha Content Fetched Successfully

{
    "success": 1,
    "data": {
        "maha_dasha": "Sun",
        "antar_dasha": "Moon",
        "content": {
            "key_areas": [
                {
                    "title": "Emotional Balance and Confidence",
                    "content": "Moon's nurturing energy softens the Sun's intense authority, creating a beautiful balance between strength and sensitivity during this period. The native develops heightened emotional intelligence that proves invaluable in both personal and professional settings. Self-confidence grows organically without becoming arrogance. Creative imagination flourishes and the native finds innovative solutions to longstanding problems. Mental peace prevails as the harmonious planetary friendship translates into inner contentment and reduced anxiety about the future."
                },
                {
                    "title": "Public Recognition and Social Status",
                    "content": "The Sun-Moon friendship creates a magnetic public presence that draws admiration and support from all social quarters during this period. The native gains popularity in their community and may receive awards or public honors. Political ambitions receive favorable cosmic support during this auspicious combination. Media attention and social media presence grow organically. Women in positions of power become strong allies and supporters. The native's mother or a maternal figure plays a particularly beneficial role in advancing their career and social standing."
                },
                {
                    "title": "Family and Domestic Harmony",
                    "content": "This combination strongly favors family life and domestic happiness during its duration. Relations with parents improve dramatically, especially with the mother. Home renovation or purchase of a new residence brings lasting satisfaction and comfort. Family gatherings become joyful occasions filled with warmth and celebration. The native's spouse feels emotionally supported and the marital bond strengthens considerably. Children respond positively to the native's balanced parenting approach that combines discipline with genuine affection and understanding."
                },
                {
                    "title": "Health and Wellness",
                    "content": "Physical health remains strong as the Sun provides vitality while the Moon ensures emotional well-being during this harmonious period. Skin problems clear up and the native's complexion improves noticeably. Water-based therapies and moonlight meditation prove especially beneficial for overall wellness. The native should drink water stored in a silver vessel and consume milk-based preparations regularly. Eye health requires gentle attention, and wearing pearl jewelry or keeping a silver square piece enhances the Moon's protective influence on overall health."
                }
            ],
            "summary": "Sun Mahadasha with Moon Antardasha creates a luminous and emotionally enriching period in Lal Kitab. Sun and Moon share a deep friendship, representing the father-mother cosmic pair. This combination blesses the native with emotional stability, public recognition, enhanced intuition, and harmonious relationships with authority figures and family."
        }
    }
}

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

NodeJS Example

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

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

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

Example Code
curl -X POST "https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content" \
  -H "Authorization: Bearer {Your Auth Token}" \
  --form 'api_key="{Your API Key}"' \
  --form 'maha_dasha="Sun"' \
  --form 'antar_dasha="Moon"' \
  --form 'lan="en"'
const FormData = require('form-data');
const axios = require('axios');

const form = new FormData();
form.append('api_key', '{Your API Key}');
form.append('maha_dasha', 'Sun');
form.append('antar_dasha', 'Moon');
form.append('lan', 'en');

const response = await axios.post('https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content', form, {
  headers: {
    ...form.getHeaders(),
    'Authorization': 'Bearer {Your Auth Token}',
  }
});

console.log(response.data);
import requests

url = "https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
payload = {
    "api_key": "{Your API Key}",
    "maha_dasha": "Sun",
    "antar_dasha": "Moon",
    "lan": "en",
}

response = requests.post(url, headers=headers, data=payload)

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('maha_dasha', 'Sun');
formData.append('antar_dasha', 'Moon');
formData.append('lan', 'en');

const response = await fetch('https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content', {
  method: 'POST',
  headers: {
      'Authorization': "Bearer {Your Auth Token}",
    },
  body: formData,
});

const data = await response.json();
console.log(data);
<?php

use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'maha_dasha', 'contents' => 'Sun'],
        ['name' => 'antar_dasha', 'contents' => 'Moon'],
        ['name' => 'lan', 'contents' => 'en'],
    ],
]);

echo $response->getBody();
package main

import (
    "bytes"
    "fmt"
    "mime/multipart"
    "net/http"
    "io"
)

func main() {
    body := &bytes.Buffer{}
    writer := multipart.NewWriter(body)
    writer.WriteField("api_key", "{Your API Key}")
    writer.WriteField("maha_dasha", "Sun")
    writer.WriteField("antar_dasha", "Moon")
    writer.WriteField("lan", "en")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content", body)
    req.Header.Set("Content-Type", writer.FormDataContentType())
    req.Header.Set("Authorization", "Bearer {Your Auth Token}")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body2, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body2))
}
import okhttp3.*;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        RequestBody body = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("api_key", "{Your API Key}")
            .addFormDataPart("maha_dasha", "Sun")
            .addFormDataPart("antar_dasha", "Moon")
            .addFormDataPart("lan", "en")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content")
            .post(body)
            .addHeader("Authorization", "Bearer {Your Auth Token}")
            .build();

        Response response = client.newCall(request).execute();
        System.out.println(response.body().string());
    }
}
import Foundation

let url = URL(string: "https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer {Your Auth Token}", forHTTPHeaderField: "Authorization")

let boundary = "Boundary-\(UUID().uuidString)"
request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")

var bodyData = Data()
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"api_key\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("{Your API Key}\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"maha_dasha\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("Sun\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"antar_dasha\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("Moon\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lan\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("en\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)--\r\n".data(using: .utf8)!)
request.httpBody = bodyData

let task = URLSession.shared.dataTask(with: request) { data, response, error in
    if let data = data {
        print(String(data: data, encoding: .utf8) ?? "")
    }
}
task.resume()
import okhttp3.*

fun main() {
    val client = OkHttpClient()

    val body = MultipartBody.Builder()
        .setType(MultipartBody.FORM)
        .addFormDataPart("api_key", "{Your API Key}")
        .addFormDataPart("maha_dasha", "Sun")
        .addFormDataPart("antar_dasha", "Moon")
        .addFormDataPart("lan", "en")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content")
        .post(body!!)
        .addHeader("Authorization", "Bearer {Your Auth Token}")
        .build()

    client.newCall(request).execute().use { response ->
        println(response.body?.string())
    }
}
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Add("Authorization", "Bearer {Your Auth Token}");

        var content = new MultipartFormDataContent();
        content.Add(new StringContent("{Your API Key}"), "api_key");
        content.Add(new StringContent("Sun"), "maha_dasha");
        content.Add(new StringContent("Moon"), "antar_dasha");
        content.Add(new StringContent("en"), "lan");

        var response = await client.PostAsync("https://astroapi-3.divineapi.com/indian-api/v1/lal-kitab/antardasha-content", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}