/api/astro/lunar/mansions/1 creditLunar mansions
Which of the twenty-eight manazil the Moon occupies. Twenty-eight divisions of the ecliptic of 12°51'26" each, used throughout medieval Western electional and magical astrology. NOT the Vedic nakshatras, which are twenty-SEVEN and are served by /api/astro/nakshatra/. The two traditions divide the same circle differently and a mansion never lines up with a nakshatra except by coincidence, so using one where the other is meant is a real error rather than a naming preference. These are tropical; the nakshatras are sidereal. Returns the current mansion with progress through it, when the Moon enters the next, and the full table of twenty-eight for reference.
https://yogataraapi.prahlad.app/api/astro/lunar/mansions/Authentication
Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.
X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/jsonRequest fields
| Field | Type | Required | Notes |
|---|---|---|---|
| date_time | string (date-time) | required | The moment to calculate for, ISO 8601. ALWAYS include an offset or a trailing Z - a value with no zone is read as Asia/Kolkata (UTC+05:30), not UTC, and can return the previous day's result with a 200. '2026-09-01T06:00:00Z' and '2026-09-01 06:00:00' are different instants and give different answers. |
| keys | array | optional | Which calculations to return, as a list of names. See the key table for this endpoint; an unrecognised name rejects the whole request. One call costs one credit however many keys you ask for, so request everything you need at once rather than making several calls. |
| latitude | number (double) | optional | Latitude of the place, in decimal degrees. Positive is north, negative is south. Example: 26.9124 for Jaipur, 40.7128 for New York. Minutes and seconds are not accepted - convert first. |
| longitude | number (double) | optional | Longitude of the place, in decimal degrees. Positive is east, negative is west. Example: 75.7873 for Jaipur, -74.0060 for New York. Note the sign: a missing minus puts New York in China. |
| orb_factor | number (double) | optional | Scale every aspect orb. 0.5 halves them, 2 doubles them. min 0.1 · max 2 |
| timezone_as_float | number (double) | optional | UTC offset of the place, in hours, as a decimal. Example: 5.5 for India (UTC+05:30), -5 for New York in winter, 5.75 for Nepal. This is NOT validated against date_time - if the two disagree you get a successful response for the wrong moment, so derive both from the same source. Use the offset in force on that date, not today's: a summer birth in a country with daylight saving needs the summer offset. min -12 · max 14 |
Example request
curl -X POST https://yogataraapi.prahlad.app/api/astro/lunar/mansions/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_time":"1990-08-15T10:30:00+05:30","latitude":26.9124,"longitude":75.7873,"timezone_as_float":5.5}'Response
{
"data": {
"zodiac": "tropical",
"as_of": "1990-08-15T05:00:00+00:00",
"moon": {
"longitude": 72.660043,
"speed": 14.262958,
"sign": "Gemini",
"sign_index": 3,
"degree_in_sign": 12.66,
"formatted": "12°39' Gemini"
},
"mansion": {
"number": 6,
"name": "Al Hana",
"from_degree": 64.285714,
"to_degree": 77.142857,
"degrees_into": 8.374328,
"percent_through": 65.1337
},
"next_mansion": {
"number": 7,
"name": "Al Dhira",
"enters_at": "1990-08-15T12:32:37+00:00"
},
"mansion_arc_degrees": 12.857143,
"mansions": [
{
"number": 1,
"name": "Al Sharatain",
"from_degree": 0,
"to_degree": 12.8571
},
{
"number": 2,
"name": "Al Butain",
"from_degree": 12.8571,
"to_degree": 25.7143
},
{
"number": 3,
"name": "Al Thurayya",
"from_degree": 25.7143,
"to_degree": 38.5714
},
{
"number": 4,
"name": "Al Dabaran",
"from_degree": 38.5714,
"to_degree": 51.4286
},
{
"number": 5,
"name": "Al Haqa",
"from_degree": 51.4286,
"to_degree": 64.2857
},
{
"number": 6,
"name": "Al Hana",
"from_degree": 64.2857,
"to_degree": 77.1429
},
{
"number": 7,
"name": "Al Dhira",
"from_degree": 77.1429,
"to_degree": 90
},
{
"number": 8,
"name": "Al Nathra",
"from_degree": 90,
"to_degree": 102.8571
},
{
"number": 9,
"name": "Al Tarf",
"from_degree": 102.8571,
"to_degree": 115.7143
},
{
"number": 10,
"name": "Al Jabhah",
"from_degree": 115.7143,
"to_degree": 128.5714
},
{
"number": 11,
"name": "Al Zubrah",
"from_degree": 128.5714,
"to_degree": 141.4286
},
{
"number": 12,
"name": "Al Sarfah",
"from_degree": 141.4286,
"to_degree": 154.2857
},
{
"number": 13,
"name": "Al Awwa",
"from_degree": 154.2857,
"to_degree": 167.1429
},
{
"number": 14,
"name": "Al Simak",
"from_degree": 167.1429,
"to_degree": 180
},
{
"number": 15,
"name": "Al Ghafr",
"from_degree": 180,
"to_degree": 192.8571
},
{
"number": 16,
"name": "Al Jubana",
"from_degree": 192.8571,
"to_degree": 205.7143
},
{
"number": 17,
"name": "Iklil al Jabhah",
"from_degree": 205.7143,
"to_degree": 218.5714
},
{
"number": 18,
"name": "Al Qalb",
"from_degree": 218.5714,
"to_degree": 231.4286
},
{
"number": 19,
"name": "Al Shaulah",
"from_degree": 231.4286,
"to_degree": 244.2857
},
{
"number": 20,
"name": "Al Naaim",
"from_degree": 244.2857,
"to_degree": 257.1429
},
{
"number": 21,
"name": "Al Baldah",
"from_degree": 257.1429,
"to_degree": 270
},
{
"number": 22,
"name": "Saad al Dhabih",
"from_degree": 270,
"to_degree": 282.8571
},
{
"number": 23,
"name": "Saad Bula",
"from_degree": 282.8571,
"to_degree": 295.7143
},
{
"number": 24,
"name": "Saad al Suud",
"from_degree": 295.7143,
"to_degree": 308.5714
},
{
"number": 25,
"name": "Saad al Akhbiyah",
"from_degree": 308.5714,
"to_degree": 321.4286
},
{
"number": 26,
"name": "Al Fargh al Mukdim",
"from_degree": 321.4286,
"to_degree": 334.2857
},
{
"number": 27,
"name": "Al Fargh al Thani",
"from_degree": 334.2857,
"to_degree": 347.1429
},
{
"number": 28,
"name": "Batn al Hut",
"from_degree": 347.1429,
"to_degree": 360
}
],
"note": "Twenty-eight Arabic manazil, not the twenty-seven Vedic nakshatras — see /api/astro/nakshatra/ for those. These are tropical; the nakshatras are sidereal."
},
"status": 200,
"is_error": false,
"message": "successful"
}Captured from a real call using the exact request above. Results sit under data.
Errors
Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.