This API provides a compatibility report between two individuals based on their sun sign and rising sign. The response includes a compatibility report which highlights the strengths and challenges of the relationship, along with a compatibility percentage.
Params | Data type | Descriptions |
p_day required p_month required p_year required p_hour required p_min required p_lat required p_lon required p_tzone required s_day required s_month required s_year required s_hour required s_min required s_lat required s_lon required s_tzone required | int int int int int float float float int int int int int float float float | eg: 10 eg: 5 eg: 1990 eg: 11 eg: 55 eg: 19.2056 eg: 25.2056 eg: 5.5 eg: 10 eg: 5 eg: 1990 eg: 11 eg: 55 eg: 19.2056 eg: 25.2056 eg: 5.5 |
{
"compatibility_report": "Your influence may bring opportunities and creativity to his or her abilities to manifest money. You can also create more desire for physical pleasure with your partner. Be careful though as with this placement your partner may feel he or she is being used for money. This aspect certainly indicates an attraction, but may present challenges. The way your partner presents him or herself is at odds with your core being and ego. You may find the your partner a bit bossy or overbearing and self-centered.",
"compatibility_percentage": 69
}
var api = 'compatibility/:sunSign/:risingSign/:partnerSunSign/:partnerRisingSign';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var data = {
day: 6,
month: 1,
year: 2000,
hour: 7,
min: 45,
lat: 19.132,
lon: 72.342,
tzone: 5.5,
};
var auth = "Basic " + new Buffer(userId + ":" + apiKey).toString("base64");
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
method: "POST",
dataType:'json',
headers: {
"authorization": auth,
"Content-Type":'application/json'
},
data:JSON.stringify(data)
});
request.then( function(resp){
console.log(resp);
}, function(err){
console.log(err);
});