SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Match Making/custom_match_profiles

Match custom profile with primary profile

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

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

{
  "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
    }
  ]
}
POST
var api = 'custom_match_profiles';
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);
});