General Reports/moon_biorhythm
Get panchapakshi(moon biorhythm) details
API Endpoint
moon_biorhythm
Method & URL
Method | Full URL |
---|---|
POST | https://json.astrologyapi.com/v1/moon_biorhythm |
Response Data
{
"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"
}
]
}
}
Params | Data type | Descriptions |
day month year hour min lat lon tzone |
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 |
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