SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Varshaphal Details/varshaphal_details

The varshaphal_details API provides information about a person's yearly horoscope based on their birth date. The response includes details such as the year, age of the person, birth date, and details about different planetary positions and lords.

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

Request Data

ParamsData typeDescriptions

day required

month required

year required

hour required

min required

lat required

lon required

tzone required

varshaphal_yearrequired

int

int

int

int

int

float

float

float

int

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

Varshaphal year for which you want the details, eg: 2017

Response Data

{
	"varshaphala_year": 2001,
	"age_of_native": 1,
	"ayanamsha_name": "LAHIRI",
	"ayanamsha_degree": 23.8779,
	"varshaphala_timestamp": 993677784000,
	"native_birth_date": "27-06-2000 15:30:00",
	"varshaphala_date": "27-06-2001 21:36:24",
	"panchadhikari": {
		"muntha_lord": "Mars",
		"muntha_lord_id": 2,
		"birth_ascendant_lord": "Venus",
		"birth_ascendant_lord_id": 5,
		"year_ascendant_lord": "Saturn",
		"year_ascendant_lord_id": 6,
		"dinratri_lord": "Mercury",
		"trirashi_lord": "Mars"
	},
	"varshaphala_year_lord": "Mars",
	"varshaphala_muntha": {
		"muntha_sign": "Scorpio",
		"muntha_sign_lord": "Mars"
	}
}
POST
var api = 'varshaphal_details';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
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',
    "Accept-Language": language 
},
    data:JSON.stringify(data)
});

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