SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Match Making/custom_match_profiles_xml

Match custom profile with primary profile with xml response

API Endpoint : custom_match_profiles_xml
Method : POST
Full URL :
https://json.astrologyapi.com/v1/custom_match_profiles_xml

Request Data

       'gender':'male',
        'profile_id': eg:10,
        'birth_detail': {
        'day' : 3,
        'month' : 2,
        'year' : 1987,
        'hour' : 20,
        'min' : 2,
        'lat' : 18.975,
        'lon' : 72.8258,
        'tzone' : 5.5,
        'name':'Demo'
    },
        "options":{
        "match_type":"dashkoot",
        "papasamyam":false,
        "kuj_dosha_check":false,
        "dasa_sandhi_check":false
    },
        'match_profiles': [
        {
            'profile_id':eg: 12,
            'birth_detail': {
            'day' : 13,
            'month' : 2,
            'year' : 1987,
            'hour' : 20,
            'min' : 2,
            'lat' : 18.975,
            'lon' : 72.8258,
            'tzone' : 5.5,
            'name':'Demo'
        }
        }
        ]

Response Data

<?xml version='1.0'?>
<result>
    <profile_id>10</profile_id>
    <match_results>
        <kuja_dosha>
            <conclusion>Both are not having kuja dosha and therefore this is a good match</conclusion>
            <is_female_kuja>false</is_female_kuja>
            <is_male_kuja>false</is_male_kuja>
            <is_match_good>true</is_match_good>
        </kuja_dosha>
        <dasha_sandhi>
            <conclusion>There is no co-incidence of vimshottari dasha trouble periods. This passes the dasha sandhi check.</conclusion>
            <is_match_good>true</is_match_good>
        </dasha_sandhi>
        <papasamyam>
            <conclusion>Good</conclusion>
            <female_points>30.8125</female_points>
            <is_match_good>true</is_match_good>
            <male_points>42.1875</male_points>
        </papasamyam>
        <profile_id>12</profile_id>
        <match_result>
            <is_match_good>false</is_match_good>
            <points_matched>14</points_matched>
            <total_points>36</total_points>
            <type>dashkoot</type>
        </match_result>
        <rajju_dosha>
            <status>true</status>
        </rajju_dosha>
        <vedha_dosha>
            <status>false</status>
        </vedha_dosha>
    </match_results>
</result>
POST
var api = 'custom_match_profiles_xml';
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);
});