SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Varshaphal/varshaphal_planets

The API varshaphal_planets provides information about the positions and attributes of various celestial bodies such as planets, ascendant, Rahu, and Ketu. The response includes details such as the name, degree, speed, retrograde status, sign, sign lord, nakshatra, nakshatra lord, and house.

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

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

[
  {
    "id": 0,
    "name": "Sun",
    "fullDegree": 290.5492548929573,
    "normDegree": 20.54925489295732,
    "speed": 1.0144107602137562,
    "isRetro": "false",
    "sign": "Capricorn",
    "signLord": "Saturn",
    "nakshatra": "Shravan",
    "nakshatraLord": "Moon",
    "house": 10
  },
  {
    "id": 1,
    "name": "Moon",
    "fullDegree": 8.999300623030823,
    "normDegree": 8.999300623030823,
    "speed": 14.037573021178208,
    "isRetro": "false",
    "sign": "Aries",
    "signLord": "Mars",
    "nakshatra": "Ashwini",
    "nakshatraLord": "Ketu",
    "house": 1
  },
  {
    "id": 2,
    "name": "Mars",
    "fullDegree": 340.4260202188891,
    "normDegree": 10.426020218889107,
    "speed": 0.7441883721584771,
    "isRetro": "false",
    "sign": "Pisces",
    "signLord": "Jupiter",
    "nakshatra": "Uttra Bhadrapad",
    "nakshatraLord": "Saturn",
    "house": 12
  },
  {
    "id": 3,
    "name": "Mercury",
    "fullDegree": 269.95919225811286,
    "normDegree": 29.959192258112864,
    "speed": 1.4175810076192978,
    "isRetro": "false",
    "sign": "Sagittarius",
    "signLord": "Jupiter",
    "nakshatra": "Uttra Shadha",
    "nakshatraLord": "Sun",
    "house": 9
  },
  {
    "id": 4,
    "name": "Jupiter",
    "fullDegree": 179.03223409278107,
    "normDegree": 29.032234092781067,
    "speed": 0.00942020951716231,
    "isRetro": "false",
    "sign": "Virgo",
    "signLord": "Mercury",
    "nakshatra": "Chitra",
    "nakshatraLord": "Mars",
    "house": 6
  },
  {
    "id": 5,
    "name": "Venus",
    "fullDegree": 335.6182759549313,
    "normDegree": 5.618275954931278,
    "speed": 0.7942628291010582,
    "isRetro": "false",
    "sign": "Pisces",
    "signLord": "Jupiter",
    "nakshatra": "Uttra Bhadrapad",
    "nakshatraLord": "Saturn",
    "house": 12
  },
  {
    "id": 6,
    "name": "Saturn",
    "fullDegree": 240.71999740122575,
    "normDegree": 0.7199974012257542,
    "speed": 0.08953546028530485,
    "isRetro": "false",
    "sign": "Sagittarius",
    "signLord": "Jupiter",
    "nakshatra": "Mool",
    "nakshatraLord": "Ketu",
    "house": 9
  },
  {
    "id": 7,
    "name": "Rahu",
    "fullDegree": 130.36914290810165,
    "normDegree": 10.36914290810165,
    "speed": -0.05295374046660876,
    "isRetro": "true",
    "sign": "Leo",
    "signLord": "Sun",
    "nakshatra": "Magha",
    "nakshatraLord": "Ketu",
    "house": 5
  },
  {
    "id": 8,
    "name": "Ketu",
    "fullDegree": 310.36914290810165,
    "normDegree": 10.36914290810165,
    "speed": -0.05295374046660876,
    "isRetro": "true",
    "sign": "Aquarius",
    "signLord": "Saturn",
    "nakshatra": "Shatbhisha",
    "nakshatraLord": "Rahu",
    "house": 11
  },
  {
    "id": 9,
    "name": "Ascendant",
    "fullDegree": 28.266290492620563,
    "normDegree": 28.266290492620563,
    "speed": 0,
    "isRetro": false,
    "sign": "Aries",
    "signLord": "Mars",
    "nakshatra": "Krittika",
    "nakshatraLord": "Sun",
    "house": 1
  }
]
POST
var api = 'varshaphal_planets';
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);
});