Astrology API Reference Documentation

Sun Sign Daily/sun_sign_prediction/daily/next/:zodiacName

Get next day sun sign prediction by zodiac name

API Endpoint

sun_sign_prediction/daily/next/:zodiacName

Method & URL
Method Full URL
POST https://json.astrologyapi.com/v1/sun_sign_prediction/daily/next/: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": "18-6-2017",
    "prediction": {
        "health": "On the health front, there may be a minor digestive disorder, but rest assured it will be nothing serious.",
        "emotions": "You are feeling rather good and it seems that you can place the pulse of success easily. You will be profusely passionate about things today.",
        "personal_life": "Your rapport with relatives and associates will be good. Go out for a fun filled evening and you are likely to become the life and soul of the celebrations. Following your instincts today can lead to great things in your personal life and relationships.",
        "profession": "You shall become optimistic and invest more working hours, to get better results. A number of opportunities will open up and you are more than ready to take full advantage of them. Even for people in jobs, things are likely keep you extremely busy.",
        "travel": "Destiny smiles on you today. Make the most of the chances that comes your way.",
        "luck": "Today is your lucky day. Don't be shy about expressing your true feelings or you will lose a very good opportunity."
    }
}			
		
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