Astrology API Reference Documentation

Match Making/custom_match_profiles

Match custom profile with primary profile

API Endpoint

custom_match_profiles

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

Response Data

			
				{
  "gender": "male",
  "profile_id": 10,
  "status": true,
  "match_results": [
    {
      "ashtakoot": {
        "varna": {
          "m_attr": "Vipra",
          "f_attr": "Vipra",
          "received_points": 1
        },
        "vashya": {
          "m_attr": "Jalchar",
          "f_attr": "Jalchar",
          "received_points": 2
        },
        "tara": {
          "m_attr": "Revati",
          "f_attr": "Ashlesha",
          "received_points": 3
        },
        "yoni": {
          "m_attr": "Gaj",
          "f_attr": "Marjaar",
          "received_points": 2
        },
        "maitri": {
          "m_attr": "Jupiter",
          "f_attr": "Moon",
          "received_points": 4
        },
        "gan": {
          "m_attr": "Dev",
          "f_attr": "Rakshasa",
          "received_points": 0
        },
        "bhakut": {
          "m_attr": "Pisces",
          "f_attr": "Cancer",
          "received_points": 0
        },
        "nadi": {
          "m_attr": "Ant",
          "f_attr": "Ant",
          "received_points": 0
        },
        "conclusion": {
          "status": true,
          "report": "The match has scored 12 points outs of 36 points. This is a quite a low score. However, it is seen from your horoscopes that the Moon signs of both the boy and the girl share a friendly relation, which indicates better harmony and coordination between the two. Hence, this can be said to be a positive match."
        }
      },
      "match_report": {
        "ashtakoota": {
          "status": false,
          "received_points": 12
        },
        "manglik": {
          "status": true,
          "male_percentage": 13.25,
          "female_percentage": 15
        },
        "rajju_dosha": {
          "status": true
        },
        "vedha_dosha": {
          "status": false
        },
        "conclusion": {
          "match_report": "The Ashtakoota points are less than the minimum requirement of 18, therefore marriage is not suitable even though there is no Mangal Dosha."
        }
      },
      "match_obstructions": {
        "is_present": false,
        "vedha_report": "The Nakshatras of male and female does not belong to Vedha Kutir pair and therefore no Vedha dosha.",
        "vedha_name": false
      },
      "profile_id": 12
    }
  ]
}			
		
    
        '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