Vastu
AvailableCompare Two Properties API
Two plans analysed side by side: each one's scores and defects, the winner per category with reasons, and the overall winner.
- POST /v1/vastu/vastu-compare
- 3 credits
curl https://api.96astroapi.com/v1/vastu/vastu-compare \ -H "Authorization: Bearer $ASTRO_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 ] ] } ] } }'
Overview
Two plans analysed side by side: each one's scores and defects, the winner per category with reasons, and the overall winner.
Call it with POST /v1/vastu/vastu-compare. Input: specific input. Output: JSON, as a direct response. Each successful call costs 3 credits.
- POST /v1/vastu/vastu-compare
- 3 credits
- Specific input
Try it
Response
Ready when you are
Press Run it to see the live response here.
Example response
Fields in dataMeasured from 3 real answers to different inputs: a required field was in every one.
name_astringname_bstringaobjectbobjectoverall_winnerstringverdictstringcategoriesarray of objectcategory_summaryobjectprovisionalbooleanscoring_methodobject
200Example response
Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.
Loading the example…
Request schema and every field: the Vastu reference.
Related endpoints
01What does the Compare Two Properties API return?
Two plans analysed side by side: each one's scores and defects, the winner per category with reasons, and the overall winner. The response's data object includes name_a, name_b, a, b, overall_winner, verdict, categories and category_summary. See the reference for an example response.
02What input does Compare Two Properties need?
Specific input.
03How much does a Compare Two Properties call cost?
3 credits per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.
04Can I try it before paying?
Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.


