SEARCH ASTROLOGY API DOCS

Home
Western Astrology

Compatibility/compatibility/:sunSign/:risingSign/:partnerSunSign/:partnerRisingSign

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.

API Endpoint : compatibility/:sunSign/:risingSign/:partnerSunSign/:partnerRisingSign
Method : POST
Full URL :
https://json.astrologyapi.com/v1/compatibility/:sunSign/:risingSign/:partnerSunSign/:partnerRisingSign
Supported Languages

Guide:These languages are supported by this API. You can use them by passing Accept-Language header with a value of the language code.

No request data required for this API.

Response Data

{
	"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
}
POST
var api = 'compatibility/:sunSign/:risingSign/:partnerSunSign/:partnerRisingSign';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
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',
    "Accept-Language": language 
},
    data:JSON.stringify(data)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});