The planets/tropical API returns the current positions of the celestial bodies in the tropical zodiac system. The response includes the name of the planet, its degree in the zodiac, its speed, retrograde status, zodiac sign, and the house it is in. The response contains data for the Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu, Ketu, Uranus, and the Ascendant.
Params | Data type | Descriptions |
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 |
[
{
"name":"Sun",
"fullDegree":330.41334722167386,
"normDegree":0.4133472216738596,
"speed":1.0082712955819473,
"isRetro":"false",
"sign":"Pisces",
"house":6
},
{
"name":"Moon",
"fullDegree":114.14261905777207,
"normDegree":24.142619057772066,
"speed":12.96038356718529,
"isRetro":"false",
"sign":"Cancer",
"house":10
},
{
"name":"Mars",
"fullDegree":233.72156832122934,
"normDegree":23.72156832122934,
"speed":0.43868381802381995,
"isRetro":"false",
"sign":"Scorpio",
"house":2
},
{
"name":"Mercury",
"fullDegree":307.51424233365265,
"normDegree":7.514242333652646,
"speed":1.3827585381538863,
"isRetro":"false",
"sign":"Aquarius",
"house":5
},
{
"name":"Jupiter",
"fullDegree":170.5405024872768,
"normDegree":20.540502487276797,
"speed":-0.1156591241859884,
"isRetro":"true",
"sign":"Virgo",
"house":12
},
{
"name":"Venus",
"fullDegree":303.0444272515151,
"normDegree":3.044427251515117,
"speed":1.2360758750576264,
"isRetro":"false",
"sign":"Aquarius",
"house":5
},
{
"name":"Saturn",
"fullDegree":255.4100962166526,
"normDegree":15.41009621665259,
"speed":0.055981588652839136,
"isRetro":"false",
"sign":"Sagittarius",
"house":3
},
{
"name":"Rahu",
"fullDegree":17.82108642639357,
"normDegree":17.82108642639357,
"speed":0.042691349237498545,
"isRetro":"false",
"sign":"Aries",
"house":7
},
{
"name":"Ketu",
"fullDegree":339.14396839527734,
"normDegree":9.14396839527734,
"speed":0.03763873757585014,
"isRetro":"false",
"sign":"Pisces",
"house":6
},
{
"name":"Uranus",
"fullDegree":286.6496977594002,
"normDegree":16.649697759400226,
"speed":0.026805666632626103,
"isRetro":"false",
"sign":"Capricorn",
"house":4
},
{
"name":"Ascendant",
"fullDegree":182.69912637830785,
"normDegree":2.6991263783078523,
"speed":"-",
"isRetro":false,
"sign":"Libra",
"house":1
}
]
var api = 'planets/tropical';
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);
});