SEARCH ASTROLOGY API DOCS

Advanced Panchang/panchang_lagna_table

API Endpoint
panchang_lagna_table
MethodPOST
Full URL
https://json.astrologyapi.com/v1/panchang_lagna_table

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

panchang day, eg: 10

panchang month, eg: 7

panchang year, eg: 2014

panchang hour, eg: 10

panchang minute, eg: 12

panchang place latitude, eg: 18.7250

panchang place longitude, eg: 72.250

panchang place timezone, eg: 5.5

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"
   }
]
POST
var api = 'panchang_lagna_table';
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 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)
});

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