🌍 Astrocartography API, πŸ”· Human Design API and βœ‹ Palmistry API are now live. Ship them in your app today.

ayanamsha

ayanamsha provides different types of ayanamshas (methods of calculating the shift between the tropical and sidereal zodiacs) for a given longitude in degrees, returning the ayanamsha value in degrees and its formatted representation in hours, minutes, and seconds.
POSThttps://json.astrologyapi.com/v1/ayanamsha

Authentication

x-astrologyapi-keystringrequired

API access token used to authenticate requests. Send your access token in this custom header.

Accept-Languagestring

Preferred language for the response content. Supported: English - en.

Body parameters

dayintrequired

Date of birth, eg: 10

monthintrequired

Month of birth, eg: 5

yearintrequired

Year of birth, eg: 1990

hourintrequired

Hour of birth, eg: 19

minintrequired

Minute of birth, eg: 55

latfloatrequired

Latitude, eg: 19.2056

lonfloatrequired

Longitude, eg: 25.2056

tzonefloatrequired

Timezone, eg: 5.5

curl --location 'https://json.astrologyapi.com/v1/ayanamsha' \
  --header 'Content-Type: application/json' \
  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
  --data '{
    "day": 10,
    "month": 5,
    "year": 1990,
    "hour": 19,
    "min": 55,
    "lat": 19.2056,
    "lon": 25.2056,
    "tzone": 5.5
}'
Try it

Runs with sample data β€” no API key needed

[
  {
    "type": "LAHIRI",
    "degree": 24.101234311094515,
    "formatted": "24:06:04"
  },
  {
    "type": "KP",
    "degree": 24.00465040376008,
    "formatted": "24:00:16"
  },
  {
    "type": "YUKTESHWAR",
    "degree": 22.72298340376011,
    "formatted": "22:43:22"
  },
  {
    "type": "RAMAN",
    "degree": 22.65520140376009,
    "formatted": "22:39:18"
  },
  {
    "type": "JN_BHASIN",
    "degree": 23.006317403760136,
    "formatted": "23:00:22"
  },
  {
    "type": "FAGAN_BRADLEY",
    "degree": 24.984592033135584,
    "formatted": "24:59:04"
  }
]