This API is the soul_urge_number which takes in a person's name and birth date and returns their soul urge number and a report describing their personality traits associated with that number.
Guide:These languages are supported by this API. You can use them by passing Accept-Language header with a value of the language code.
Params | Data type | Descriptions |
date required month required year required full_name required | int int int string | date of birth, eg: 10 month of birth, eg: 5 year of birth, eg: 1990 name, eg: 'demo' |
{
"name": "Ajeet kanojia",
"birth_date": "2011-5-15",
"soul_urge_number": 1,
"report": [
"The Soul Urge number 1 gives you clarity of purpose and thought. It makes you proactive and a leader in true sense. You are independent and believe in taking a lead. You are your own guide and most often rely on self for guidance. You believe in oneself and in your capabilities and do not shy from taking initiatives or taking the plunge. You are a self-starter and do not wait for a push or backing from others. Being determined and focused, you can easily take up any daunting task and execute it successfully. Honest attempts at what you do, cannot keep success away from you. You take pride in your work and expect others to respect and recognize what you do. Loyalty is one of your strongest traits."
]
}
var api = 'soul_urge_number';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var language = '<Your Language>' // By default it is set to en
var data = {
date: 6,
month:1,
year:2000,
full_name:"Kevin"
};
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);
});