/api/astro/saptashalaka_vedha/1 creditSaptashalaka vedha lookup
A single-nakshatra lookup into the Saptashalaka chakra. Given a nakshatra it returns the three others that pierce it: `front`, the one directly opposite on the diagram, and `diagonal_right` and `diagonal_left`, the two reached across the corners. In muhurta practice a malefic in any of the three afflicts a moment falling in your nakshatra. Pass `nakshatra` as a query parameter using the spellings the chakra endpoint returns; Abhijit is included. The optional `type` parameter takes a comma-separated subset of `front`, `diagonal_right` and `diagonal_left` — omit it to get all three. The response is `{nakshatra, vedha}`, where `vedha` holds only the types you asked for. An unrecognised nakshatra is rejected with a 400. The relationships never change, so for more than a few lookups fetch the full map once from `/api/astro/saptashalaka_chakra/`.
https://yogataraapi.prahlad.app/api/astro/saptashalaka_vedha/Authentication
Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.
X-API-Key: yt_live_a1b2c3d4_…Query parameters (2)
Passed in the URL. All optional unless marked, and they combine — filter, then page, then sort.
| Parameter | Type | Example | What it does | |
|---|---|---|---|---|
| nakshatra | string | required | Abhijit | Name of the nakshatra to look up vedha relationships for.one of: Abhijit, Anuradha, Ardra, Ashlesha, Ashwini, Bharani, Chitra, Dhanishtha, Hasta, Jyeshtha, Krittika, Magha, Moola, Mrigashira, Punarvasu, Purva Ashadha, Purva Bhadrapada, Purva Phalguni, Pushya, Revati, Rohini, Shatabhisha, Shravana, Swati, Uttara Ashadha, Uttara Bhadrapada, Uttara Phalguni, Vishakha |
| type | string | diagonal_left | Comma-separated vedha types to return. Omit for all three.one of: diagonal_left, diagonal_right, front |
Example request
curl "https://yogataraapi.prahlad.app/api/astro/saptashalaka_vedha/?nakshatra=Abhijit" \
-H "X-API-Key: $OCCULT_API_KEY"Response
{
"nakshatra": "Abhijit",
"vedha": {
"front": "Rohini",
"diagonal_right": "Purva Phalguni",
"diagonal_left": "Shatabhisha"
}
}Captured from a real call using the exact request above. Results sit under data.
Errors
Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.