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

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": "5-2-2018",
    "prediction": {
        "health": "You shall feel fit and healthy. You would participate in outdoor physical activities. Make sure you stay hydrated throughout the day. Avoid overexertion.",
        "emotions": "Your confidence level shall rise. You would let go of all negative beliefs from past. You shall be open and flexible.",
        "personal_life": "You shall spend quality time with parents. Elders shall give you a helpful advise today. Love relations shall flourish. You judgements shall be appropriate today.",
        "profession": "New ventures shall have good start. Traders shall have good day. Businessmen shall change the market strategy at the last moment. Decisions taken shall prove to be fruitful.   ",
        "travel": "You would plan an outing with family or friends. The trip shall be full of fun.",
        "luck": "You shall have all you wishes fulfilled as you have luck smiling on you."
    }
}			
		
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