SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

KP Astrology/kp_dasha_range

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

Request Data

ParamsData typeDescriptions

day required

month required

year required

hour required

min required

seconds

lat required

lon required

tzone required

start_date

start_month

start_year

start_hour

start_minute

start_second

stop_date

stop_month

stop_year

stop_hour

stop_minute

stop_second

int

int

int

int

int

int

float

float

float

int

int

int

int

int

int

int

int

int

int

int

int

date of birth, eg: 10

month of birth, eg: 5

year of birth, eg: 1990

hour, eg: 19

minute, eg: 55

seconds, eg: 34

latitude, eg: 19.2056

longitude, eg: 25.2056

timezone, eg: 5.5

start date , eg:12

start month , eg:5

start year , eg:2016

start hour , eg:12

start minute , eg:44

start seconds , eg:54

stop date , eg:15

stop month , eg:5

stop year , eg:2016

stop hour , eg:4

stop minute , eg:34

stop seconds , eg:44

Response Data

[
    {
        "dasha_sequence": "Su/Ra/Sa/Ju/Mo",
        "end_time": "12/11/2017, 21:45"
    },
    {
        "dasha_sequence": "Su/Ra/Sa/Ju/Ma",
        "end_time": "13/11/2017, 7:28"
    },
    {
        "dasha_sequence": "Su/Ra/Sa/Ju/Ra",
        "end_time": "14/11/2017, 8:27"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Ke",
        "end_time": "15/11/2017, 16:7"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Ve",
        "end_time": "16/11/2017, 18:30"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Su",
        "end_time": "17/11/2017, 2:25"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Mo",
        "end_time": "17/11/2017, 15:37"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Ma",
        "end_time": "18/11/2017, 0:51"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Ra",
        "end_time": "19/11/2017, 0:36"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Ju",
        "end_time": "19/11/2017, 21:43"
    },
    {
        "dasha_sequence": "Su/Ra/Me/Me/Sa",
        "end_time": "20/11/2017, 22:47"
    }
]
POST
var api = 'kp_dasha_range';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
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'
},
    data:JSON.stringify(data)
});

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