Get Today’s Horoscope Prediction
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/horoscope_prediction/daily/:signName |
signName
signName means the name of the Zodiac Sign for which you want data.
For example:-
{
"status_code": 200,
"status": true,
"data": {
"sign": "Aries",
"prediction": [
"Your confidence will increase so that one by one all your works will be completed. You will get to hear some happy news from a relative’s phone call.",
"Start doing physical exercise. You will feel full of enthusiasm and hope. All your good health goals will be fruitful today.",
"Today is a good day to pour out your creativity.",
"Differences are likely to occur with family members. Ego conflicts in marital relationships can cause stress. You may have an affair with an old friend. Avoid engaging in serious debate. You will be highly sensitive to comments made by people close to you.",
"You will be more sympathetic towards the feelings of others and share your feelings openly with them. Will enjoy the day with family and friends. You may get an invitation to attend a social gathering.",
"You may run around with some work, due to which you may feel tired. Today will be a great day for friends, today you will meet your dear friend."
],
"prediction_date": "27-10-2021"
}
}
Params | Data Type | Description | Example |
---|---|---|---|
timezone | float | Timezone of Prediction | 5.5 |
# cURL Request Example
curl --location --request POST 'https://json.apireports.com/v1/horoscope_prediction/daily/:signName' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
"timezone": 5.5
}'
# END
/* JavaScript Request Example */
var apiEndPoint = "horoscope_prediction/daily/:signName";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
"timezone": 5.5
};
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var request = $.ajax({
url: url,
method: "POST",
dataType:'json',
headers: {
"Authorization": "Basic " + btoa(userId+":"+apiKey),
"Accept-Language": "en",
"Content-Type":'application/json'
},
data:JSON.stringify(data)
});
request.then(
function(resp){
console.log(resp);
},
function(err){
console.log(err);
}
);
/* END */
<?php
/* PHP Request Example */
$apiEndPoint = "horoscope_prediction/daily/:signName";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
"timezone" => 5.5
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url.$apiEndPoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$header[] = 'Authorization: Basic '. base64_encode($userId.":".$apiKey);
$header[] = 'Accept-Language: en';
$header[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$error = curl_error($ch);
$http_code = curl_getinfo($ch ,CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;
/* END */
# Python Request Example
import requests
import json
apiEndPoint = "horoscope_prediction/daily/:signName";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint
data = json.dumps({
"timezone": 5.5
})
headers = {
'Accept-Language': 'en',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, auth=(userId, apiKey),data=data)
print(response.text)
# END
/* NodeJS Request Example */
var request = require('request');
var apiEndPoint = "horoscope_prediction/daily/:signName";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var options = {
'method': 'POST',
'url': url,
'auth': {
'user': userId,
'password': apiKey
},
'headers': {
'Accept-Language': 'en',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"timezone": 5.5
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
/* END */