SEARCH ASTROLOGY API DOCS

Home
Western Astrology

Planets Tropical/planets/tropical

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.

API Endpoint : planets/tropical
Method : POST
Full URL :
https://json.astrologyapi.com/v1/planets/tropical
Supported Languages

Guide:These languages are supported by this API. You can use them by passing Accept-Language header with a value of the language code.

Request Data

ParamsData typeDescriptions

day required

month required

year required

hour required

min required

lat required

lon required

tzone required

house_type

int

int

int

int

int

float

float

float

string

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

Default : "placidus" // koch/topocentric/poryphry/equal_house/whole_sign

Response Data

[
	{
		"name": "Sun",
		"fullDegree": 259.3692854715937,
		"normDegree": 19.369285471593685,
		"speed": 1.0163786145803477,
		"isRetro": "false",
		"sign": "Sagittarius",
		"house": 11
	},
	{
		"name": "Moon",
		"fullDegree": 113.01532109301493,
		"normDegree": 23.015321093014933,
		"speed": 13.422889565180862,
		"isRetro": "false",
		"sign": "Cancer",
		"house": 7
	},
	{
		"name": "Mars",
		"fullDegree": 319.2803341423472,
		"normDegree": 19.280334142347215,
		"speed": 0.7621766783897992,
		"isRetro": "false",
		"sign": "Aquarius",
		"house": 1
	},
	{
		"name": "Mercury",
		"fullDegree": 267.157142291648,
		"normDegree": 27.157142291647972,
		"speed": -1.129353838866472,
		"isRetro": "true",
		"sign": "Sagittarius",
		"house": 12
	},
	{
		"name": "Jupiter",
		"fullDegree": 286.74844079893995,
		"normDegree": 16.748440798939953,
		"speed": 0.21989257845513263,
		"isRetro": "false",
		"sign": "Capricorn",
		"house": 12
	},
	{
		"name": "Venus",
		"fullDegree": 302.46109957231073,
		"normDegree": 2.4610995723107294,
		"speed": 1.1733155507134867,
		"isRetro": "false",
		"sign": "Aquarius",
		"house": 1
	},
	{
		"name": "Saturn",
		"fullDegree": 232.5728863112664,
		"normDegree": 22.572886311266387,
		"speed": 0.1112696563244877,
		"isRetro": "false",
		"sign": "Scorpio",
		"house": 10
	},
	{
		"name": "Uranus",
		"fullDegree": 254.1300701628793,
		"normDegree": 14.130070162879292,
		"speed": 0.06114507772452163,
		"isRetro": "false",
		"sign": "Sagittarius",
		"house": 11
	},
	{
		"name": "Neptune",
		"fullDegree": 270.70233881243786,
		"normDegree": 0.7023388124378585,
		"speed": 0.037269287688777034,
		"isRetro": "false",
		"sign": "Capricorn",
		"house": 12
	},
	{
		"name": "Pluto",
		"fullDegree": 213.81656661729093,
		"normDegree": 3.816566617290931,
		"speed": 0.030884363476755057,
		"isRetro": "false",
		"sign": "Scorpio",
		"house": 9
	},
	{
		"name": "Ascendant",
		"fullDegree": 288.3761917494198,
		"normDegree": 18.376191749419775,
		"speed": 0,
		"isRetro": "false",
		"sign": "Capricorn",
		"house": 1
	}
]
POST
var api = 'planets/tropical';
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);
});