/v1/vastu/analyzeVastu Analysis API
Vastu analysis of a space - per-zone readings, detected doshas + remedies, and a 0-100 alignment score. No birth chart required.
One of 1 endpoints in the Vastu engine.
Request
Call it from curl, Node.js or Python
curl -X POST 'https://api.astronode.dev/v1/vastu/analyze' \
-H 'Authorization: Bearer aie_test_REPLACE_WITH_YOUR_API_KEY' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"facing": "E",
"kind": "home",
"doorPosition": 4,
"zones": {
"NE": [
"pooja",
"open_space"
],
"SE": [
"kitchen"
],
"SW": [
"master_bedroom"
],
"NW": [
"bedroom",
"toilet"
],
"N": [
"living"
],
"E": [
"entrance"
]
}
}'const res = await fetch("https://api.astronode.dev/v1/vastu/analyze", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ASTRONODE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"facing": "E",
"kind": "home",
"doorPosition": 4,
"zones": {
"NE": [
"pooja",
"open_space"
],
"SE": [
"kitchen"
],
"SW": [
"master_bedroom"
],
"NW": [
"bedroom",
"toilet"
],
"N": [
"living"
],
"E": [
"entrance"
]
}
}),
});
if (!res.ok) throw new Error(`AstroNode ${res.status}: ${await res.text()}`);
const { data } = await res.json();
console.log(data);import os
import requests
res = requests.post(
"https://api.astronode.dev/v1/vastu/analyze",
headers={"Authorization": f"Bearer {os.environ['ASTRONODE_API_KEY']}"},
json={
"facing": "E",
"kind": "home",
"doorPosition": 4,
"zones": {
"NE": [
"pooja",
"open_space",
],
"SE": [
"kitchen",
],
"SW": [
"master_bedroom",
],
"NW": [
"bedroom",
"toilet",
],
"N": [
"living",
],
"E": [
"entrance",
],
},
},
timeout=30,
)
res.raise_for_status()
print(res.json()["data"])Free test key (aie_test_*): 1,000 requests / month.
Request schema
Fields POST /v1/vastu/analyze accepts
| Field | Type | Notes |
|---|---|---|
facingrequired | enum | N | NE | E | SE | S | SW | W | NW |
kindrequired | enum | home | apartment | plot | office | shop |
zones | object | default {} |
zones.N | enum[] | - |
zones.NE | enum[] | - |
zones.E | enum[] | - |
zones.SE | enum[] | - |
zones.S | enum[] | - |
zones.SW | enum[] | - |
zones.W | enum[] | - |
zones.NW | enum[] | - |
zones.center | enum[] | - |
doorPosition | integer | 1..8 |
From the OpenAPI 3.1 spec.
Response
What you get back
Returned inside the standard envelope (request_id, data, meta). This endpoint documents 200, 400, 401, 409, 429, 500.
Fields inside data
Inferred from a recorded response; fields can vary with input.
| Field | Type | Notes |
|---|---|---|
facing | string | e.g. |
kind | string | e.g. |
zones | object[] | - |
zones[].zone | string | e.g. |
zones[].element | string | e.g. |
zones[].devatas | string[] | - |
zones[].classicalUse | null | string | - |
zones[].placed | string[] | - |
zones[].status | string | e.g. |
zones[].note | string | e.g. |
summary | object[] | - |
summary[].zone | string | e.g. |
summary[].padaCount | integer | e.g. |
summary[].devatas | string[] | - |
summary[].element | string | e.g. |
summary[].isBrahmasthan | boolean | e.g. |
doshas | unknown[] | - |
remedies | unknown[] | - |
alignment | object | - |
alignment.score | integer | e.g. |
alignment.factors | object[] | - |
alignment.factors[].zone | string | e.g. |
alignment.factors[].status | string | e.g. |
alignment.factors[].reason | string | e.g. |
meta | object | - |
meta.tradition | string | e.g. |
meta.is_traditional | boolean | e.g. |
meta.disclaimer | string | e.g. |
meta.vastu_version | string | e.g. |
vastu_version | string | e.g. |
Example data for the request above (abridged)
Recorded from this call; long lists are shortened and the output abridged to 40 lines.
{
"facing": "E",
"kind": "home",
"zones": [
{
"zone": "N",
"element": "water",
"devatas": [
"Diti",
"Aditi",
"Bhujaga"
],
"classicalUse": null,
"placed": [
"living"
],
"status": "neutral",
"note": "No classical placement signal for what's here."
},
{
"zone": "NE",
"element": "water",
"devatas": [
"Agni",
"Āpa",
"Apavatsa"
],
"classicalUse": "Deva apartment / pooja",
"placed": [
"pooja",
"open_space"
],
"status": "aligned",
"note": "pooja in NE matches BS v.118."
},
{
"zone": "E",
"element": "air",
"devatas": [
"Parjanya",
…In practice
Using the Vastu Analysis API
Available on every plan, including Free. Plans and limits
Why products call it
- Real estate & interiors (Vastu) - Describe the space. Per-zone readings, detected doshas with their traditional remedies and sources, and a 0-100 alignment score with the factors behind it.
- Real estate & interiors (Vastu) - Show the result. Re-run with a changed layout to show the effect of moving a room.
Where it is explained and used
Questions
- Which plan includes the Vastu Analysis API?
- All plans, including Free.
- What does
POST /v1/vastu/analyzeneed in the request? - Required:
facingandkind. Optional:zonesanddoorPosition. - What does
POST /v1/vastu/analyzereturn? facing,kind,zones,summary,doshas,remedies,alignment,metaandvastu_version, insidedata.- What is the Vastu Analysis API used for?
- Products such as real estate & interiors (vastu). In the real estate & interiors (vastu) build, at the "Describe the space" stage: Per-zone readings, detected doshas with their traditional remedies and sources, and a 0-100 alignment score with the factors behind it.
Ready to call POST /v1/vastu/analyze?
Free tier covers 1,000 requests / month. Razorpay-billed, GST-compliant invoices when you upgrade.
Informational, not predictive. Not medical, legal, or financial advice.