US :  +1 (888) 261-8481    |    INDIA :  +91 (22) 2635-9680

Astrology API Reference Documentation

Basic Astro/planets/tropical

Full planetary positions including ascendant along with,neptune,pluto,uranus, retrograde status and nakshatra, house, sign

API Endpoint

planets/tropical

Method & URL
Method Full URL
POST https://json.astrologyapi.com/v1/planets/tropical

Response Data

			
				[
   {
      "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
   }
]			
		
Params Data type Descriptions

day

month

year

hour

min

lat

lon

tzone

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

            
                var api = 'planets';
var userId = '';
var apiKey = '';
var data = {
        day:12,
        month:3,
        year:1992,
        hour:2,
        min:23,
        lat:19.132,
        lon:72.342,
        tzone:5.5
    };
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
    "authorization": "Basic " + btoa(userId+":"+apiKey),
    "Content-Type":'application/json'
},
    data:JSON.stringify(data)
});

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

                   
		
                
                    require_once 'VedicRishiClient.php';
$userId = "";
$apiKey = "";
$data = array(
    'date' => 25,
    'month' => 12,
    'year' => 1988,
    'hour' => 4,
    'minute' => 0,
    'latitude' => 25.123,
    'longitude' => 82.34,
    'timezone' => 5.5
);
$resourceName = "astro_details";
$vedicRishi = new VedicRishiClient($userId, $apiKey);
$responseData = $vedicRishi->call($resourceName, $data['date'], $data['month'], $data['year'], $data['hour'], $data['minute'], $data['latitude'], $data['longitude'], $data['timezone']);
echo $responseData;


                

             
Download PHP Client