US :  +1 (888) 261-8481    |    INDIA :  +91 (22) 2635-9680

インド占星術APIレファレンス

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 api = 'API_ENDPOINT_HERE';
var userId = 'YOUR_USER_ID';
var apiKey = 'YOUR_API_KEY';
var data = {
        day:12,
        month:3,
        year:1992,
        hour:2,
        min:23,
        lat:19.132,
        lon:72.342,
        tzone:5.5
    };
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)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(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 = 'API_ENDPOINT_HERE';
$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