LifeAstroAPILifeAstroAPI

API Reference / Vedic Astrology / Transit & Gochara

GET
10 credits

/v1/transit/tarabala

Tarabala score for a transit.

What this tells you

Tarabala ("star strength") compares the nakshatra of the transiting Moon with the natal Janma Nakshatra. Counting from the birth nakshatra to the transit nakshatra and taking the remainder by 9 gives one of nine taras, each favourable or unfavourable. Used for day-to-day muhurta: "is the Moon's nakshatra at this moment good for me?"

`birth.date`, `birth.tz`, `date` and `tz` are all required; a missing `date` returns 400. The response has no favourable flag or remedy text: use the sign of `score`.

Request

All requests require an Authorization header with your dv_live_* API key.

example request
curl "https://api.lifeastroapi.com/v1/transit/tarabala?birth.date=1990-01-15&birth.tz=Asia%2FKolkata&date=2027-01-15&tz=Asia%2FKolkata&time=06%3A00&birth.time=10%3A30" \
  -H "Authorization: Bearer YOUR_API_KEY"

Query parameters

Checked against the API: a parameter is marked required when the request fails without it.

NameRequiredExampleDescription
birth.dateyes1990-01-15Birth date (YYYY-MM-DD).
birth.tzyesAsia/KolkataBirth place timezone: IANA name (Asia/Kolkata) or UTC offset (+05:30).
dateyes2027-01-15Date of the moment to check, e.g. the transit date (YYYY-MM-DD).
tzyesAsia/KolkataTimezone: IANA name (Asia/Kolkata) or UTC offset (+05:30).
timeno06:00Local time of the moment to check (HH:MM, 24-hour). Defaults to 12:00.
birth.timeno10:30Birth time (HH:MM, 24-hour, local). Defaults to 12:00.
ayanamsano—Ayanamsa (sidereal offset) to use. Defaults to lahiri.

Response (200 OK)

The real response to the example request above, generated from the API itself. Long arrays are trimmed to their first two items. Field names are stable across versions.

200 response
{
  "at_jd": 2461420.520833,
  "tarabala": {
    "score": 0.14,
    "name": "Mitra",
    "transit_nakshatra": "Revati",
    "birth_nakshatra": "Purva Phalguni",
    "position": 16,
    "cycle_position": 7
  }
}

Field reference

Every field in the response, with its type, a real example, and what it means.

FieldTypeMeaning
at_jdnumber
Julian Day (UT) of the transit moment (date, time, tz).
example: 2461420.520833
tarabala.scorenumber
Weight of the current tara. Positive is favourable, negative is unfavourable. Janma −0.10, Sampat +0.15, Vipat −0.15, Kshema +0.12, Pratyak −0.08, Sadhana +0.10, Naidhana −0.18, Mitra +0.14, Ati-Mitra +0.18.
example: 0.14
tarabala.namestring
Tara name, one of: Janma, Sampat, Vipat, Kshema, Pratyak, Sadhana, Naidhana, Mitra, Ati-Mitra.
example: "Mitra"
Jyotish: Sampat, Kshema, Sadhana, Mitra and Ati-Mitra are favourable. Janma, Vipat, Pratyak and Naidhana are unfavourable; Naidhana (7th) is the worst.
tarabala.transit_nakshatrastring
Nakshatra of the transiting Moon at the transit moment. Always English.
example: "Revati"
tarabala.birth_nakshatrastring
Janma Nakshatra: the natal Moon's nakshatra. Always English.
example: "Purva Phalguni"
tarabala.positioninteger (0–26)
Steps from the birth nakshatra to the transit nakshatra, counted forward, 0-based (0 = same nakshatra). The classical inclusive count is position + 1.
example: 16
tarabala.cycle_positioninteger (0–8)
position mod 9. 0 = Janma, 1 = Sampat … 8 = Ati-Mitra. This value picks `name` and `score`.
example: 7

Usage tips

How to use it

  • Daily widget
    Call once per day per user for the time you care about (for example sunrise or the planned event time). The Moon changes nakshatra about once a day. Show a soft caution when `score` is negative.
  • Inputs
    The natal Moon comes from birth.date, birth.time and birth.tz. The transit moment comes from date, time and tz. Both time values default to 12:00 when omitted. Location is not used; both Moons are geocentric.

Errors

Every error follows the same envelope. Use the error.code field (not the message) for conditional logic in your integration.

401 Unauthorized

{
  "error": {
    "code": "unauthorized",
    "message": "missing or invalid API key",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

402 Payment Required

{
  "error": {
    "code": "trial_exhausted",
    "message": "your free trial credits are exhausted — pick a plan to continue",
    "top_up_url": "https://lifeastroapi.com/pricing",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

429 Too Many Requests

{
  "error": {
    "code": "rate_limited",
    "message": "rate limit exceeded; retry after 12 seconds",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

Try it

Get a dv_live_* key from your dashboard and paste into the cURL snippet above. New accounts get 1,500 free credits. Sign up.