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

Vimshottari Dasha API

Navigate the cycles of life with our Vimshottari Dasha API, unraveling the dynamic planetary periods that shape individual destinies within the realm of Indian Astrology.


Step-by-Step Vimshottari Dasha API Postman Testing Integration

Support Article:
Step-by-Step Vimshottari Dasha API Postman Testing Integration


API Endpoint

POST https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha

Returns Vimshottari Dasha data in the response


Dasha Type Parameter

CodeDescription
maha-dashaReturns only the Maha Dasha
antar-dashaReturns Maha Dasha and Antar Dasha
pratyantar-dashaReturns Maha Dasha, Antar Dasha, and Pratyantar Dasha
sookshma-dashaReturns all levels — Maha Dasha, Antar Dasha, Pratyantar Dasha, and Sookshma Dasha
prana-dashaReturns Prana Dasha. Requires additional parameter: maha_dasha (planet name)
deha-dashaReturns Deha Dasha. Requires additional parameters: maha_dasha and antar_dasha (planet names)

Supported Language Codes

Support Article: Translating Indian/Vedic APIs into a Different Language

CodeLanguage
enEnglish
hiHindi
bnBengali
maMarathi
tmTamil
tlTelugu
mlMalayalam
knKannada

Guide:
Include the language code by passing the parameter lan in the request body.
Default language is English (en).


Headers

NameTypeDescription
AuthorizationStringYour API access token. Example: Bearer {token}

Request Body

NameTypeRequiredDescription
api_keyStringYesYour unique API key.
full_nameStringYesFull name of the individual. Example: Rahul Kumar
dayIntegerYesDate of birth. Example: 24
monthIntegerYesMonth of birth. Example: 05
yearIntegerYesYear of birth. Example: 2023
hourIntegerYesHour of birth (24-hour format). Example: 14
minIntegerYesMinute of birth. Example: 40
secIntegerYesSecond of birth. Example: 43
genderStringYesGender. Example: male
placeStringYesBirthplace. Example: New Delhi
latFloatYesLatitude of birthplace. Example: 28.7041
lonFloatYesLongitude of birthplace. Example: 77.1025
tzoneFloatYesTimezone offset from GMT. Example: 5.5 (Timezone List)
lanStringNoLanguage code (default: en).
dasha_typeStringYesDasha type — one of: maha-dasha, antar-dasha, pratyantar-dasha, sookshma-dasha, prana-dasha, or deha-dasha.
maha_dashaStringConditionalRequired when dasha_type is prana-dasha or deha-dasha. One of: moon, mercury, mars, venus, saturn, jupiter, ketu, rahu.
antar_dashaStringConditionalRequired when dasha_type is deha-dasha. One of: moon, mercury, mars, venus, saturn, jupiter, ketu, rahu.

Example Successful Response (200: OK)

{
    "success": 1,
    "data": {
        "date": "2023-05-24",
        "time": "14:40:43",
        "maha_dasha": {
            "Jupiter": {
                "start_date": "2007-08-31",
                "end_date": "2023-08-23",
                "antar_dasha": {
                    "Jupiter": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Saturn": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Mercury": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Ketu": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Venus": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Sun": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Moon": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Mars": {
                        "start_time": "--",
                        "end_time": "--"
                    },
                    "Rahu": {
                        "start_time": "2021-04-07",
                        "end_time": "2023-08-23"
                    }
                }
            },
            "Saturn": {
                "start_date": "2023-08-23",
                "end_date": "2042-08-23",
                "antar_dasha": {
                    "Saturn": {
                        "start_time": "2023-08-23",
                        "end_time": "2026-08-26"
                    },
                    "Mercury": {
                        "start_time": "2026-08-26",
                        "end_time": "2029-05-05"
                    },
                    "Ketu": {
                        "start_time": "2029-05-05",
                        "end_time": "2030-06-14"
                    },
                    "Venus": {
                        "start_time": "2030-06-14",
                        "end_time": "2033-08-14"
                    },
                    "Sun": {
                        "start_time": "2033-08-14",
                        "end_time": "2034-07-26"
                    },
                    "Moon": {
                        "start_time": "2034-07-26",
                        "end_time": "2036-02-26"
                    },
                    "Mars": {
                        "start_time": "2036-02-26",
                        "end_time": "2037-04-04"
                    },
                    "Rahu": {
                        "start_time": "2037-04-04",
                        "end_time": "2040-02-10"
                    },
                    "Jupiter": {
                        "start_time": "2040-02-10",
                        "end_time": "2042-08-23"
                    }
                }
            },
            "Mercury": {
                "start_date": "2042-08-23",
                "end_date": "2059-08-23",
                "antar_dasha": {
                    "Mercury": {
                        "start_time": "2042-08-23",
                        "end_time": "2045-01-19"
                    },
                    "Ketu": {
                        "start_time": "2045-01-19",
                        "end_time": "2046-01-15"
                    },
                    "Venus": {
                        "start_time": "2046-01-15",
                        "end_time": "2048-11-15"
                    },
                    "Sun": {
                        "start_time": "2048-11-15",
                        "end_time": "2049-09-21"
                    },
                    "Moon": {
                        "start_time": "2049-09-21",
                        "end_time": "2051-02-21"
                    },
                    "Mars": {
                        "start_time": "2051-02-21",
                        "end_time": "2052-02-17"
                    },
                    "Rahu": {
                        "start_time": "2052-02-17",
                        "end_time": "2054-09-04"
                    },
                    "Jupiter": {
                        "start_time": "2054-09-04",
                        "end_time": "2056-12-10"
                    },
                    "Saturn": {
                        "start_time": "2056-12-10",
                        "end_time": "2059-08-23"
                    }
                }
            },
            "Ketu": {
                "start_date": "2059-08-23",
                "end_date": "2066-08-23",
                "antar_dasha": {
                    "Ketu": {
                        "start_time": "2059-08-23",
                        "end_time": "2060-01-19"
                    },
                    "Venus": {
                        "start_time": "2060-01-19",
                        "end_time": "2061-03-19"
                    },
                    "Sun": {
                        "start_time": "2061-03-19",
                        "end_time": "2061-07-25"
                    },
                    "Moon": {
                        "start_time": "2061-07-25",
                        "end_time": "2062-02-25"
                    },
                    "Mars": {
                        "start_time": "2062-02-25",
                        "end_time": "2062-07-22"
                    },
                    "Rahu": {
                        "start_time": "2062-07-22",
                        "end_time": "2063-08-09"
                    },
                    "Jupiter": {
                        "start_time": "2063-08-09",
                        "end_time": "2064-07-15"
                    },
                    "Saturn": {
                        "start_time": "2064-07-15",
                        "end_time": "2065-08-24"
                    },
                    "Mercury": {
                        "start_time": "2065-08-24",
                        "end_time": "2066-08-23"
                    }
                }
            },
            "Venus": {
                "start_date": "2066-08-23",
                "end_date": "2086-08-23",
                "antar_dasha": {
                    "Venus": {
                        "start_time": "2066-08-23",
                        "end_time": "2069-12-23"
                    },
                    "Sun": {
                        "start_time": "2069-12-23",
                        "end_time": "2070-12-23"
                    },
                    "Moon": {
                        "start_time": "2070-12-23",
                        "end_time": "2072-08-23"
                    },
                    "Mars": {
                        "start_time": "2072-08-23",
                        "end_time": "2073-10-23"
                    },
                    "Rahu": {
                        "start_time": "2073-10-23",
                        "end_time": "2076-10-23"
                    },
                    "Jupiter": {
                        "start_time": "2076-10-23",
                        "end_time": "2079-06-23"
                    },
                    "Saturn": {
                        "start_time": "2079-06-23",
                        "end_time": "2082-08-23"
                    },
                    "Mercury": {
                        "start_time": "2082-08-23",
                        "end_time": "2085-06-23"
                    },
                    "Ketu": {
                        "start_time": "2085-06-23",
                        "end_time": "2086-08-23"
                    }
                }
            },
            "Sun": {
                "start_date": "2086-08-23",
                "end_date": "2092-08-23",
                "antar_dasha": {
                    "Sun": {
                        "start_time": "2086-08-23",
                        "end_time": "2086-12-11"
                    },
                    "Moon": {
                        "start_time": "2086-12-11",
                        "end_time": "2087-06-11"
                    },
                    "Mars": {
                        "start_time": "2087-06-11",
                        "end_time": "2087-10-17"
                    },
                    "Rahu": {
                        "start_time": "2087-10-17",
                        "end_time": "2088-09-10"
                    },
                    "Jupiter": {
                        "start_time": "2088-09-10",
                        "end_time": "2089-06-28"
                    },
                    "Saturn": {
                        "start_time": "2089-06-28",
                        "end_time": "2090-06-09"
                    },
                    "Mercury": {
                        "start_time": "2090-06-09",
                        "end_time": "2091-04-15"
                    },
                    "Ketu": {
                        "start_time": "2091-04-15",
                        "end_time": "2091-08-21"
                    },
                    "Venus": {
                        "start_time": "2091-08-21",
                        "end_time": "2092-08-23"
                    }
                }
            },
            "Moon": {
                "start_date": "2092-08-23",
                "end_date": "2102-08-23",
                "antar_dasha": {
                    "Moon": {
                        "start_time": "2092-08-23",
                        "end_time": "2093-06-23"
                    },
                    "Mars": {
                        "start_time": "2093-06-23",
                        "end_time": "2094-01-23"
                    },
                    "Rahu": {
                        "start_time": "2094-01-23",
                        "end_time": "2095-07-23"
                    },
                    "Jupiter": {
                        "start_time": "2095-07-23",
                        "end_time": "2096-11-23"
                    },
                    "Saturn": {
                        "start_time": "2096-11-23",
                        "end_time": "2098-06-23"
                    },
                    "Mercury": {
                        "start_time": "2098-06-23",
                        "end_time": "2099-11-23"
                    },
                    "Ketu": {
                        "start_time": "2099-11-23",
                        "end_time": "2100-06-23"
                    },
                    "Venus": {
                        "start_time": "2100-06-23",
                        "end_time": "2102-02-23"
                    },
                    "Sun": {
                        "start_time": "2102-02-23",
                        "end_time": "2102-08-23"
                    }
                }
            },
            "Mars": {
                "start_date": "2102-08-23",
                "end_date": "2109-08-23",
                "antar_dasha": {
                    "Mars": {
                        "start_time": "2102-08-23",
                        "end_time": "2103-01-19"
                    },
                    "Rahu": {
                        "start_time": "2103-01-19",
                        "end_time": "2104-02-06"
                    },
                    "Jupiter": {
                        "start_time": "2104-02-06",
                        "end_time": "2105-01-12"
                    },
                    "Saturn": {
                        "start_time": "2105-01-12",
                        "end_time": "2106-02-21"
                    },
                    "Mercury": {
                        "start_time": "2106-02-21",
                        "end_time": "2107-02-17"
                    },
                    "Ketu": {
                        "start_time": "2107-02-17",
                        "end_time": "2107-07-14"
                    },
                    "Venus": {
                        "start_time": "2107-07-14",
                        "end_time": "2108-09-14"
                    },
                    "Sun": {
                        "start_time": "2108-09-14",
                        "end_time": "2109-01-20"
                    },
                    "Moon": {
                        "start_time": "2109-01-20",
                        "end_time": "2109-08-23"
                    }
                }
            },
            "Rahu": {
                "start_date": "2109-08-23",
                "end_date": "2127-08-23",
                "antar_dasha": {
                    "Rahu": {
                        "start_time": "2109-08-23",
                        "end_time": "2112-05-05"
                    },
                    "Jupiter": {
                        "start_time": "2112-05-05",
                        "end_time": "2114-09-29"
                    },
                    "Saturn": {
                        "start_time": "2114-09-29",
                        "end_time": "2117-08-04"
                    },
                    "Mercury": {
                        "start_time": "2117-08-04",
                        "end_time": "2120-02-22"
                    },
                    "Ketu": {
                        "start_time": "2120-02-22",
                        "end_time": "2121-03-12"
                    },
                    "Venus": {
                        "start_time": "2121-03-12",
                        "end_time": "2124-03-12"
                    },
                    "Sun": {
                        "start_time": "2124-03-12",
                        "end_time": "2125-02-05"
                    },
                    "Moon": {
                        "start_time": "2125-02-05",
                        "end_time": "2126-08-05"
                    },
                    "Mars": {
                        "start_time": "2126-08-05",
                        "end_time": "2127-08-23"
                    }
                }
            }
        }
    }
}

Example Integrations

Below are examples of how you might call this API using different programming languages and environments.


cURL

curl --location 'https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha' \
--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"' \
--form 'dasha_type="antar-dasha"'

NodeJS

var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha',
  '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',
    'dasha_type': 'antar-dasha'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

JavaScript (jQuery AJAX)

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");
form.append("dasha_type", "antar-dasha");

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

import requests

url = "https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha"

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',
'dasha_type': 'antar-dasha'}

headers = {
  'Authorization': 'Bearer {Your Auth Token}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Example Code
curl -X POST "https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha" \
  -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"' \
  --form 'dasha_type="antar-dasha"'
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');
form.append('dasha_type', 'antar-dasha');

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

console.log(response.data);
import requests

url = "https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha"
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",
    "dasha_type": "antar-dasha",
}

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');
formData.append('dasha_type', 'antar-dasha');

const response = await fetch('https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha', {
  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/vimshottari-dasha', [
    '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'],
        ['name' => 'dasha_type', 'contents' => 'antar-dasha'],
    ],
]);

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.WriteField("dasha_type", "antar-dasha")
    writer.Close()

    req, _ := http.NewRequest("POST", "https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha", 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")
            .addFormDataPart("dasha_type", "antar-dasha")
            .build();

        Request request = new Request.Builder()
            .url("https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha")
            .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/vimshottari-dasha")!
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)!)
bodyData.append("Content-Disposition: form-data; name=\"dasha_type\"\r\n\r\n".data(using: .utf8)!)
bodyData.append("antar-dasha\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")
        .addFormDataPart("dasha_type", "antar-dasha")
        .build()

    val request = Request.Builder()
        .url("https://astroapi-3.divineapi.com/indian-api/v1/vimshottari-dasha")
        .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");
        content.Add(new StringContent("antar-dasha"), "dasha_type");

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