The moon_biorhythm API provides information about an individual's birth pakshi and its details, along with the recommended activities to perform during the day and night based on the moon's position.
Params | Data type | Descriptions |
day required month required year required hour required min required lat required lon required tzone required | int int int int int float float float | date of birth, eg: 10 month of birth, eg: 5 year of birth, eg: 1990 hour, eg: 19 minute, eg: 55 latitude, eg: 19.2056 longitude, eg: 25.2056 timezone, eg: 5.5 |
{
"birth_pakshi": "Owl",
"birth_pakshi_details": {
"name_letter": [
"E",
"EE"
],
"death_day": [
"Sunday",
"Friday"
],
"day_ruling_days": [
"Monday",
"Wednesday"
],
"night_ruling_days": [
"Saturday"
],
"color": "White",
"direction": "South",
"enemy": [
"Peacock",
"Cock"
],
"friend": [
"Vulture",
"Crow"
]
},
"requested_day": "Sunday",
"activity_cycle": {
"day": [
{
"start_time": "07:00:59",
"end_time": "09:13:08",
"start_hours": 7.0167,
"end_hours": 9.2189,
"activity": "Walk"
},
{
"start_time": "09:13:08",
"end_time": "11:25:16",
"start_hours": 9.2189,
"end_hours": 11.4212,
"activity": "Rule"
},
{
"start_time": "11:25:16",
"end_time": "13:37:24",
"start_hours": 11.4212,
"end_hours": 13.6235,
"activity": "Sleep"
},
{
"start_time": "13:37:24",
"end_time": "15:49:32",
"start_hours": 13.6235,
"end_hours": 15.8258,
"activity": "Die"
},
{
"start_time": "15:49:32",
"end_time": "18:01:40",
"start_hours": 15.8258,
"end_hours": 18.0281,
"activity": "Eat"
}
],
"night": [
{
"start_time": "18:01:40",
"end_time": "20:13:41",
"start_hours": 18.0281,
"end_hours": 20.2283,
"activity": "Rule"
},
{
"start_time": "20:13:41",
"end_time": "22:25:42",
"start_hours": 20.2283,
"end_hours": 22.4286,
"activity": "Die"
},
{
"start_time": "22:25:42",
"end_time": "00:37:43",
"start_hours": 22.4286,
"end_hours": 24.6289,
"activity": "Walk"
},
{
"start_time": "00:37:43",
"end_time": "02:49:44",
"start_hours": 24.6289,
"end_hours": 26.8292,
"activity": "Sleep"
},
{
"start_time": "02:49:44",
"end_time": "05:01:45",
"start_hours": 26.8292,
"end_hours": 29.0294,
"activity": "Eat"
}
]
}
}
var api = 'moon_biorhythm';
var userId = '<Your User Id>';
var apiKey = '<Your Api Key>';
var data = {
day: 6,
month: 1,
year: 2000,
hour: 7,
min: 45,
lat: 19.132,
lon: 72.342,
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);
});