SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Advanced Panchang/advanced_panchang

The advanced_panchang API provides detailed information about various aspects of Hindu Panchang, including tithi, nakshatra, yog, karan, and more. The API returns a response that includes information such as day, sunrise and sunset timings, moonrise and moonset timings, as well as details about different panchang elements such as deity, auspiciousness, and recommended activities.

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

1. Panchang at specified date and time
Here, following APIs are used and date and time along with latitude, longitude and timezone are expected -

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

{
	"day": "Tuesday",
	"sunrise": "5:10:7",
	"sunset": "18:54:25",
	"moonrise": "1:17:21",
	"moonset": "14:8:42",
	"vedic_sunrise": "5:14:15",
	"vedic_sunset": "18:50:17",
	"tithi": {
		"details": {
			"tithi_number": 25,
			"tithi_name": "Krishna Dashami",
			"special": "Poorna",
			"summary": "Good for completing any work, spiritual practices and other pious activities. Auspicious for Griha-Pravesh, entering a home, wedding, start new businesses.",
			"deity": "Dharma"
		},
		"end_time": {
			"hour": 16,
			"minute": 22,
			"second": 51
		},
		"end_time_ms": 962103171000
	},
	"nakshatra": {
		"details": {
			"nak_number": 1,
			"nak_name": "Ashwini",
			"ruler": "Ketu",
			"deity": "Ashwini",
			"special": "Moola Nakshatra",
			"summary": "Suitable for journeys, healing, beginning of studying, business start, education and teaching, taking medications, giving and taking loans, religious activities."
		},
		"end_time": {
			"hour": 18,
			"minute": 17,
			"second": 52
		},
		"end_time_ms": 962110072000
	},
	"yog": {
		"details": {
			"yog_number": 7,
			"yog_name": "Sukarma",
			"special": "Auspicious yoga,Good for auspicious undertakings.",
			"meaning": "(Virtuous) — performs noble deeds, magnanimous and charitable, wealthy."
		},
		"end_time": {
			"hour": 30,
			"minute": 34,
			"second": 22
		},
		"end_time_ms": 962154263000
	},
	"karan": {
		"details": {
			"karan_number": 8,
			"karan_name": "Vishti",
			"special": "It is also called Bhadra .It is held to be a very inauspicious Karana for performance of any important work. Work started in this Karana may have little success. Vishti is also known as Bhadra.",
			"deity": "Deth or Mrityu"
		},
		"end_time": {
			"hour": 16,
			"minute": 20,
			"second": 51
		},
		"end_time_ms": 962103051000
	},
	"hindu_maah": {
		"adhik_status": false,
		"purnimanta": "Ashadha",
		"amanta": "Jyeshtha",
		"amanta_id": 3,
		"purnimanta_id": 4
	},
	"paksha": "Krishna-Paksha",
	"ritu": "Grishm",
	"sun_sign": "Gemini",
	"moon_sign": "Aries",
	"ayana": "Uttarayana",
	"panchang_yog": " Amrit Siddhi Yog",
	"vikram_samvat": 2057,
	"shaka_samvat": 1922,
	"vkram_samvat_name": "Vijay",
	"shaka_samvat_name": "Vikram",
	"disha_shool": "NORTH",
	"disha_shool_remedies": "-",
	"nak_shool": {
		"direction": "none",
		"remedies": "-"
	},
	"moon_nivas": "EAST",
	"abhijit_muhurta": {
		"start": "11:35",
		"end": "12:29"
	},
	"rahukaal": {
		"start": "15:28:21",
		"end": "17:11:23"
	},
	"guliKaal": {
		"start": "12:02:16",
		"end": "13:45:18"
	},
	"yamghant_kaal": {
		"start": "08:36:11",
		"end": "10:19:14"
	}
}
POST
var api = 'advanced_panchang';
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);
});