SEARCH ASTROLOGY API DOCS

Home
Indian Astrology

Matching Astro Details/match_astro_details

This API provides astrological details for a male and a female. The response includes various details such as Varna, Vashya, Yoni, Gan, Nadi, SignLord, Naksahtra, Charan, Yog, Karan, Tithi, Yunja, Tatva, name alphabet, and paya for both male and female.

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

Request Data

ParamsData typeDescriptions

m_day required

m_month required

m_year required

m_hour required

m_min required

m_lat required

m_lon required

m_tzone required

f_day required

f_month required

f_year required

f_hour required

f_min required

f_lat required

f_lon required

f_tzone required

int

int

int

int

int

float

float

float

int

int

int

int

int

float

float

float

eg: 10

eg: 5

eg: 1990

eg: 11

eg: 55

eg: 19.2056

eg: 25.2056

eg: 5.5

eg: 10

eg: 5

eg: 1990

eg: 11

eg: 55

eg: 19.2056

eg: 25.2056

eg: 5.5

Response Data

{
	"male_astro_details": {
		"ascendant": "Libra",
		"Varna": "Kshatriya",
		"Vashya": "Chatuspad",
		"Yoni": "Ashwa",
		"Gan": "Dev",
		"Nadi": "Adi",
		"SignLord": "Mars",
		"sign": "Aries",
		"Naksahtra": "Ashwini",
		"NaksahtraLord": "Ketu",
		"Charan": 4,
		"Yog": "Sukarma",
		"Karan": "Vishti",
		"Tithi": "Krishna Dashami",
		"yunja": "Poorva",
		"tatva": "Fire",
		"name_alphabet": "La",
		"paya": "Gold"
	},
	"female_astro_details": {
		"ascendant": "Libra",
		"Varna": "Kshatriya",
		"Vashya": "Chatuspad",
		"Yoni": "Ashwa",
		"Gan": "Dev",
		"Nadi": "Adi",
		"SignLord": "Mars",
		"sign": "Aries",
		"Naksahtra": "Ashwini",
		"NaksahtraLord": "Ketu",
		"Charan": 4,
		"Yog": "Sukarma",
		"Karan": "Vishti",
		"Tithi": "Krishna Dashami",
		"yunja": "Poorva",
		"tatva": "Fire",
		"name_alphabet": "La",
		"paya": "Gold"
	}
}
POST
var api = 'match_astro_details';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
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',
    "Accept-Language": language 
},
    data:JSON.stringify(data)
});

request.then( function(resp){
    console.log(resp);
}, function(err){
    console.log(err);
});