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

Astrology API Reference Documentation

Advanced Panchang/panchang_lagna_table

API Endpoint

panchang_lagna_table

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

Response Data

			
				[
   {
       "lagna": "Cancer",
       "start_time": "27-07-2018 10:43:30",
       "end_time": "27-07-2018 12:56:46"
   },
   {
       "lagna": "Leo",
       "start_time": "27-07-2018 12:56:46",
       "end_time": "27-07-2018 15:04:54"
   },
   {
       "lagna": "Virgo",
       "start_time": "27-07-2018 15:04:54",
       "end_time": "27-07-2018 17:11:47"
   },
   {
       "lagna": "Libra",
       "start_time": "27-07-2018 17:11:47",
       "end_time": "27-07-2018 19:23:04"
   },
   {
       "lagna": "Scorpio",
       "start_time": "27-07-2018 19:23:04",
       "end_time": "27-07-2018 21:37:19"
   },
   {
       "lagna": "Sagittarius",
       "start_time": "27-07-2018 21:37:19",
       "end_time": "27-07-2018 23:43:20"
   },
   {
       "lagna": "Capricorn",
       "start_time": "27-07-2018 23:43:20",
       "end_time": "28-07-2018 01:32:45"
   },
   {
       "lagna": "Aquarius",
       "start_time": "28-07-2018 01:32:45",
       "end_time": "28-07-2018 03:09:23"
   },
   {
       "lagna": "Pisces",
       "start_time": "28-07-2018 03:09:23",
       "end_time": "28-07-2018 04:43:45"
   },
   {
       "lagna": "Aries",
       "start_time": "28-07-2018 04:43:45",
       "end_time": "28-07-2018 06:27:08"
   },
   {
       "lagna": "Taurus",
       "start_time": "28-07-2018 06:27:08",
       "end_time": "28-07-2018 08:26:58"
   },
   {
       "lagna": "Gemini",
       "start_time": "28-07-2018 08:26:58",
       "end_time": "28-07-2018 10:39:34"
   }
]			
		
Params Data type Descriptions

day

month

year

lat

lon

tzone

int

int

int

float

float

float

panchang day, eg: 10

panchang month, eg: 7

panchang year, eg: 2014

panchang place latitude, eg: 18.7250

panchang place longitude, eg: 72.250

panchang place timezone, eg: 5.5

            
                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