Перейти до вмісту
AstroWay/api v2.283.3 · docs
усі системи в нормі

The eight directions

POST
/vastu/directions
request.sh
curl -X POST https://api.astroway.info/v1/vastu/directions \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json" \
-d '{}'

Guardian deity, planet, element, the classical use, the result of a water body and of higher ground for each of the eight directions, each with its source. Elements have no verse and are marked as modern.

fields
string

Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.

Example
planets.name,planets.longitude
precision
integer
<= 15

Round every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.

Example
4
Media type application/json
object
Example
{}

Successful calculation

Media type application/json
object
ok
boolean
data
object
directions
Array<object>
nullable
object
direction
string
nullable
degrees
string
nullable
dikpala
string
nullable
planet
string
nullable
element
string
nullable
water
object
effect
string
nullable
verdict
string
nullable
source
string
nullable
classicalUse
string
nullable
higherGround
nullable
elementBasis
string
nullable
classicalUseSource
string
nullable
higherGroundSource
nullable
order
Array<string>
nullable
notes
Array<string>
nullable
Example
{
"ok": true,
"data": {
"directions": [
{
"direction": "NE",
"degrees": "22.5-67.5",
"dikpala": "Īśāna",
"planet": "Jupiter",
"element": "water",
"water": {
"effect": "Sons.",
"verdict": "auspicious",
"source": "Brihat Samhita, tr. N. Chidambaram Iyer (1884) 53.119"
},
"classicalUse": "Shrine room.",
"higherGround": null,
"elementBasis": "convention",
"classicalUseSource": "Brihat Samhita, tr. N. Chidambaram Iyer (1884) 53.118",
"higherGroundSource": null
}
],
"order": [
"N",
"NE",
"E",
"SE",
"S",
"SW",
"W",
"NW"
],
"notes": [
"Dikpalas follow the Amarakosa; planets follow Brhajjataka 2.5, which gives the eight from the east: Sun, Venus, Mars, Rahu, Saturn, Moon, Mercury, Jupiter."
]
}
}

Validation error

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}