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": "taurus",
"prediction_date": "8-7-2019",
"prediction": {
"personal_life": "Mercury stations retrograde today. With it comes your need for a deeper understanding of your partner. Or if you are single this will mean that finding someone who matters has never been so important",
"profession": "Have faith in your own decisions. This will propel your career, which will also benefit you financially.",
"health": "You like to maintain a routine with both your diet and exercise. Stay on track and you will feel the benefits from all aspects",
"travel": "An exciting upcoming trip has injected life into your day. Relish the feeling. ",
"luck": "Go the road less travelled. It will bring you more luck.",
"emotions": "Try not to be insecure about something you have no control over. This will do more damage than good.",
}
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