SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Varshaphal/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": 2017,
  "age_of_native": 30,
  "ayanamsha_name": "Lahiri",
  "ayanamsha_degree": 24.095816873342585,
  "varshaphala_timestamp": 1486105661000,
  "native_birth_date": "3-2-1987 20:2:0",
  "varshaphala_date": "3-2-2017 12:37:41",
  "panchadhikari": {
    "muntha_lord": "SATURN",
    "birth_ascendant_lord": "SUN",
    "year_ascendant_lord": "MARS",
    "dinratri_lord": "SATURN",
    "trirashi_lord": "JUPITER"
  },
  "varshaphala_year_lord": "SUN",
  "varshaphala_muntha": {
    "muntha_sign": "Aquarius",
    "muntha_sign_lord": "SATURN"
  }
}
POST
var api = 'varshaphal_details';
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);
});