← Guides

Which ayanamsa the API uses - and how to match other software

If your results differ from another astrology program by a fraction of a degree - or by a whole nakshatra - the ayanamsa is the first thing to check. Here is exactly what each part of the API uses.

Updated

The short answer

Ayanamsa by endpoint family
EndpointsZodiacAyanamsaReported in
Vedic (/v1/charts/*, /v1/planets, /v1/dasha/*, panchang, doshas, …)SiderealLahiri (Chitrapaksha)meta.ayanamsa: "lahiri"
KP (/v1/kp/*)SiderealKP-Newcomb (Krishnamurti)meta.ayanamsa: "kp_newcomb"
Western (/v1/western/*)TropicalNonemeta.zodiac: "tropical"

There is no request field to switch ayanamsa: the birth input accepts exactly date, time, tz_offset_minutes, lat and lng, and rejects anything else with a 400 VALIDATION_ERROR. Each endpoint family uses the convention its tradition expects, and says which one in the response meta.

What the ayanamsa does

Planet positions are first computed in the tropical zodiac (measured from the March equinox). A sidereal zodiac is anchored to the stars instead, and because of the precession of the equinoxes the two drift apart by about 50 arc-seconds a year. The ayanamsa is that gap on a given date; the sidereal longitude is the tropical longitude minus it. Different schools fix the starting point differently, which is why there is more than one ayanamsa.

GET /v1/ayanamsa returns the active system and its current value. On 26 November 2026 it reported Lahiri at 24.2329°.

The same Moon, three ways

One birth, sent to three endpoints:

json
{
  "date": "1973-04-24",
  "time": "17:25:00",
  "tz_offset_minutes": 330,
  "lat": 19.076,
  "lng": 72.8777
}
Moon longitude for the sample birth
EndpointMoonLongitude
/v1/western/natal/planets (tropical)Capricorn 20°17′290.28°
/v1/charts/birth (Lahiri)Sagittarius 26°47′, Uttara Ashadha pada 1266.79°
/v1/kp/planet-position (KP-Newcomb)Sagittarius 26°53′, Uttara Ashadha pada 1266.89°

The tropical and Lahiri Moons differ by 23.49° - the Lahiri ayanamsa in April 1973, which is why a Western chart and a Vedic chart usually put a planet in different signs. KP-Newcomb sits about 6 arc-minutes below Lahiri, so the KP Moon is 0.10° further along. That is too small to change a sign here, but near a boundary it is enough to change the nakshatra, the pada - and in KP, the sub-lord, which is the point of the system.

When another program disagrees

  • Off by ~23-24° (about one sign): you are comparing tropical with sidereal. Compare Western endpoints with Western software, Vedic with Vedic.
  • Off by a few arc-minutes: a different ayanamsa (Raman, KP-Newcomb, True Chitra) or a different node. Our Vedic endpoints use Lahiri and the mean node for Rahu/Ketu.
  • Off by whole degrees on the ascendant, but planets agree: almost always the time zone, not the ayanamsa - see birth time and time zones.
  • Different house placements with identical longitudes: a different house system - see house systems.

Questions

Which ayanamsa does the AstroNode API use?
Lahiri on the Vedic endpoints, KP-Newcomb on the KP endpoints, and none on the Western endpoints, which are tropical. Each response names the convention it used in meta.
Can I choose the ayanamsa per request?
No. There is no request field for it: the birth input accepts exactly date, time, tz_offset_minutes, lat and lng, and anything else is rejected with 400 VALIDATION_ERROR.