Skip to content
POST/api/astro/dwadasamsa/1 credit

Dwadasamsa (D12)

The dwadasamsa, the twelfth divisional chart: each sign divided into twelve parts of 2°30' each. Read for parents and ancestry, and sometimes for inherited circumstance more broadly. Returns the same flat shape as /api/astro/planet-positions/: the planets as a list in traditional order with `name`, longitude, sign, nakshatra, pada and house on each, plus the ascendant and the ayanamsa applied. Send a date and a place; `ayanamsa` defaults to LAHIRI and all 48 are accepted. The chart is fixed by the route, so a `chart_name` in the body is ignored - this endpoint cannot return anything but the chart it is named for. /api/astro/chart/ is where to go for the other 24 divisions.

https://yogataraapi.prahlad.app/api/astro/dwadasamsa/
Test Request

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/json

Request fields

FieldTypeRequiredNotes
chart_namestringrequired
datetimestring (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. Same meaning as date_time, which other endpoints call the same thing by a different name.

latitudenumber (double)required

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.

min -89.9 · max 89.9

longitudenumber (double)required

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.

min -180 · max 180

aberrationbooleanoptional
apply_correctionbooleanoptional
ascendant_posstringoptional
cuspstartend
ayanamsastringoptional
correction_degintegeroptional

min 0

correction_directionstringoptional
addsubtract
correction_minintegeroptional

min 0 · max 59

correction_secintegeroptional

min 0 · max 59

extended_bodiesarrayoptional

Body groups to include: 'asteroids', 'planetary_moons', 'fictitious_bodies'.

notationstringoptional
astrologicaldegree
nutationbooleanoptional
rahustringoptional

Node type to include. 'true' returns true nodes only, 'mean' returns mean nodes only, 'both' returns both.

truemeanboth
refractionbooleanoptional
true_meanstringoptional
TrueMean
use_28_nakshatrasbooleanoptional

Example request

curl -X POST https://yogataraapi.prahlad.app/api/astro/dwadasamsa/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"datetime":"2026-09-01T06:00:00+05:30","timezone_as_float":5.5,"latitude":26.9124,"longitude":75.7873,"ayanamsa":"LAHIRI"}'

Response

{
  "data": {
    "planets": [
      {
        "name": "sun",
        "longitude": 292.57,
        "latitude": 0,
        "nakshatra": "Sravanam",
        "pada": 4,
        "kakshya": "moon",
        "zodiac_name": "Capricorn",
        "house": 2
      },
      {
        "name": "moon",
        "longitude": 17.733333333333334,
        "latitude": 4.37,
        "nakshatra": "Bharani",
        "pada": 2,
        "kakshya": "venus",
        "zodiac_name": "Aries",
        "house": 5
      },
      {
        "name": "mars",
        "longitude": 290.0966666666667,
        "latitude": 0.535,
        "nakshatra": "Sravanam",
        "pada": 4,
        "kakshya": "Mercury",
        "zodiac_name": "Capricorn",
        "house": 2
      },
      {
        "name": "mercury",
        "longitude": 342.09333333333336,
        "latitude": 1.574,
        "nakshatra": "Uttaraabhaadra",
        "pada": 3,
        "kakshya": "sun",
        "zodiac_name": "Pisces",
        "house": 4
      },
      {
        "name": "jupiter",
        "longitude": 323.6633333333333,
        "latitude": 0.529,
        "nakshatra": "Poorvaabhaadra",
        "pada": 2,
        "kakshya": "moon",
        "zodiac_name": "Aquarius",
        "house": 3
      },
      {
        "name": "venus",
        "longitude": 137.46999999999997,
        "latitude": -3.391,
        "nakshatra": "Poorva Phalguni",
        "pada": 2,
        "kakshya": "venus",
        "zodiac_name": "Leo",
        "house": 9
      },
      {
        "name": "saturn",
        "longitude": 203.36333333333337,
        "latitude": -2.651,
        "nakshatra": "Visaakha",
        "pada": 2,
        "kakshya": "moon",
        "zodiac_name": "Libra",
        "house": 11
      },
      {
        "name": "northtruenode",
        "longitude": 6.789999999999992,
        "latitude": 0,
        "nakshatra": "Ashwini",
        "pada": 3,
        "kakshya": "jupiter",
        "zodiac_name": "Aries",
        "house": 5
      },
      {
        "name": "southtruenode",
        "longitude": 186.79,
        "latitude": 0,
        "nakshatra": "Swaati",
        "pada": 1,
        "kakshya": "jupiter",
        "zodiac_name": "Libra",
        "house": 11
      },
      {
        "name": "uranus",
        "longitude": 167.08666666666664,
        "latitude": -0.154,
        "nakshatra": "Hasta",
        "pada": 3,
        "kakshya": "venus",
        "zodiac_name": "Virgo",
        "house": 10
      },
      {
        "name": "neptune",
        "longitude": 83.19333333333333,
        "latitude": -1.412,
        "nakshatra": "Punarvasu",
        "pada": 1,
        "kakshya": "moon",
        "zodiac_name": "Gemini",
        "house": 7
      },
      {
        "name": "pluto",
        "longitude": 21.34666666666668,
        "latitude": -4.3,
        "nakshatra": "Bharani",
        "pada": 3,
        "kakshya": "Mercury",
        "zodiac_name": "Aries",
        "house": 5
      }
    ],
    "ascendant": {
      "longitude": 266.25333333333333,
      "zodiac_name": "Sagittarius",
      "nakshatra": "Makha",
      "pada": 4
    },
    "ayanamsa": {
      "name": "LAHIRI",
      "corrected": false,
      "value_degrees": 24.229599,
      "formatted": "24°13'47\""
    }
  },
  "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.