https://json.astrologyapi.com/v1/ayanamshax-astrologyapi-keystringrequiredAPI access token used to authenticate requests. Send your access token in this custom header.
Accept-LanguagestringPreferred language for the response content. Supported: English - en.
dayintrequiredDate of birth, eg: 10
monthintrequiredMonth of birth, eg: 5
yearintrequiredYear of birth, eg: 1990
hourintrequiredHour of birth, eg: 19
minintrequiredMinute of birth, eg: 55
latfloatrequiredLatitude, eg: 19.2056
lonfloatrequiredLongitude, eg: 25.2056
tzonefloatrequiredTimezone, 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
}'
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"
}
]