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

Shani Ashtam Shani API

Access Shani Ashtam Shani via the DivineAPI Kundli suite. Based on the tenets of Indian Astrology, this endpoint returns the Ashtama Shani (Saturn transiting the eighth house from the natal Moon) status and periods for the provided birth details.


API Endpoint

POST https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani

Returns basic astrological details 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
full_name *StringFull name, e.g. Rahul Kumar
day *IntegerDate of birth, e.g. 24
month *IntegerMonth of birth, e.g. 05
year *IntegerYear of birth, e.g. 2023
hour *IntegerHour (24-hour format), e.g. 14
min *IntegerMinute, e.g. 40
sec *IntegerSecond, e.g. 43
gender *StringGender, e.g. male
place *StringPlace of birth, e.g. New Delhi
lat *FloatLatitude, e.g. 28.7041
lon *FloatLongitude, e.g. 77.1025
tzone *FloatTimezone, e.g. 5.5 — See Timezone List
lanStringLanguage code as per the table above; default is en

200: OK Shani Ashtam Shani Fetched Successfully

{
    "success": 1,
    "data": {
        "natal_saturn": {
            "sign_no": 10,
            "sign_name": "Capricorn",
            "degree": 271.3116,
            "house": 5
        },
        "ashtam": {
            "sign_no": 5,
            "sign_name": "Leo",
            "house": 12
        },
        "periods": [
            {
                "start_date": "2006-11-02",
                "end_date": "2007-01-10"
            },
            {
                "start_date": "2007-07-16",
                "end_date": "2009-09-09"
            },
            {
                "start_date": "2036-08-28",
                "end_date": "2038-10-22"
            },
            {
                "start_date": "2039-04-06",
                "end_date": "2039-07-12"
            },
            {
                "start_date": "2065-10-13",
                "end_date": "2066-02-03"
            },
            {
                "start_date": "2066-07-04",
                "end_date": "2068-08-30"
            }
        ],
        "content": [
            {
                "min_age": 0,
                "max_age": 20,
                "content": {
                    "key_areas": [
                        {
                            "title": "Sleep and Dreams",
                            "content": "The 12th house governs sleep, and Saturn transit here can create significant sleep disturbances in the young native during this challenging period. Insomnia, nightmares, sleepwalking, excessive sleeping, or disturbed sleep patterns that affect daytime energy, concentration, and mood may dominate the child nightly experience. Dreams may be unusually vivid, intense, or frightening, featuring themes of loss, abandonment, confinement, or encounters with unknown and mysterious figures. Saturn demands that sleep disturbances be addressed practically through consistent bedtime routines, comfortable sleeping environments, limitation of stimulating activities before bed, and professional consultation when problems persist. Healthy sleep patterns established during this period significantly benefit the native overall development."
                        },
                        {
                            "title": "Isolation and Withdrawal",
                            "content": "A tendency toward social withdrawal, daydreaming, fantasy, or spending excessive time alone characterizes this transit through the house of isolation and inner retreat. The native may prefer imaginary worlds, books, solitary creative pursuits, or quiet contemplation over active social engagement with peers and group activities. While some solitude is healthy and developmentally appropriate, excessive withdrawal can indicate emotional distress, depression, anxiety, or difficulty processing experiences that feel overwhelming for a young psyche. Saturn does not intend permanent isolation but creates a period of necessary introversion during which the native develops rich inner resources, imagination, and self-sufficiency that become valuable assets throughout their entire lifetime."
                        },
                        {
                            "title": "Hidden Grief",
                            "content": "The 12th house governs hidden sorrows, and the young native may carry grief or sadness that they cannot articulate or that adults fail to recognize during this subtle transit. Losses that seem minor to adults, such as a pet dying, a friend moving away, a favorite teacher leaving, or changes in family routine, may affect the child deeply and persistently. More significant losses including parental divorce, family member death, or loss of familiar home create profound but often internalized grief. Saturn asks that adults pay careful attention to signs of hidden sadness in the child, creating safe spaces for emotional expression and validating feelings that the young native may lack vocabulary or confidence to communicate directly."
                        },
                        {
                            "title": "Spiritual Sensitivity",
                            "content": "An unusual sensitivity to spiritual, metaphysical, or invisible dimensions of experience may develop during this transit through the house of transcendence and higher consciousness. The child may show interest in prayer, feel connected to departed family members, display intuitive abilities that surprise adults, or ask profound questions about the nature of reality, consciousness, and existence that seem beyond their years. Some children experience what they perceive as spiritual encounters or heightened sensory awareness during this period. Saturn channels this sensitivity toward grounded spiritual development rather than uncontrolled psychic experience. Religious education, meditation practices appropriate for children, and respectful acknowledgment of the child spiritual perceptions help integrate these experiences constructively."
                        }
                    ],
                    "summary": "Saturn transiting the 8th from natal Saturn through the 12th house during childhood creates unusual sensitivity to loss, isolation, and spiritual dimensions of experience. The young native may experience sleep disturbances, vivid imagination bordering on fantasy withdrawal, and a sense of being different or separate from the ordinary material concerns of their peers."
                }
            },
            {
                "min_age": 40,
                "max_age": 60,
                "content": {
                    "key_areas": [
                        {
                            "title": "Shadow Integration",
                            "content": "The psychological shadow, comprising all rejected, denied, and repressed aspects of the personality, demands acknowledgment and conscious integration during this profound transit through the house of the unconscious mind. Qualities the native judged harshly in others may reveal themselves as unacknowledged aspects of their own character and behavioral patterns. Anger, jealousy, greed, fear, sexual impulses, or desire for power that were suppressed beneath socially acceptable personas emerge with force that cannot be ignored. Saturn insists that the native face their complete psychological reality with honesty and courage rather than continuing to project unwanted qualities onto others. This shadow work, while uncomfortable, creates remarkable psychological wholeness and emotional authenticity."
                        },
                        {
                            "title": "Accumulated Losses",
                            "content": "The weight of all losses experienced throughout a lifetime, including deceased loved ones, failed relationships, abandoned dreams, lost health, missed opportunities, and faded youth, presses upon the native consciousness during this transit through the house of sorrows and dissolution. These accumulated losses may trigger grief episodes, depression, existential sadness, or a pervasive melancholy that colors the native experience of daily life. Saturn does not create suffering through this process but demands that accumulated grief be honestly acknowledged, fully experienced, and eventually integrated into a complete and honest narrative of the native life. Therapeutic support, spiritual practice, and compassionate self-dialogue help process this essential emotional work effectively."
                        },
                        {
                            "title": "Addiction and Escapism",
                            "content": "Tendencies toward escapism through substances, excessive entertainment, compulsive work, fantasy relationships, or other avoidance mechanisms face their most critical testing during this transit. The 12th house naturally gravitates toward dissolution of boundaries, and Saturn transit here can either strengthen escapist tendencies into serious addiction or force the native to confront and overcome them definitively. The native must honestly examine which behaviors serve genuine self-care and psychological restoration and which are merely sophisticated avoidance strategies designed to prevent confrontation with uncomfortable inner truths. Saturn rewards those who choose conscious engagement with difficult emotions over numbing escape through whatever substance or behavior they favor."
                        },
                        {
                            "title": "Preparation for Inner Life",
                            "content": "This transit marks the beginning of a gradual but profound shift from external achievement toward internal development and spiritual cultivation. The native may feel decreasing interest in social status, material accumulation, and competitive professional engagement while experiencing growing attraction to meditation, contemplation, nature immersion, creative expression for personal satisfaction, and spiritual community. Saturn in the 12th house during midlife initiates the soul preparation for life final chapters by redirecting attention from worldly conquest toward inner cultivation and authentic self-knowledge. Those who honor this shift create the foundation for a genuinely peaceful and spiritually rich old age rather than a frantic and unsatisfying pursuit of fading worldly relevance."
                        }
                    ],
                    "summary": "Saturn transiting the 8th from natal Saturn through the 12th house during midlife brings the deepest confrontation with hidden fears, accumulated losses, and the call toward spiritual transcendence. The native must process the shadow material of their personality, address addictive or escapist patterns, and begin the inner work that prepares the soul for life final chapters."
                }
            },
            {
                "min_age": 60,
                "max_age": 80,
                "content": {
                    "key_areas": [
                        {
                            "title": "Spiritual Practice Deepening",
                            "content": "Spiritual practice reaches its most authentic and personally meaningful expression during this transit through the house of moksha and liberation from material attachment. Prayer, meditation, devotional singing, scripture study, or simple contemplative silence may occupy increasing portions of the native daily routine and inner attention. The practice is no longer about achieving spiritual milestones or demonstrating piety to others but about genuine inner communion with whatever the native understands as sacred and transcendent. Saturn in the 12th house during old age rewards sincere spiritual effort with experiences of peace, connection, and occasional transcendence that validate a lifetime of faith, seeking, and devotional practice."
                        },
                        {
                            "title": "Letting Go",
                            "content": "The process of letting go accelerates during this transit as the native releases attachments to possessions, relationships, activities, and self-concepts that no longer serve their evolving spiritual and psychological needs. Each act of voluntary release, whether giving away treasured possessions to family members, forgiving old grievances completely, or accepting physical limitations without resentment, lightens the native psychological burden and creates space for deeper inner peace. Saturn teaches that letting go is not loss but liberation, that every attachment released creates freedom and spaciousness within the soul. Those who practice conscious and deliberate letting go experience this transit as genuinely liberating rather than depressing and diminishing."
                        },
                        {
                            "title": "Hospital and Institutional Care",
                            "content": "The 12th house governs hospitals, institutions, and places of confinement, and during this transit the native may spend time in medical facilities, rehabilitation centers, or long-term care institutions that become their primary living environment. Adjusting to institutional life requires surrendering personal preferences, established routines, and domestic comfort in favor of standardized care schedules and shared living spaces. Saturn asks the native to find peace and dignity within institutional settings through internal resources rather than external circumstances and personal control over environment. Maintaining spiritual practice, family connection, and inner equanimity within institutional constraints represents a profound form of spiritual accomplishment and personal resilience."
                        },
                        {
                            "title": "Processing Life Story",
                            "content": "The native entire life story undergoes comprehensive review and integration during this reflective transit through the house of the subconscious and dissolution of the separate self. Memories from every life stage surface, asking to be acknowledged, understood, and ultimately released into the peaceful acceptance that this house ultimately offers. The narrative the native constructs about their life, whether primarily grateful, regretful, peaceful, or troubled, significantly affects their emotional wellbeing and the quality of their remaining days. Saturn encourages an honest and compassionate life narrative that includes both accomplishments and failures, joys and sorrows, wisdom gained and opportunities missed, held together by acceptance and self-forgiveness."
                        }
                    ],
                    "summary": "Shani Ashtam through the 12th house during retirement years intensifies the movement toward inner life, spiritual practice, and gradual withdrawal from worldly engagement. The native processes a lifetime of experience through the lens of impermanence, releasing attachments one by one while cultivating the inner peace that sustains the soul through life final passage."
                }
            }
        ]
    }
}

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/shani-ashtam-shani' \
--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/shani-ashtam-shani',
  '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/shani-ashtam-shani",
  "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/shani-ashtam-shani"

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.

curl -X POST "https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani" \
  -H "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"'
const FormData = require('form-data');
const axios = require('axios');

const 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');

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

console.log(response.data);
import requests

url = "https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani"
headers = {
    "Authorization": "Bearer {Your Auth Token}",
}
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",
}

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

print(response.json())
const formData = new FormData();
formData.append('api_key', '{Your API Key}');
formData.append('full_name', 'Test');
formData.append('day', '24');
formData.append('month', '05');
formData.append('year', '2023');
formData.append('hour', '14');
formData.append('min', '40');
formData.append('sec', '43');
formData.append('gender', 'male');
formData.append('place', 'New Delhi');
formData.append('lat', '28.7041');
formData.append('lon', '77.1025');
formData.append('tzone', '5.5');
formData.append('lan', 'en');

const response = await fetch('https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani', {
  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/shani-ashtam-shani', [
    'headers' => [
        'Authorization' => 'Bearer {Your Auth Token}',
    ],
    'multipart' => [
        ['name' => 'api_key', 'contents' => '{Your API Key}'],
        ['name' => 'full_name', 'contents' => 'Test'],
        ['name' => 'day', 'contents' => '24'],
        ['name' => 'month', 'contents' => '05'],
        ['name' => 'year', 'contents' => '2023'],
        ['name' => 'hour', 'contents' => '14'],
        ['name' => 'min', 'contents' => '40'],
        ['name' => 'sec', 'contents' => '43'],
        ['name' => 'gender', 'contents' => 'male'],
        ['name' => 'place', 'contents' => 'New Delhi'],
        ['name' => 'lat', 'contents' => '28.7041'],
        ['name' => 'lon', 'contents' => '77.1025'],
        ['name' => 'tzone', 'contents' => '5.5'],
        ['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("full_name", "Test")
    writer.WriteField("day", "24")
    writer.WriteField("month", "05")
    writer.WriteField("year", "2023")
    writer.WriteField("hour", "14")
    writer.WriteField("min", "40")
    writer.WriteField("sec", "43")
    writer.WriteField("gender", "male")
    writer.WriteField("place", "New Delhi")
    writer.WriteField("lat", "28.7041")
    writer.WriteField("lon", "77.1025")
    writer.WriteField("tzone", "5.5")
    writer.WriteField("lan", "en")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani", 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("full_name", "Test")
            .addFormDataPart("day", "24")
            .addFormDataPart("month", "05")
            .addFormDataPart("year", "2023")
            .addFormDataPart("hour", "14")
            .addFormDataPart("min", "40")
            .addFormDataPart("sec", "43")
            .addFormDataPart("gender", "male")
            .addFormDataPart("place", "New Delhi")
            .addFormDataPart("lat", "28.7041")
            .addFormDataPart("lon", "77.1025")
            .addFormDataPart("tzone", "5.5")
            .addFormDataPart("lan", "en")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani")
            .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/shani-ashtam-shani")!
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=\"full_name\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("Test\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"day\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("24\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"month\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("05\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"year\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("2023\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"hour\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("14\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"min\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("40\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"sec\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("43\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"gender\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("male\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"place\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("New Delhi\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lat\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("28.7041\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"lon\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("77.1025\r\n".data(using: .utf8)!)
bodyData.append("--\(boundary)\r\n".data(using: .utf8)!)
bodyData.append("Content-Disposition: form-data; name=\"tzone\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("5.5\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("full_name", "Test")
        .addFormDataPart("day", "24")
        .addFormDataPart("month", "05")
        .addFormDataPart("year", "2023")
        .addFormDataPart("hour", "14")
        .addFormDataPart("min", "40")
        .addFormDataPart("sec", "43")
        .addFormDataPart("gender", "male")
        .addFormDataPart("place", "New Delhi")
        .addFormDataPart("lat", "28.7041")
        .addFormDataPart("lon", "77.1025")
        .addFormDataPart("tzone", "5.5")
        .addFormDataPart("lan", "en")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani")
        .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("Test"), "full_name");
        content.Add(new StringContent("24"), "day");
        content.Add(new StringContent("05"), "month");
        content.Add(new StringContent("2023"), "year");
        content.Add(new StringContent("14"), "hour");
        content.Add(new StringContent("40"), "min");
        content.Add(new StringContent("43"), "sec");
        content.Add(new StringContent("male"), "gender");
        content.Add(new StringContent("New Delhi"), "place");
        content.Add(new StringContent("28.7041"), "lat");
        content.Add(new StringContent("77.1025"), "lon");
        content.Add(new StringContent("5.5"), "tzone");
        content.Add(new StringContent("en"), "lan");

        var response = await client.PostAsync("https://astroapi-3.divineapi.com/indian-api/v1/shani-ashtam-shani", content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}
Response 200
{
    "success": 1,
    "data": {
        "natal_saturn": {
            "sign_no": 11,
            "sign_name": "Aquarius",
            "degree": 312.5451,
            "house": 6
        },
        "ashtam": {
            "sign_no": 6,
            "sign_name": "Virgo",
            "house": 1
        },
        "periods": [
            {
                "start_date": "2038-10-23",
                "end_date": "2039-04-05"
            },
            {
                "start_date": "2039-07-13",
                "end_date": "2041-01-27"
            },
            {
                "start_date": "2041-02-07",
                "end_date": "2041-09-26"
            },
            {
                "start_date": "2068-08-31",
                "end_date": "2070-11-04"
            },
            {
                "start_date": "2097-10-12",
                "end_date": "2098-05-02"
            },
            {
                "start_date": "2098-06-20",
                "end_date": "2099-12-25"
            },
            {
                "start_date": "2100-03-18",
                "end_date": "2100-09-16"
            }
        ],
        "content": [
            {
                "min_age": 0,
                "max_age": 20,
                "content": {
                    "key_areas": [
                        {
                            "title": "Health and Vitality",
                            "content": "Physical stamina drops noticeably during this transit. The young native may suffer from recurring ailments, low immunity, or unexplained fatigue that disrupts daily school routines and social activities. Childhood illnesses that were dormant can resurface with surprising intensity during this period. Outdoor activities and sports may feel draining rather than energizing or enjoyable. Parents should monitor nutrition, hydration, and sleep patterns closely, as the growing body demands extra care and consistent attention during this taxing period of Saturn influence on the physical constitution and overall development."
                        },
                        {
                            "title": "Self-Confidence and Identity",
                            "content": "A crisis of confidence often accompanies this transit for young natives in their formative years. The child or teenager may feel inadequate compared to peers, struggle with self-image and body perception, or withdraw socially from group activities and friendships. Academic performance can dip not from lack of ability but from deep inner turmoil and emotional heaviness that clouds concentration. Building small wins through structured activities and consistent encouragement from family helps counter the Saturnian weight pressing down on the developing personality and emerging sense of individual purpose."
                        },
                        {
                            "title": "Relationship with Authority",
                            "content": "Friction with parents, teachers, and mentors intensifies significantly during this period of Saturn transit. The native feels deeply misunderstood or unfairly disciplined by those in positions of power and responsibility. Saturn demands respect for structure and established hierarchy, yet the young person instinctively resists such constraints. Learning to accept guidance without losing individuality becomes a key developmental lesson that shapes character permanently. Those who adapt to this challenge emerge with remarkable discipline, patience, and emotional resilience far beyond their years."
                        },
                        {
                            "title": "Early Responsibilities",
                            "content": "Some natives under this transit are thrust into responsibilities too early in life, perhaps due to a parent falling ill, family financial strain, or significant household disruption. They may need to contribute to domestic duties, manage younger siblings, assist with family business, or take on part-time work to support the household. While this forced maturity builds practical resilience and useful life skills, it can also create deep resentment toward circumstances. Balancing duty with the need for a normal childhood experience remains the central challenge that Saturn presents."
                        }
                    ],
                    "summary": "Saturn transiting the 8th house from natal Saturn through the 1st house brings deep self-transformation during formative years. The native may face health setbacks, identity struggles, and a heavy sense of being burdened beyond their age, forcing early maturity and sustained resilience-building through prolonged hardship."
                }
            },
            {
                "min_age": 40,
                "max_age": 60,
                "content": {
                    "key_areas": [
                        {
                            "title": "Health and Aging",
                            "content": "The body begins showing unmistakable signs of wear and declining resilience during this significant transit. Bone density issues, chronic fatigue, blood pressure fluctuations, hormonal shifts, and stress-related ailments demand immediate and sustained medical attention. Ignoring symptoms is no longer a viable option at this stage of life and maturity. The native must accept physical limitations gracefully and invest seriously in preventive healthcare, regular screenings, and meaningful lifestyle modifications. Saturn rewards consistent discipline in health matters and punishes sustained neglect with compounding problems that become increasingly difficult to reverse over time."
                        },
                        {
                            "title": "Professional Authority",
                            "content": "Leadership roles feel considerably heavier and more burdensome than usual during this transit through the house of self. The native may face direct challenges to their authority from younger competitors, shifting organizational dynamics, or rapid technological changes that make established methods seem obsolete. Decisions made now carry serious long-term weight for career trajectory and professional reputation. Some may be pushed out of comfortable positions, forcing an unwelcome reinvention of their professional identity and approach. Adaptability, accumulated wisdom, and willingness to evolve become essential survival tools."
                        },
                        {
                            "title": "Personal Relationships",
                            "content": "Marital dynamics shift significantly as both partners grapple with midlife realities and evolving expectations about their shared future. Communication gaps widen considerably if not actively and honestly addressed through sustained dialogue and mutual effort. The native may feel emotionally isolated even within a long-standing marriage or committed partnership. Adult children leaving home or returning add another complex layer of adjustment and potential conflict to navigate. Investing genuine time, emotional energy, and vulnerability in close relationships prevents irreversible emotional distance from forming between loved ones."
                        },
                        {
                            "title": "Inner Transformation",
                            "content": "This is often a period of deep and sometimes uncomfortable introspection for the native experiencing Saturn pressure on identity. They question whether the life they have carefully built truly reflects their core values and authentic desires. Spiritual inclinations may surface unexpectedly or deepen considerably during this transit period. Some experience a quiet but powerful existential crisis that fundamentally reshapes priorities and daily choices. Material achievements feel increasingly hollow unless accompanied by genuine inner peace and contentment. Saturn demands authenticity above all superficial measures of worldly success."
                        }
                    ],
                    "summary": "Saturn transiting the 8th from natal Saturn through the 1st house at career peak age brings a profound reckoning with personal power and physical endurance. The native confronts visible signs of aging, authority challenges from younger rivals, and a pressing need to redefine their public persona and overall life direction."
                }
            },
            {
                "min_age": 60,
                "max_age": 80,
                "content": {
                    "key_areas": [
                        {
                            "title": "Physical Decline",
                            "content": "Health becomes the dominant and unavoidable concern of daily life during this challenging transit. Chronic conditions intensify in severity and frequency, mobility may become restricted, and recovery from illness or injury takes significantly longer than before. The native feels the body aging rapidly during this demanding period. Joint problems, cardiovascular strain, respiratory issues, and neurological concerns require consistent and attentive medical supervision and care. Accepting help gracefully from family and caregivers rather than stubbornly maintaining independence at personal risk is a key Saturnian lesson of this life phase."
                        },
                        {
                            "title": "Identity After Retirement",
                            "content": "Without a professional title or workplace role to anchor personal identity, the native may feel directionless and deeply purposeless during this transit. Depression, social withdrawal, and a persistent sense of irrelevance are real and significant risks that demand attention. Saturn pushes the native to discover who they truly are beyond their career achievements and social status markers. Hobbies, community involvement, mentoring younger people, volunteer work, or deepening spiritual pursuits can meaningfully fill the void, but the native must actively and consistently seek these engagements rather than passively waiting for purpose to arrive."
                        },
                        {
                            "title": "Family Dynamics",
                            "content": "Dependence on adult children or younger family members increases noticeably during this period of Saturn influence. This role reversal from provider and protector to dependent can be emotionally difficult and psychologically challenging for someone long accustomed to being the family authority figure. Conflicts may arise around living arrangements, financial decisions, healthcare choices, or differing expectations about involvement in important family matters. Maintaining personal dignity while gracefully accepting necessary support requires deep emotional maturity and humility that Saturn specifically cultivates through the sustained pressures of this transit."
                        },
                        {
                            "title": "Legacy Concerns",
                            "content": "The native begins thinking seriously and urgently about what they leave behind for future generations and loved ones. Property matters, will preparation, asset distribution, and settling old disputes or outstanding debts gain pressing urgency during this transit. Unresolved family conflicts from decades past may resurface unexpectedly, demanding honest closure and reconciliation. Saturn asks the native to put their worldly affairs in complete order with honesty and fairness, ensuring that their material and moral legacy reflects their true values and hard-earned life lessons rather than accumulated regrets and postponed decisions."
                        }
                    ],
                    "summary": "Shani Ashtam through the 1st house during retirement years brings heightened physical vulnerability and a deep reassessment of personal identity beyond professional roles. The native must navigate declining vitality while actively finding new sources of meaning, self-worth, and daily purpose in this fundamentally changed life chapter."
                }
            }
        ]
    }
}