Ayanamsha
GET /v1/ayanamsha — Get sidereal ayanamsha values for any of 47 systems.
Ayanamsha
Compute the ayanamsha (sidereal offset) for a given moment. The ayanamsha is the angular difference between the tropical and sidereal zodiacs.
GET /v1/ayanamsha
POST /v1/ayanamshaCredit cost: 1
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
datetime | string | One of datetime or jd | — | ISO 8601 UTC datetime |
jd | number | One of datetime or jd | — | Julian Day in UT1 |
system | string | No | "lahiri" | Ayanamsha system name or ID (0–46), or "all" |
Response
Single system
{
"data": {
"system": "lahiri",
"id": 1,
"value": 24.1764
},
"meta": { "..." }
}All systems (system=all)
{
"data": [
{ "system": "fagan_bradley", "id": 0, "value": 24.9912 },
{ "system": "lahiri", "id": 1, "value": 24.1764 },
{ "system": "deluce", "id": 2, "value": 23.4201 }
],
"meta": { "..." }
}| Field | Type | Description |
|---|---|---|
system | string | Ayanamsha system name |
id | number | Swiss Ephemeris ayanamsha ID (0–46) |
value | number | Ayanamsha value in degrees |
Examples
curl "https://api.morphemeris.com/v1/ayanamsha?datetime=2024-03-20T12:00:00Z&system=lahiri" \
-H "Authorization: Bearer morphemeris_live_YOUR_KEY"const res = await fetch(
"https://api.morphemeris.com/v1/ayanamsha?datetime=2024-03-20T12:00:00Z&system=lahiri",
{ headers: { Authorization: "Bearer morphemeris_live_YOUR_KEY" } }
);
const data = await res.json();import requests
res = requests.get(
"https://api.morphemeris.com/v1/ayanamsha",
params={"datetime": "2024-03-20T12:00:00Z", "system": "lahiri"},
headers={"Authorization": "Bearer morphemeris_live_YOUR_KEY"},
)
data = res.json()See Ayanamshas for the full list of 47 supported systems.