Astrology API Reference Documentation

Sun Sign Daily/sun_sign_prediction/daily/:zodiacName

Get today's daily prediction for 6 categories based on Sun Sign.

API Endpoint

sun_sign_prediction/daily/:zodiacName

Method & URL
Method Full URL
POST https://json.astrologyapi.com/v1/sun_sign_prediction/daily/:zodiacName
zodiacName

Where Zodiac name is -

aries,
taurus,
gemini,
cancer,
leo,
virgo,
libra,
scorpio,
sagittarius,
capricorn,
aquarius,
pisces

NOTE- Based on the timezone given, it decides the date for which the predictions need to be returned.

Response Data

			
				{
   "status":true,
   "sun_sign":"aries",
   "prediction_date":"26-2-2016",
   "prediction":{
      "health":"You shall enjoy good health. There shall be no physical ailments. . Despite a hectic day you will still be able to retain your high energy levels.",
      "emotional":"You will experience happiness and contentment. Romantic feelings and satisfaction will play a key role in your bliss today.",
      "personal":"You shall enjoy conjugal comfort and happiness. You shall be intimately drawn towards someone. You may celebrate the day with your beloved. Relations with friends and relatives will be rewarding and enjoyable. Overall, it is a satisfying period for pleasure and happiness.",
      "professional":"You will get rewards, results and appreciation for your work. There shall be a boost in your earnings and profits.",
      "travel":"Today is a perfect day to go for a romantic outing with your partner.",
      "luck":"Today is a very auspicious day for you. Your wishes shall be fulfilled."
   }
}			
		
Params Data type Descriptions

timezone

float

timezone, eg: 5.5 // if not given default will taken as 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