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.
{
"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);
});