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 name or Swiss Ephemeris number, or "all" for every available system |
Response
data is always an array: one entry for a single system, one per available system for system=all.
Single system
{
"data": [
{ "system": "lahiri", "name": "Lahiri", "id": 1, "value": 24.1764 }
],
"meta": { "..." }
}All systems (system=all)
{
"data": [
{ "system": "fagan_bradley", "name": "Fagan-Bradley", "id": 0, "value": 24.9912 },
{ "system": "lahiri", "name": "Lahiri", "id": 1, "value": 24.1764 },
{ "system": "deluce", "name": "De Luce", "id": 2, "value": 23.4201 }
],
"meta": { "..." }
}| Field | Type | Description |
|---|---|---|
system | string | The name the system and sidereal parameters accept, so it can be sent straight back |
name | string | Display name |
id | number | Swiss Ephemeris number, 0 to 46 |
value | number | Ayanamsha value in degrees, signed on (−180°, 180°]. Negative before the system's zero year (around 285 CE for Lahiri); the J2000 ayanamsha is −1.39° in 1900 |
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 systems, the 12 star-anchored ones included.