US :  +1 (888) 261-8481    |    INDIA :  +91 (22) 2635-9680

Astrology API Reference Documentation

KP Astrology/kp_dasha_range

API Endpoint

kp_dasha_range

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

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"
    }
]			
		
Params Data type Descriptions

day

month

year

hour

min

seconds

lat

lon

tzone

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

            
                var userId = '';
var apiKey = '';
var data = 'JSON Request Data';
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
    method: "POST",
    dataType:'json',
    headers: {
    "authorization": "Basic " + btoa(userId+":"+apiKey),
        "Content-Type":'application/json'
    },
    data:JSON.stringify(data)
});
// Returns A promiss
return( request.then( function(resp){
    return resp;
}, function(err){
    return err;
}));
}
            
		
                
                    require_once 'VedicRishiClient.php';
$userId = "";
$apiKey = "";
$data = array(
    'date' => 25,
    'month' => 12,
    'year' => 1988,
    'hour' => 4,
    'minute' => 0,
    'latitude' => 25.123,
    'longitude' => 82.34,
    'timezone' => 5.5
);
$resourceName = "astro_details";
$vedicRishi = new VedicRishiClient($userId, $apiKey);
$responseData = $vedicRishi->call($resourceName, $data['date'], $data['month'], $data['year'], $data['hour'], $data['minute'], $data['latitude'], $data['longitude'], $data['timezone']);
echo $responseData;


                

             
Download PHP Client