Get Western Chart Data
Method | Full Url |
---|---|
POST | https://json.apireports.com/v1/western_chart_data |
Key Name : house_type
Data Type : string
Default Value : placidus
Values:
Key Name : node_type
Data Type : string
Default Value : true
Values
Key Name : aspects
Data Type : string
Default Value : major
Values
'all' : All the aspects given
'major' : Only major aspects given
'none' : No aspects given
Key Name : aspect_orb
Data Type : Integer
Default Value : 2
You can send the orb range from 1-12.
{
"status_code": 200,
"status": true,
"data": {
"houses": [
{
"house": 1,
"start_deg": 254.3720589,
"end_deg": 286.0644123,
"sign": {
"id": 9,
"name": "Sagittarius",
"symbol": "♐"
},
"planets": []
},
{
"house": 2,
"start_deg": 286.0644123,
"end_deg": 321.0299964,
"sign": {
"id": 10,
"name": "Capricorn",
"symbol": "♑"
},
"planets": [
{
"planet_id": 2,
"planet_name": "Moon",
"planet_symbol": "☽",
"full_deg": 297.9334351,
"speed": 13.402284,
"is_retro": false,
"sign": {
"id": 10,
"name": "Capricorn",
"symbol": "♑"
}
},
{
"planet_id": 8,
"planet_name": "Uranus",
"planet_symbol": "♅",
"full_deg": 292.5045042,
"speed": -0.0136581,
"is_retro": true,
"sign": {
"id": 10,
"name": "Capricorn",
"symbol": "♑"
}
},
{
"planet_id": 9,
"planet_name": "Neptune",
"planet_symbol": "♆",
"full_deg": 290.6558306,
"speed": -0.0092576,
"is_retro": true,
"sign": {
"id": 10,
"name": "Capricorn",
"symbol": "♑"
}
}
]
},
{
"house": 3,
"start_deg": 321.0299964,
"end_deg": 355.7713767,
"sign": {
"id": 11,
"name": "Aquarius",
"symbol": "♒"
},
"planets": [
{
"planet_id": 7,
"planet_name": "Saturn",
"planet_symbol": "♄",
"full_deg": 337.9901419,
"speed": -0.0725479,
"is_retro": true,
"sign": {
"id": 12,
"name": "Pisces",
"symbol": "♓"
}
}
]
},
{
"house": 4,
"start_deg": 355.7713767,
"end_deg": 26.1609343,
"sign": {
"id": 12,
"name": "Pisces",
"symbol": "♓"
},
"planets": [
{
"planet_id": 14,
"planet_name": "Part of Fortune",
"planet_symbol": "⊗",
"full_deg": 20.088011199999983,
"speed": 0,
"is_retro": false,
"sign": {
"id": 1,
"name": "Aries",
"symbol": "♈︎"
}
}
]
},
{
"house": 5,
"start_deg": 26.1609343,
"end_deg": 51.6611001,
"sign": {
"id": 1,
"name": "Aries",
"symbol": "♈︎"
},
"planets": []
},
{
"house": 6,
"start_deg": 51.6611001,
"end_deg": 74.3720589,
"sign": {
"id": 2,
"name": "Taurus",
"symbol": "♉︎"
},
"planets": []
},
{
"house": 7,
"start_deg": 74.3720589,
"end_deg": 106.0644123,
"sign": {
"id": 3,
"name": "Gemini",
"symbol": "♊︎"
},
"planets": []
},
{
"house": 8,
"start_deg": 106.0644123,
"end_deg": 141.0299964,
"sign": {
"id": 4,
"name": "Cancer",
"symbol": "♋︎"
},
"planets": [
{
"planet_id": 5,
"planet_name": "Mars",
"planet_symbol": "♂",
"full_deg": 108.6338098,
"speed": 0.6064057,
"is_retro": false,
"sign": {
"id": 4,
"name": "Cancer",
"symbol": "♋︎"
}
}
]
},
{
"house": 9,
"start_deg": 141.0299964,
"end_deg": 175.7713767,
"sign": {
"id": 5,
"name": "Leo",
"symbol": "♌︎"
},
"planets": [
{
"planet_id": 1,
"planet_name": "Sun",
"planet_symbol": "☉",
"full_deg": 172.2174828,
"speed": 0.9742975,
"is_retro": false,
"sign": {
"id": 6,
"name": "Virgo",
"symbol": "♍︎"
}
},
{
"planet_id": 11,
"planet_name": "Chiron",
"planet_symbol": "⚷",
"full_deg": 165.8014808,
"speed": 0.14131,
"is_retro": false,
"sign": {
"id": 6,
"name": "Virgo",
"symbol": "♍︎"
}
}
]
},
{
"house": 10,
"start_deg": 175.7713767,
"end_deg": 206.1609343,
"sign": {
"id": 6,
"name": "Virgo",
"symbol": "♍︎"
},
"planets": [
{
"planet_id": 3,
"planet_name": "Mercury",
"planet_symbol": "☿",
"full_deg": 196.0482795,
"speed": 1.3272426,
"is_retro": false,
"sign": {
"id": 7,
"name": "Libra",
"symbol": "♎"
}
}
]
},
{
"house": 11,
"start_deg": 206.1609343,
"end_deg": 231.6611001,
"sign": {
"id": 7,
"name": "Libra",
"symbol": "♎"
},
"planets": [
{
"planet_id": 4,
"planet_name": "Venus",
"planet_symbol": "♀",
"full_deg": 216.0065431,
"speed": 0.7407717,
"is_retro": false,
"sign": {
"id": 8,
"name": "Scorpio",
"symbol": "♏"
}
},
{
"planet_id": 6,
"planet_name": "Jupiter",
"planet_symbol": "♃",
"full_deg": 222.1527278,
"speed": 0.1754518,
"is_retro": false,
"sign": {
"id": 8,
"name": "Scorpio",
"symbol": "♏"
}
},
{
"planet_id": 20,
"planet_name": "True Node",
"planet_symbol": "☊",
"full_deg": 226.4002808,
"speed": -0.095774,
"is_retro": true,
"sign": {
"id": 8,
"name": "Scorpio",
"symbol": "♏"
}
}
]
},
{
"house": 12,
"start_deg": 231.6611001,
"end_deg": 254.3720589,
"sign": {
"id": 8,
"name": "Scorpio",
"symbol": "♏"
},
"planets": [
{
"planet_id": 10,
"planet_name": "Pluto",
"planet_symbol": "♇",
"full_deg": 235.7353489,
"speed": 0.0220802,
"is_retro": false,
"sign": {
"id": 8,
"name": "Scorpio",
"symbol": "♏"
}
}
]
}
],
"aspects": [
{
"aspecting_planet_id": 1,
"aspected_planet_id": 8,
"aspecting_planet_name": "Sun",
"aspected_planet_name": "Uranus",
"aspect_type_id": 4,
"aspect_type": "Trine",
"orb": 0.29,
"diff": 120.28702139999999
},
{
"aspecting_planet_id": 1,
"aspected_planet_id": 9,
"aspecting_planet_name": "Sun",
"aspected_planet_name": "Neptune",
"aspect_type_id": 4,
"aspect_type": "Trine",
"orb": 1.56,
"diff": 118.4383478
},
{
"aspecting_planet_id": 3,
"aspected_planet_id": 15,
"aspecting_planet_name": "Mercury",
"aspected_planet_name": "Ascendant",
"aspect_type_id": 5,
"aspect_type": "Sextile",
"orb": 1.68,
"diff": 58.32377940000001
},
{
"aspecting_planet_id": 4,
"aspected_planet_id": 7,
"aspecting_planet_name": "Venus",
"aspected_planet_name": "Saturn",
"aspect_type_id": 4,
"aspect_type": "Trine",
"orb": 1.98,
"diff": 121.98359880000004
},
{
"aspecting_planet_id": 5,
"aspected_planet_id": 13,
"aspecting_planet_name": "Mars",
"aspected_planet_name": "Lilith",
"aspect_type_id": 5,
"aspect_type": "Sextile",
"orb": 0.76,
"diff": 60.756076199999995
},
{
"aspecting_planet_id": 5,
"aspected_planet_id": 14,
"aspecting_planet_name": "Mars",
"aspected_planet_name": "Part of Fortune",
"aspect_type_id": 3,
"aspect_type": "Square",
"orb": 1.45,
"diff": 88.54579860000001
},
{
"aspecting_planet_id": 8,
"aspected_planet_id": 9,
"aspecting_planet_name": "Uranus",
"aspected_planet_name": "Neptune",
"aspect_type_id": 1,
"aspect_type": "Conjunction",
"orb": 1.85,
"diff": 1.8486735999999837
},
{
"aspecting_planet_id": 9,
"aspected_planet_id": 14,
"aspecting_planet_name": "Neptune",
"aspected_planet_name": "Part of Fortune",
"aspect_type_id": 3,
"aspect_type": "Square",
"orb": 0.57,
"diff": 89.43218059999998
},
{
"aspecting_planet_id": 10,
"aspected_planet_id": 16,
"aspecting_planet_name": "Pluto",
"aspected_planet_name": "Descendant",
"aspect_type_id": 5,
"aspect_type": "Sextile",
"orb": 0.04,
"diff": 59.9639722
},
{
"aspecting_planet_id": 11,
"aspected_planet_id": 20,
"aspecting_planet_name": "Chiron",
"aspected_planet_name": "True Node",
"aspect_type_id": 5,
"aspect_type": "Sextile",
"orb": 0.6,
"diff": 60.59879999999998
},
{
"aspecting_planet_id": 11,
"aspected_planet_id": 15,
"aspecting_planet_name": "Chiron",
"aspected_planet_name": "Ascendant",
"aspect_type_id": 3,
"aspect_type": "Square",
"orb": 1.43,
"diff": 88.5705781
},
{
"aspecting_planet_id": 20,
"aspected_planet_id": 13,
"aspecting_planet_name": "True Node",
"aspected_planet_name": "Lilith",
"aspect_type_id": 2,
"aspect_type": "Opposition",
"orb": 1.48,
"diff": 178.5225472
}
]
}
}
Params | Data Type | Description | Example |
---|---|---|---|
day | int | Date of Birth | 15 |
month | int | Month of Birth | 9 |
year | int | Year of Birth | 1994 |
hour | int | Hour of Birth | 12 |
min | int | Min of Birth | 30 |
lat | float | Latitude of Birth Place | 28.6139 |
lon | float | Longitude of Birth Place | 77.1025 |
tzone | float | Timezone of Birth Place | 5.5 |
# cURL Request Example
curl --location --request POST 'https://json.apireports.com/v1/western_chart_data' \
-u '{YourUserID}:{YourApiKey}'\
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data-raw '{
"day": 15,
"month": 9,
"year": 1994,
"hour": 12,
"min": 30,
"lat": 28.61390000000000100044417195022106170654296875,
"lon": 77.1025000000000062527760746888816356658935546875,
"tzone": 5.5
}'
# END
/* JavaScript Request Example */
var apiEndPoint = "western_chart_data";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var language = "en";
var data = {
"day": 15,
"month": 9,
"year": 1994,
"hour": 12,
"min": 30,
"lat": 28.61390000000000100044417195022106170654296875,
"lon": 77.1025000000000062527760746888816356658935546875,
"tzone": 5.5
};
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var request = $.ajax({
url: url,
method: "POST",
dataType:'json',
headers: {
"Authorization": "Basic " + btoa(userId+":"+apiKey),
"Accept-Language": "en",
"Content-Type":'application/json'
},
data:JSON.stringify(data)
});
request.then(
function(resp){
console.log(resp);
},
function(err){
console.log(err);
}
);
/* END */
<?php
/* PHP Request Example */
$apiEndPoint = "western_chart_data";
$userId = "{YourUserID}";
$apiKey = "{YourApiKey}";
$url = "https://json.apireports.com/v1/";
$data = array(
"day" => 15,
"month" => 9,
"year" => 1994,
"hour" => 12,
"min" => 30,
"lat" => 28.6139,
"lon" => 77.1025,
"tzone" => 5.5
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url.$apiEndPoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
$header[] = 'Authorization: Basic '. base64_encode($userId.":".$apiKey);
$header[] = 'Accept-Language: en';
$header[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
$error = curl_error($ch);
$http_code = curl_getinfo($ch ,CURLINFO_HTTP_CODE);
curl_close($ch);
echo $response;
/* END */
# Python Request Example
import requests
import json
apiEndPoint = "western_chart_data";
userId = "{YourUserID}";
apiKey = "{YourApiKey}";
url = "https://json.apireports.com/v1/"+apiEndPoint
data = json.dumps({
"day": 15,
"month": 9,
"year": 1994,
"hour": 12,
"min": 30,
"lat": 28.61390000000000100044417195022106170654296875,
"lon": 77.1025000000000062527760746888816356658935546875,
"tzone": 5.5
})
headers = {
'Accept-Language': 'en',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, auth=(userId, apiKey),data=data)
print(response.text)
# END
/* NodeJS Request Example */
var request = require('request');
var apiEndPoint = "western_chart_data";
var userId = "{YourUserID}";
var apiKey = "{YourApiKey}";
var url = 'https://json.apireports.com/v1/'+apiEndPoint;
var options = {
'method': 'POST',
'url': url,
'auth': {
'user': userId,
'password': apiKey
},
'headers': {
'Accept-Language': 'en',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"day": 15,
"month": 9,
"year": 1994,
"hour": 12,
"min": 30,
"lat": 28.61390000000000100044417195022106170654296875,
"lon": 77.1025000000000062527760746888816356658935546875,
"tzone": 5.5
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
/* END */