The match_making_report API returns a report on the compatibility between two individuals based on several factors such as ashtakoota, manglik, rajju dosha, and vedha dosha. The response includes the status and details for each factor and concludes with a match report recommending the marriage.
Params | Data type | Descriptions |
day required month required year required hour required min required lat required lon required tzone required | int int int int int float float float | date of birth, eg: 10 month of birth, eg: 5 year of birth, eg: 1990 hour, eg: 19 minute, eg: 55 latitude, eg: 19.2056 longitude, eg: 25.2056 timezone, eg: 5.5 |
{
"ashtakoota": {
"status": true,
"received_points": 22
},
"manglik": {
"status": true,
"male_percentage": 18.75,
"female_percentage": 18.75
},
"rajju_dosha": {
"status": false
},
"vedha_dosha": {
"status": false
},
"conclusion": {
"match_report": "Marriage between the prospective bride and groom is highly recommended. The couple would have a long-lasting relationship, which would be filled with happiness and affluence."
}
}
var api = 'match_simple_report';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var data = {
m_day: 6,
m_month: 1,
m_year: 2000,
m_hour: 7,
m_min: 45,
m_lat: 19.132,
m_lon: 72.342,
m_tzone: 5.5,
f_day: 6,
f_month: 1,
f_year: 2000,
f_hour: 7,
f_min: 45,
f_lat: 19.132,
f_lon: 72.342,
f_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);
});