Compare Two Properties
POSTAvailable
https://api.96astroapi.com/v1/vastu/vastu-compareTwo plans analysed side by side: each one's scores and defects, the winner per category with reasons, and the overall winner.
- Credits
- 3 credits
- Input
- Specific input
- Output
- JSON
- Delivery
- Direct response
- Languages
- 26 languages; translated term names with
labels
| Header | Value and description |
|---|---|
AuthorizationRequired | Bearer YOUR_API_KEYYour sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead. |
Content-TypeRequired | application/jsonThe body is JSON. |
Idempotency-KeyOptional | <unique string>Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters) |
| Field | Description |
|---|---|
aobjectRequired | |
a.boundaryarray of [number, number]Required | The property outline, in order round the shape. Limits: 3 to 500 items |
a.northobjectOptional | |
a.north.degreesnumberOptional | Bearing of north, clockwise from the top of the plan (smaller y): 0 = north is up, 90 = north is right. Default: Limits: minimum 0, less than 360 Example: |
a.north.referencestringOptional | What the reading is relative to. A magnetic reading with a site is corrected to true north. Default: Allowed values: magnetictrueunknown Example: |
a.north.declination_degreesnumber | nullOptional | Magnetic declination, east positive. Default: Limits: minimum -90, maximum 90 |
a.north.uncertainty_degreesnumber | nullOptional | How far the reading may be off. Default: Limits: minimum 0, maximum 45 |
a.north.measured_onstring | nullOptional | Day the reading was taken (for the declination model). Default: Limits: format date |
a.north.siteobject | nullOptional | Where the property is; used to look up the declination. Default: |
a.north.site.latitudenumberRequired | Limits: minimum -90, maximum 90 |
a.north.site.longitudenumberRequired | Limits: minimum -180, maximum 180 |
a.unitsstring | nullOptional | The unit the coordinates are in, if they are real lengths. Default: Allowed values: mcmmmftinyd Example: |
a.scaleobject | nullOptional | For a drawing in pixels: a length on the plan and its real length. Default: |
a.scale.plan_lengthnumberRequired | A length measured on the plan, in plan coordinates. Limits: greater than 0, maximum 2000000 |
a.scale.real_lengthnumberRequired | What that length is in reality. Limits: greater than 0, maximum 100000 |
a.scale.unitstringRequired | Allowed values: mcmmmftinyd |
a.centre[number, number] | nullOptional | The plan's centre (Brahmasthan); defaults to the centre of the outline's bounding box. Default: Limits: exactly 2 items |
a.roomsarray of objectsOptional | Limits: at most 80 items |
a.rooms[].namestringRequired | Limits: 1 to 120 characters Example: |
a.rooms[].typestring | nullOptional | Room use; omitted = untyped (reported, not scored). Default: Allowed values: 32 valueskitchenmaster_bedroomchildren_bedroomguest_bedroompoojatoiletbathroomstudyliving_roomdiningstore_roomstairsmain_entrancewater_tank_undergroundwater_tank_overheadswimming_poolseptic_tankborewellgaragebalconycorridorcash_counterowner_seatreceptionmachinerygodown_storageraw_materialfinished_goodsstaffpantryshowroomfurnace_boilerExample: |
a.rooms[].polygonarray of [number, number]Required | Limits: 3 to 200 items |
a.rooms[].fixedbooleanOptional | Only read by the corrected layout: true keeps the room where it is drawn. Default: |
a.structuresarray of objectsOptional | Limits: at most 80 items |
a.structures[].namestringRequired | Limits: 1 to 120 characters |
a.structures[].typestringRequired | Allowed values: pillarstaircaseliftmachinekitchen_pitbeamwallstairsmain_entrancewater_tank_undergroundwater_tank_overheadseptic_tankborewell |
a.structures[].polygonarray of [number, number]Required | Limits: 3 to 200 items |
a.fixturesarray of objectsOptional | Limits: at most 50 items |
a.fixtures[].namestringOptional | Default: Limits: at most 120 characters |
a.fixtures[].typestringRequired | Allowed values: bedstovedesksafewc |
a.fixtures[].position[number, number]Required | Limits: exactly 2 items |
a.fixtures[].toward[number, number]Required | A second point in the direction the fixture faces (bed: where the head rests). Limits: exactly 2 items |
a.holesarray of objectsOptional | Open courtyards and cut-outs. Limits: at most 20 items |
a.holes[].namestringOptional | Default: Limits: at most 120 characters |
a.holes[].kindstringRequired | Allowed values: courtyardcutout |
a.holes[].polygonarray of [number, number]Required | Limits: 3 to 200 items |
a.ayadiobject | nullOptional | Ayadi options; Ayadi needs units or a scale. Default: |
a.ayadi.text_familystringOptional | The text family's rule: `perimeter` (the Mayamata perimeter method, five factors, the default) or `manasara` (opt-in: length, breadth and circumference each feed their own factors; needs length_m and breadth_m). An Utpala area family and a Tithi varga are not offered: their multipliers have not been verified against a source, and are not invented. Default: Allowed values: perimetermanasara |
a.ayadi.length_mnumber | nullOptional | Length in metres; needed by `manasara`. Default: Limits: greater than 0, maximum 5000 |
a.ayadi.breadth_mnumber | nullOptional | Breadth in metres; needed by `manasara`. Default: Limits: greater than 0, maximum 5000 |
a.ayadi.unitstringOptional | Default: Allowed values: kishku_hastakerala_kolcustom |
a.ayadi.custom_unit_metresnumber | nullOptional | Default: Limits: minimum 0.1, maximum 2 |
a.ayadi.owner_nakshatrastring | nullOptional | Owner's birth star; enables Tara-bala. Default: Allowed values: AshwiniBharaniKrittikaRohiniMrigashiraArdraPunarvasuPushyaAshleshaMaghaPurva PhalguniUttara PhalguniHastaChitraSwatiVishakhaAnuradhaJyeshthaMulaPurva AshadhaUttara AshadhaShravanaDhanishtaShatabhishaPurva BhadrapadaUttara BhadrapadaRevati |
bobjectRequired | |
b.boundaryarray of [number, number]Required | The property outline, in order round the shape. Limits: 3 to 500 items |
b.northobjectOptional | |
b.north.degreesnumberOptional | Bearing of north, clockwise from the top of the plan (smaller y): 0 = north is up, 90 = north is right. Default: Limits: minimum 0, less than 360 Example: |
b.north.referencestringOptional | What the reading is relative to. A magnetic reading with a site is corrected to true north. Default: Allowed values: magnetictrueunknown Example: |
b.north.declination_degreesnumber | nullOptional | Magnetic declination, east positive. Default: Limits: minimum -90, maximum 90 |
b.north.uncertainty_degreesnumber | nullOptional | How far the reading may be off. Default: Limits: minimum 0, maximum 45 |
b.north.measured_onstring | nullOptional | Day the reading was taken (for the declination model). Default: Limits: format date |
b.north.siteobject | nullOptional | Where the property is; used to look up the declination. Default: |
b.north.site.latitudenumberRequired | Limits: minimum -90, maximum 90 |
b.north.site.longitudenumberRequired | Limits: minimum -180, maximum 180 |
b.unitsstring | nullOptional | The unit the coordinates are in, if they are real lengths. Default: Allowed values: mcmmmftinyd Example: |
b.scaleobject | nullOptional | For a drawing in pixels: a length on the plan and its real length. Default: |
b.scale.plan_lengthnumberRequired | A length measured on the plan, in plan coordinates. Limits: greater than 0, maximum 2000000 |
b.scale.real_lengthnumberRequired | What that length is in reality. Limits: greater than 0, maximum 100000 |
b.scale.unitstringRequired | Allowed values: mcmmmftinyd |
b.centre[number, number] | nullOptional | The plan's centre (Brahmasthan); defaults to the centre of the outline's bounding box. Default: Limits: exactly 2 items |
b.roomsarray of objectsOptional | Limits: at most 80 items |
b.rooms[].namestringRequired | Limits: 1 to 120 characters Example: |
b.rooms[].typestring | nullOptional | Room use; omitted = untyped (reported, not scored). Default: Allowed values: 32 valueskitchenmaster_bedroomchildren_bedroomguest_bedroompoojatoiletbathroomstudyliving_roomdiningstore_roomstairsmain_entrancewater_tank_undergroundwater_tank_overheadswimming_poolseptic_tankborewellgaragebalconycorridorcash_counterowner_seatreceptionmachinerygodown_storageraw_materialfinished_goodsstaffpantryshowroomfurnace_boilerExample: |
b.rooms[].polygonarray of [number, number]Required | Limits: 3 to 200 items |
b.rooms[].fixedbooleanOptional | Only read by the corrected layout: true keeps the room where it is drawn. Default: |
b.structuresarray of objectsOptional | Limits: at most 80 items |
b.structures[].namestringRequired | Limits: 1 to 120 characters |
b.structures[].typestringRequired | Allowed values: pillarstaircaseliftmachinekitchen_pitbeamwallstairsmain_entrancewater_tank_undergroundwater_tank_overheadseptic_tankborewell |
b.structures[].polygonarray of [number, number]Required | Limits: 3 to 200 items |
b.fixturesarray of objectsOptional | Limits: at most 50 items |
b.fixtures[].namestringOptional | Default: Limits: at most 120 characters |
b.fixtures[].typestringRequired | Allowed values: bedstovedesksafewc |
b.fixtures[].position[number, number]Required | Limits: exactly 2 items |
b.fixtures[].toward[number, number]Required | A second point in the direction the fixture faces (bed: where the head rests). Limits: exactly 2 items |
b.holesarray of objectsOptional | Open courtyards and cut-outs. Limits: at most 20 items |
b.holes[].namestringOptional | Default: Limits: at most 120 characters |
b.holes[].kindstringRequired | Allowed values: courtyardcutout |
b.holes[].polygonarray of [number, number]Required | Limits: 3 to 200 items |
b.ayadiobject | nullOptional | Ayadi options; Ayadi needs units or a scale. Default: |
b.ayadi.text_familystringOptional | The text family's rule: `perimeter` (the Mayamata perimeter method, five factors, the default) or `manasara` (opt-in: length, breadth and circumference each feed their own factors; needs length_m and breadth_m). An Utpala area family and a Tithi varga are not offered: their multipliers have not been verified against a source, and are not invented. Default: Allowed values: perimetermanasara |
b.ayadi.length_mnumber | nullOptional | Length in metres; needed by `manasara`. Default: Limits: greater than 0, maximum 5000 |
b.ayadi.breadth_mnumber | nullOptional | Breadth in metres; needed by `manasara`. Default: Limits: greater than 0, maximum 5000 |
b.ayadi.unitstringOptional | Default: Allowed values: kishku_hastakerala_kolcustom |
b.ayadi.custom_unit_metresnumber | nullOptional | Default: Limits: minimum 0.1, maximum 2 |
b.ayadi.owner_nakshatrastring | nullOptional | Owner's birth star; enables Tara-bala. Default: Allowed values: AshwiniBharaniKrittikaRohiniMrigashiraArdraPunarvasuPushyaAshleshaMaghaPurva PhalguniUttara PhalguniHastaChitraSwatiVishakhaAnuradhaJyeshthaMulaPurva AshadhaUttara AshadhaShravanaDhanishtaShatabhishaPurva BhadrapadaUttara BhadrapadaRevati |
name_astringOptional | Default: Limits: 1 to 60 characters Example: |
name_bstringOptional | Default: Limits: 1 to 60 characters Example: |
labelsstringOptional | Optional. Adds `meta.labels`: translated display names for the identifiers in the answer. `data` is unchanged. Free. Any other code is refused with 422 unsupported_language. Allowed values: asbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur |
Response · fields in data
Measured from 3 real answers to different inputs: a required field was in every one.
name_a· stringname_b· stringa· objectb· objectoverall_winner· stringverdict· stringcategories· array of objectcategory_summary· objectprovisional· booleanscoring_method· object
Example request
curl -X POST https://api.96astroapi.com/v1/vastu/vastu-compare \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name_a": "Corner flat",
"name_b": "Garden flat",
"a": {
"units": "m",
"north": {
"degrees": 0,
"reference": "true"
},
"boundary": [
[
0,
0
],
[
12,
0
],
[
12,
9
],
[
0,
9
]
],
"rooms": [
{
"name": "Kitchen",
"type": "kitchen",
"polygon": [
[
9,
6
],
[
12,
6
],
[
12,
9
],
[
9,
9
]
]
},
{
"name": "Master bedroom",
"type": "master_bedroom",
"polygon": [
[
0,
5
],
[
4,
5
],
[
4,
9
],
[
0,
9
]
]
},
{
"name": "Pooja",
"type": "pooja",
"polygon": [
[
10,
0
],
[
12,
0
],
[
12,
2
],
[
10,
2
]
]
},
{
"name": "Entrance",
"type": "main_entrance",
"polygon": [
[
5,
0
],
[
7,
0
],
[
7,
1
],
[
5,
1
]
]
}
]
},
"b": {
"units": "m",
"north": {
"degrees": 180,
"reference": "true"
},
"boundary": [
[
0,
0
],
[
12,
0
],
[
12,
9
],
[
0,
9
]
],
"rooms": [
{
"name": "Kitchen",
"type": "kitchen",
"polygon": [
[
9,
6
],
[
12,
6
],
[
12,
9
],
[
9,
9
]
]
},
{
"name": "Master bedroom",
"type": "master_bedroom",
"polygon": [
[
0,
5
],
[
4,
5
],
[
4,
9
],
[
0,
9
]
]
},
{
"name": "Pooja",
"type": "pooja",
"polygon": [
[
10,
0
],
[
12,
0
],
[
12,
2
],
[
10,
2
]
]
},
{
"name": "Entrance",
"type": "main_entrance",
"polygon": [
[
5,
0
],
[
7,
0
],
[
7,
1
],
[
5,
1
]
]
}
]
}
}'Example response
{
"data": {
"name_a": "Corner flat",
"name_b": "Garden flat",
"a": {
"overall_score": 61,
"score_status": "assessed",
"coverage_pct": 61.1,
"defect_count": 2,
"severe_defect_count": 1,
"brahmasthan_score": 100,
"brahmasthan_openness_pct": 100,
"plot_shape": "rectangular"
},
"b": {
"overall_score": 42.7,
"score_status": "assessed",
"coverage_pct": 61.1,
"defect_count": 6,
"severe_defect_count": 4,
…Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items.
Error responses
- 400invalid_request
- 401invalid_key, expired_key
- 402payment_required
- 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
- 404not_found
- 409idempotency_conflict
- 413payload_too_large
- 422invalid_request, unsupported_language
- 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
- 500computation_failed
- 502unavailable
- 503unavailable, maintenance, temporarily_unavailable
- 504deadline_exceeded
Errors are never charged. What each status means and what to do: errors.

