SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Basic Vimshottari Dasha/current_vdasha

The API current_vdasha is returning information about the current Vimshottari Dasha periods according to Vedic astrology. It includes the start and end dates, as well as the ruling planet, for the major, minor, sub-minor, sub-sub-minor, and sub-sub-sub-minor periods.

API Endpoint : current_vdasha
Method : POST
Full URL :
https://json.astrologyapi.com/v1/current_vdasha

Request Data

ParamsData typeDescriptions

day required

month required

year required

hour required

min required

lat required

lon required

tzone required

int

int

int

int

int

float

float

float

date of birth, eg: 10

month of birth, eg: 5

year of birth, eg: 1990

hour, eg: 19

minute, eg: 55

latitude, eg: 19.2056

longitude, eg: 25.2056

timezone, eg: 5.5

Response Data

{
	"major": {
		"planet": "Sun",
		"planet_id": 0,
		"start": "2-5-2021  8:7",
		"end": "2-5-2027  20:7"
	},
	"minor": {
		"planet": "Saturn",
		"planet_id": 6,
		"start": "8-3-2024  7:13",
		"end": "18-2-2025  6:55"
	},
	"sub_minor": {
		"planet": "Saturn",
		"planet_id": 6,
		"start": "8-3-2024  7:13",
		"end": "2-5-2024  5:46"
	},
	"sub_sub_minor": {
		"planet": "Mercury",
		"planet_id": 3,
		"start": "16-3-2024  23:59",
		"end": "24-3-2024  18:47"
	},
	"sub_sub_sub_minor": {
		"planet": "Moon",
		"planet_id": 1,
		"start": "20-3-2024  5:49",
		"end": "20-3-2024  21:23"
	}
}
POST
var api = 'current_vdasha';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
var data = {
  day: 6,
  month: 1,
  year: 2000,
  hour: 7,
  min: 45,
  lat: 19.132,
  lon: 72.342,
  tzone: 5.5,
};

var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");

var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
    "authorization": auth,
    "Content-Type":'application/json',
    "Accept-Language": language 
},
    data:JSON.stringify(data)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});