Vastu Entrance (Door Pada) API
Which of the 32 padas a door falls on, the text's effect and verse, and the better stretches of wall
POST/v1/vastu/entrance
1 credit · Secret key (test or live) · getVastuEntrance
On grid 81 each wall has nine squares and its last is the corner, the first pada of the next side (verses 43-45). On grid 64 each wall has eight equal stretches. Obstructions opposite the door are judged against twice the house height (verse 76).
Request body
plotobject requiredwidth_mnumber requiredAlong the front, in metres.
> 0 · ≤ 100000
depth_mnumber requiredFrom the front to the back, in metres.
> 0 · ≤ 100000
facing_degnumber requiredThe compass bearing a person looks along when facing out through the front: 0 north, 90 east.
≥ 0 · ≤ 360
No other fields are accepted.
doorobject requiredwallstring requiredLeft and right as seen from outside, looking at the front.
one of
front,left,back,rightfrom_left_mnumber requiredThe door's centre, from the left end of that wall as seen from outside it.
≥ 0
width_mnumber> 0 · ≤ 100
No other fields are accepted.
gridintegerThe mandala: 81 squares (verse 42) or 64 (verse 55).
one of
81,64· default81langstringone of
en,hi· default"en"house_height_mnumberNeeded to judge obstructions (verse 76).
> 0 · ≤ 1000
obstructionsarray of objectWhat stands opposite the door.
at most 12 items
typestring requiredone of
road,tree,street_corner,well,pillar,gutterdistance_mnumber required≥ 0
No other fields are accepted.
No other fields are accepted.
Response
JSON { data, meta, warnings }, where data is:
gridinteger requiredone of
81,64plotobject requiredwidth_mnumber requireddepth_mnumber requiredfacing_degnumber requiredfrontstring requiredThe compass direction nearest to facing_deg: each side of the plot is named this way.
one of
north,east,south,westskew_degnumber requiredHow far facing_deg is from front, in degrees.
east_west_mnumber requirednorth_south_mnumber requiredarea_m2number required
doorobject requiredwallstring requiredcompassstring requiredfrom_left_mnumber requiredwidth_mnumber or null requiredOne of:
- number
- null
padainteger requiredClockwise from the north-east corner.
≥ 1 · ≤ 32
sidestring requiredone of
east,south,west,northordinal_on_sideinteger required≥ 1 · ≤ 8
devataobject requiredidstring requirednamestring required
also_known_asarray of string requiredverdictstring requiredone of
favourable,mixed,unfavourableeffectstring requiredspansarray of object requiredEach pada a wide door touches; empty when it stays in one.
padainteger requiredClockwise from the north-east corner.
≥ 1 · ≤ 32
sidestring requiredone of
east,south,west,northordinal_on_sideinteger required≥ 1 · ≤ 8
devataobject requiredFields
idstring requirednamestring required
also_known_asarray of string requiredverdictstring requiredone of
favourable,mixed,unfavourableeffectstring required
basisstring requiredone of
classical,conventionsourceobject or null requiredOne of:
- object
Fields
textstring requiredauthorstring requiredchapterinteger requiredversesstring requiredtranslationstring required
- null
- object
recommendedobject requiredon_this_wallarray of object requiredFields
wallstring requiredone of
front,left,back,rightcompassstring requiredfrom_left_mnumber requiredFrom the left end of this wall, seen from outside it.
to_left_mnumber requireddistance_mnumber or null requiredOne of:
- number
- null
devataobject requiredFields
idstring requirednamestring required
verdictstring requiredone of
favourable,mixed,unfavourableeffectstring required
on_other_wallsarray of object requiredFields
wallstring requiredone of
front,left,back,rightcompassstring requiredfrom_left_mnumber requiredFrom the left end of this wall, seen from outside it.
to_left_mnumber requireddistance_mnumber or null requiredOne of:
- number
- null
devataobject requiredFields
idstring requirednamestring required
verdictstring requiredone of
favourable,mixed,unfavourableeffectstring required
findingsarray of object requiredtopicstring requiredsubjectstring requiredverdictstring requiredone of
favourable,neutral,unfavourabletextstring requiredbasisstring requiredone of
classical,conventionsourceobject or null requiredOne of:
- object
Fields
textstring requiredauthorstring requiredchapterinteger requiredversesstring requiredtranslationstring required
- null
- object
disclaimerstring required
Errors: 400, 401, 403, 404, 422, 429, 500. See error codes.
Example request
curl -X POST 'https://api.astrologics.in/v1/vastu/entrance' \
-H 'Authorization: Bearer al_test_YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"plot":{"width_m":18,"depth_m":27,"facing_deg":90},"door":{"wall":"front","from_left_m":10,"width_m":1.2},"house_height_m":7,"obstructions":[{"type":"tree","distance_m":30}]}'
Node.js
const res = await fetch("https://api.astrologics.in/v1/vastu/entrance", {
method: "POST",
headers: { Authorization: "Bearer al_test_YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"plot": {
"width_m": 18,
"depth_m": 27,
"facing_deg": 90
},
"door": {
"wall": "front",
"from_left_m": 10,
"width_m": 1.2
},
"house_height_m": 7,
"obstructions": [
{
"type": "tree",
"distance_m": 30
}
]
}),
});
console.log(JSON.stringify(await res.json(), null, 2));Python
import json
import urllib.error
import urllib.request
body = {
"plot": {
"width_m": 18,
"depth_m": 27,
"facing_deg": 90,
},
"door": {
"wall": "front",
"from_left_m": 10,
"width_m": 1.2,
},
"house_height_m": 7,
"obstructions": [
{
"type": "tree",
"distance_m": 30,
},
],
}
req = urllib.request.Request(
"https://api.astrologics.in/v1/vastu/entrance",
method="POST",
headers={"Authorization": "Bearer al_test_YOUR_KEY", "Content-Type": "application/json"},
data=json.dumps(body).encode(),
)
try:
with urllib.request.urlopen(req) as res:
print(json.dumps(json.load(res), indent=2, ensure_ascii=False))
except urllib.error.HTTPError as err:
print(err.code, err.read().decode())PHP
<?php
$ch = curl_init('https://api.astrologics.in/v1/vastu/entrance');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer al_test_YOUR_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"plot":{"width_m":18,"depth_m":27,"facing_deg":90},"door":{"wall":"front","from_left_m":10,"width_m":1.2},"house_height_m":7,"obstructions":[{"type":"tree","distance_m":30}]}',
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch), PHP_EOL;Example response
200 OK · 4,972 characters
{
"data": {
"grid": 81,
"plot": {
"width_m": 18,
"depth_m": 27,
"facing_deg": 90,
"front": "east",
"skew_deg": 0,
"east_west_m": 27,
"north_south_m": 18,
"area_m2": 486
},
"door": {
"wall": "front",
"compass": "east",
"from_left_m": 10,
"width_m": 1.2
},
"pada": 5,
"side": "east",
"ordinal_on_side": 5,
"devata": {
"id": "surya",
"name": "Surya"
},
"also_known_as": [],
"verdict": "unfavourable",
"effect": "Increase of anger.",
"spans": [
{
"pada": 5,
"side": "east",
"ordinal_on_side": 5,
"devata": {
"id": "surya",
"name": "Surya"
},
"also_known_as": [],
"verdict": "unfavourable",
"effect": "Increase of anger."
},
{
"pada": 4,
"side": "east",
"ordinal_on_side": 4,
"devata": {
"id": "indra",
"name": "Indra"
},
"also_known_as": [
"Mahendra"
],
"verdict": "favourable",
"effect": "Friendship of the ruler."
}
],
"basis": "classical",
"source": {
"text": "Brihat Samhita",
"author": "Varahamihira",
"chapter": 53,
"verses": "43, 72, 71",
"translation": "N. Chidambaram Iyer, 1884"
},
"recommended": {
"on_this_wall": [
{
"wall": "front",
"compass": "east",
"from_left_m": 10,
"to_left_m": 12,
"distance_m": 0,
"devata": {
"id": "indra",
"name": "Indra"
},
"verdict": "favourable",
"effect": "Friendship of the ruler."
},
{
"wall": "front",
"compass": "east",
"from_left_m": 12,
"to_left_m": 14,
"distance_m": 2,
"devata": {
"id": "jayanta",
"name": "Jayanta"
},
"verdict": "favourable",
"effect": "Gain of great wealth."
},
{
"wall": "front",
"compass": "east",
"from_left_m": 14,
"to_left_m": 16,
"distance_m": 4,
"devata": {
"id": "parjanya",
"name": "Parjanya"
},
"verdict": "mixed",
"effect": "Birth of daughters."
}
],
"on_other_walls": [
{
"wall": "back",
"compass": "west",
"from_left_m": 10,
"to_left_m": 12,
"distance_m": null,
"devata": {
"id": "kusumadanta",
"name": "Kusumadanta"
},
"verdict": "favourable",
"effect": "More sons, wealth and strength."
},
{
"wall": "back",
"compass": "west",
"from_left_m": 8,
"to_left_m": 10,
"distance_m": null,
"devata": {
"id": "varuna",
"name": "Varuna"
},
"verdict": "favourable",
"effect": "Opulence."
},
{
"wall": "right",
"compass": "north",
"from_left_m": 18,
"to_left_m": 21,
"distance_m": null,
"devata": {
"id": "mukhya",
"name": "Mukhya"
},
"verdict": "favourable",
"effect": "Gain of wealth and sons."
},
{
"wall": "right",
"compass": "north",
"from_left_m": 15,
"to_left_m": 18,
"distance_m": null,
"devata": {
"id": "bhallata",
"name": "Bhallata"
},
"verdict": "favourable",
"effect": "Possession of all virtues."
},
{
"wall": "right",
"compass": "north",
"from_left_m": 12,
"to_left_m": 15,
"distance_m": null,
"devata": {
"id": "soma",
"name": "Soma"
},
"verdict": "favourable",
"effect": "Gain of sons and wealth."
}
]
},
"findings": [
{
"topic": "obstruction",
"subject": "tree",
"verdict": "neutral",
"text": "A tree faces the door, beyond twice the house height (14 m); the text says no harm follows.",
"basis": "classical",
"source": {
"text": "Brihat Samhita",
"author": "Varahamihira",
"chapter": 53,
"verses": "76",
"translation": "N. Chidambaram Iyer, 1884"
}
}
],
"disclaimer": "Traditional statements from the cited text, reported as the text gives them. They are not predictions or professional building advice."
},
"meta": {
"request_id": "req_example",
"api_version": "v1",
"engine_version": "2026.10.10",
"mode": "live",
"credits_charged": 1
},
"warnings": []
}Try it
More in Vastu
- Vastu Pada and Devata Reference API: The 32 padas with their door effects and verses, the 45 devatas, the room rules and the score's weights
- Vastu Purusha Mandala API: The Vastu Purusha Mandala over a real plot: every square in metres, the brahmasthan, the vamsa lines and the atimarma points
- Vastu Mandala SVG API: The mandala drawn as SVG, north up, in English or Hindi, with the door marked
- Vastu Ayadi Calculation API: The Ayadi formulas on a building's measures: every working shown, the yoni judged, and nearby measures that pass
- Vastu Plot Analysis API: Findings on a plot: proportion, shape, slope, water, cut corners, extensions and roads, each classical or convention
- Vastu Room Analysis API: A verdict for each room by zone, what to prefer, and a score with published weights