Astrology API Reference Documentation

Match Making/custom_match_profiles_xml

Match custom profile with primary profile with xml response

API Endpoint

custom_match_profiles_xml

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

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>			
		
    
        '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'
                }
            }
        ]

    
            
                var userId = '';
var apiKey = '';
var data = 'JSON Request Data';
var request = $.ajax({
url: "https://json.astrologyapi.com/v1/"+api,
    method: "POST",
    dataType:'json',
    headers: {
    "authorization": "Basic " + btoa(userId+":"+apiKey),
        "Content-Type":'application/json'
    },
    data:JSON.stringify(data)
});
// Returns A promiss
return( request.then( function(resp){
    return resp;
}, function(err){
    return err;
}));
}
            
		
                
                    require_once 'VedicRishiClient.php';
$userId = "";
$apiKey = "";
$data = array(
    'date' => 25,
    'month' => 12,
    'year' => 1988,
    'hour' => 4,
    'minute' => 0,
    'latitude' => 25.123,
    'longitude' => 82.34,
    'timezone' => 5.5
);
$resourceName = "astro_details";
$vedicRishi = new VedicRishiClient($userId, $apiKey);
$responseData = $vedicRishi->call($resourceName, $data['date'], $data['month'], $data['year'], $data['hour'], $data['minute'], $data['latitude'], $data['longitude'], $data['timezone']);
echo $responseData;


                

             
Download PHP Client