Astrology API Reference Documentation

Basic Astro/planets/extended

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

API Endpoint

planets/extended

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

Response Data

			
				[
   {
      "id":0,
      "name":"Sun",
      "fullDegree":307.11093703244296,
      "normDegree":7.110937032442962,
      "speed":1.007899344711752,
      "isRetro":"false",
      "sign":"Aquarius",
      "signLord":"Saturn",
      "nakshatra":"Shatbhisha",
      "nakshatraLord":"Rahu",
      "house":9
   },
   {
      "id":1,
      "name":"Moon",
      "fullDegree":100.02046875395637,
      "normDegree":10.020468753956365,
      "speed":12.78994958480992,
      "isRetro":"false",
      "sign":"Cancer",
      "signLord":"Moon",
      "nakshatra":"Pushya",
      "nakshatraLord":"Saturn",
      "house":2
   },
   {
      "id":2,
      "name":"Mars",
      "fullDegree":209.97753796440014,
      "normDegree":29.977537964400142,
      "speed":0.43577129970366774,
      "isRetro":"false",
      "sign":"Libra",
      "signLord":"Venus",
      "nakshatra":"Vishakha",
      "nakshatraLord":"Jupiter",
      "house":5
   },
   {
      "id":3,
      "name":"Mercury",
      "fullDegree":284.50777325224277,
      "normDegree":14.507773252242771,
      "speed":1.398430685817683,
      "isRetro":"false",
      "sign":"Capricorn",
      "signLord":"Saturn",
      "nakshatra":"Shravan",
      "nakshatraLord":"Moon",
      "house":8
   },
   {
      "id":4,
      "name":"Jupiter",
      "fullDegree":146.36827664042605,
      "normDegree":26.368276640426046,
      "speed":-0.11687389340516546,
      "isRetro":"true",
      "sign":"Leo",
      "signLord":"Sun",
      "nakshatra":"Purva Phalguni",
      "nakshatraLord":"Venus",
      "house":3
   },
   {
      "id":5,
      "name":"Venus",
      "fullDegree":279.91842300578094,
      "normDegree":9.918423005780937,
      "speed":1.2361539938276809,
      "isRetro":"false",
      "sign":"Capricorn",
      "signLord":"Saturn",
      "nakshatra":"Uttra Shadha",
      "nakshatraLord":"Sun",
      "house":8
   },
   {
      "id":6,
      "name":"Saturn",
      "fullDegree":231.3706884306987,
      "normDegree":21.370688430698692,
      "speed":0.05484731668007799,
      "isRetro":"false",
      "sign":"Scorpio",
      "signLord":"Mars",
      "nakshatra":"Jyeshtha",
      "nakshatraLord":"Mercury",
      "house":6
   },
   {
      "id":7,
      "name":"Rahu",
      "fullDegree":148.85708154742144,
      "normDegree":28.857081547421444,
      "speed":-0.052953741484386294,
      "isRetro":"true",
      "sign":"Leo",
      "signLord":"Sun",
      "nakshatra":"Uttra Phalguni",
      "nakshatraLord":"Sun",
      "house":3
   },
   {
      "id":8,
      "name":"Ketu",
      "fullDegree":328.85708154742144,
      "normDegree":28.857081547421444,
      "speed":-0.052953741484386294,
      "isRetro":"true",
      "sign":"Aquarius",
      "signLord":"Saturn",
      "nakshatra":"Purva Bhadrapad",
      "nakshatraLord":"Jupiter",
      "house":9
   },
   {
      "id":9,
      "name":"Uranus",
      "fullDegree":353.7720015288286,
      "normDegree":23.772001528828582,
      "speed":0.043119395378829556,
      "isRetro":"false",
      "sign":"Pisces",
      "signLord":"Jupiter",
      "nakshatra":"Revati",
      "nakshatraLord":"Mercury",
      "house":10
   },
   {
      "id":10,
      "name":"Neptune",
      "fullDegree":315.09082970766957,
      "normDegree":15.09082970766957,
      "speed":0.03769196080758616,
      "isRetro":"false",
      "sign":"Aquarius",
      "signLord":"Saturn",
      "nakshatra":"Shatbhisha",
      "nakshatraLord":"Rahu",
      "house":9
   },
   {
      "id":11,
      "name":"Pluto",
      "fullDegree":262.5880547208212,
      "normDegree":22.58805472082122,
      "speed":0.026539090293640644,
      "isRetro":"false",
      "sign":"Sagittarius",
      "signLord":"Jupiter",
      "nakshatra":"Purva Shadha",
      "nakshatraLord":"Venus",
      "house":7
   },
   {
      "id":12,
      "name":"Ascendant",
      "fullDegree":84.52564098249934,
      "normDegree":24.52564098249934,
      "speed":0,
      "isRetro":false,
      "sign":"Gemini",
      "signLord":"Mercury",
      "nakshatra":"Punarvasu",
      "nakshatraLord":"Jupiter",
      "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 userId = '';
var apiKey = '';
var data = 'JSON Request Data';
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)
});
// Returns A promiss
return( request.then( function(resp){
    return resp;
}, function(err){
    return 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