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

Patyayini dasha

Patyayini is one of the timing systems used with the Tajaka annual chart, the chart cast for the moment the Sun returns to its natal longitude each year. Where Vimshottari divides time by nakshatra, Patyayini divides the year by the gaps between the planets: the seven classical planets are sorted by longitude, the arc from each to the next fixes that planet's share, and the shares are scaled to fill exactly one year. The result says which planet governs which stretch of the coming twelve months, and which planet runs each sub-period inside that stretch. One key, `get_dasha_periods`. Send the moment you want the year measured from as `date_time`, plus `latitude`, `longitude` and `timezone_as_float`. Rahu and Ketu take no part. Two things about the shape. Planets are returned as integer indices into the order Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, so 0 is the Sun and 6 is Saturn. And the sub-period start times are strings holding a date followed by a stringified dictionary, for example `"2025-02-13 {'degrees': 5, 'minutes': 7, 'seconds': 54.0}"`, in which degrees, minutes and seconds are the hours, minutes and seconds of the day rather than an angle. Parse accordingly.

https://yogataraapi.prahlad.app/api/astro/patyayini_dasha/
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
date_timestring (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.

keysarrayrequired

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.

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 -90 · max 90

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

timezone_as_floatnumber (double)required

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

Available keys (1)

Ask for exactly the calculations you want by listing them in keys. An unknown key rejects the whole request, and you are charged 1 credit however many you ask for — so batch them.

KeyExtra fields neededDescription
get_dasha_periodsThe full Patyayini sequence for one year: a list of `[planet, sub_periods, duration]`, one entry per major period. `planet` is an integer index into Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn; `duration` is the length of that period in days, and the durations across the list add up to roughly 365.24. `sub_periods` is a list of seven `[lord, start]` pairs, `lord` being the same integer index and `start` a string of the form `"YYYY-MM-DD {'degrees': H, 'minutes': M, 'seconds': S}"`, in which the three numbers are the hours, minutes and seconds of that day.

Example request

curl -X POST https://yogataraapi.prahlad.app/api/astro/patyayini_dasha/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keys":["get_dasha_periods"],"date_time":"2025-02-13T05:07:54.585Z","latitude":26.9124,"longitude":75.7873,"timezone_as_float":5.5}'

Response

{
  "data": {
    "get_dasha_periods": [
      [
        4,
        [
          [
            4,
            "2025-02-13 {'degrees': 5, 'minutes': 7, 'seconds': 54.0}"
          ],
          [
            2,
            "2025-02-20 {'degrees': 4, 'minutes': 30, 'seconds': 43.98}"
          ],
          [
            1,
            "2025-02-25 {'degrees': 13, 'minutes': 27, 'seconds': 35.6}"
          ],
          [
            0,
            "2025-03-04 {'degrees': 2, 'minutes': 37, 'seconds': 52.14}"
          ],
          [
            3,
            "2025-03-29 {'degrees': 14, 'minutes': 51, 'seconds': 56.66}"
          ],
          [
            6,
            "2025-03-30 {'degrees': 1, 'minutes': 9, 'seconds': 49.25}"
          ],
          [
            5,
            "2025-04-02 {'degrees': 4, 'minutes': 10, 'seconds': 16.59}"
          ]
        ],
        50.47049095824722
      ],
      [
        2,
        [
          [
            2,
            "2025-04-04 {'degrees': 16, 'minutes': 25, 'seconds': 24.42}"
          ],
          [
            1,
            "2025-04-08 {'degrees': 19, 'minutes': 45, 'seconds': 46.65}"
          ],
          [
            0,
            "2025-04-13 {'degrees': 20, 'minutes': 50, 'seconds': 43.92}"
          ],
          [
            3,
            "2025-05-03 {'degrees': 12, 'minutes': 30, 'seconds': 9.45}"
          ],
          [
            6,
            "2025-05-03 {'degrees': 20, 'minutes': 26, 'seconds': 9.66}"
          ],
          [
            5,
            "2025-05-06 {'degrees': 6, 'minutes': 13, 'seconds': 15.0}"
          ],
          [
            4,
            "2025-05-08 {'degrees': 4, 'minutes': 38, 'seconds': 17.8}"
          ]
        ],
        38.88177078271102
      ],
      [
        1,
        [
          [
            1,
            "2025-05-13 {'degrees': 13, 'minutes': 35, 'seconds': 9.41}"
          ],
          [
            0,
            "2025-05-19 {'degrees': 17, 'minutes': 10, 'seconds': 14.28}"
          ],
          [
            3,
            "2025-06-12 {'degrees': 16, 'minutes': 3, 'seconds': 44.27}"
          ],
          [
            6,
            "2025-06-13 {'degrees': 1, 'minutes': 43, 'seconds': 55.64}"
          ],
          [
            5,
            "2025-06-16 {'degrees': 0, 'minutes': 9, 'seconds': 52.8}"
          ],
          [
            4,
            "2025-06-18 {'degrees': 8, 'minutes': 44, 'seconds': 30.45}"
          ],
          [
            2,
            "2025-06-24 {'degrees': 21, 'minutes': 54, 'seconds': 47.0}"
          ]
        ],
        47.39207008858781
      ],
      [
        0,
        [
          [
            0,
            "2025-06-29 {'degrees': 22, 'minutes': 59, 'seconds': 44.27}"
          ],
          [
            3,
            "2025-10-01 {'degrees': 6, 'minutes': 23, 'seconds': 26.73}"
          ],
          [
            6,
            "2025-10-02 {'degrees': 20, 'minutes': 3, 'seconds': 28.63}"
          ],
          [
            5,
            "2025-10-14 {'degrees': 6, 'minutes': 24, 'seconds': 58.5}"
          ],
          [
            4,
            "2025-10-23 {'degrees': 10, 'minutes': 48, 'seconds': 11.02}"
          ],
          [
            2,
            "2025-11-17 {'degrees': 23, 'minutes': 2, 'seconds': 15.54}"
          ],
          [
            1,
            "2025-12-07 {'degrees': 14, 'minutes': 41, 'seconds': 41.06}"
          ]
        ],
        184.60794884537245
      ],
      [
        3,
        [
          [
            3,
            "2025-12-31 {'degrees': 13, 'minutes': 35, 'seconds': 11.05}"
          ],
          [
            6,
            "2025-12-31 {'degrees': 14, 'minutes': 13, 'seconds': 11.91}"
          ],
          [
            5,
            "2025-12-31 {'degrees': 18, 'minutes': 50, 'seconds': 5.1}"
          ],
          [
            4,
            "2025-12-31 {'degrees': 22, 'minutes': 32, 'seconds': 30.17}"
          ],
          [
            2,
            "2026-01-01 {'degrees': 8, 'minutes': 50, 'seconds': 22.75}"
          ],
          [
            1,
            "2026-01-01 {'degrees': 16, 'minutes': 46, 'seconds': 22.97}"
          ],
          [
            0,
            "2026-01-02 {'degrees': 2, 'minutes': 26, 'seconds': 34.33}"
          ]
        ],
        3.1051525548770096
      ],
      [
        6,
        [
          [
            6,
            "2026-01-03 {'degrees': 16, 'minutes': 6, 'seconds': 36.23}"
          ],
          [
            5,
            "2026-01-05 {'degrees': 1, 'minutes': 43, 'seconds': 22.53}"
          ],
          [
            4,
            "2026-01-06 {'degrees': 4, 'minutes': 43, 'seconds': 24.59}"
          ],
          [
            2,
            "2026-01-09 {'degrees': 7, 'minutes': 43, 'seconds': 51.93}"
          ],
          [
            1,
            "2026-01-11 {'degrees': 17, 'minutes': 30, 'seconds': 57.26}"
          ],
          [
            0,
            "2026-01-14 {'degrees': 15, 'minutes': 56, 'seconds': 54.43}"
          ],
          [
            3,
            "2026-01-26 {'degrees': 2, 'minutes': 18, 'seconds': 24.3}"
          ]
        ],
        22.617144228911343
      ],
      [
        5,
        [
          [
            5,
            "2026-01-26 {'degrees': 6, 'minutes': 55, 'seconds': 17.49}"
          ],
          [
            4,
            "2026-01-27 {'degrees': 4, 'minutes': 36, 'seconds': 38.06}"
          ],
          [
            2,
            "2026-01-29 {'degrees': 16, 'minutes': 51, 'seconds': 45.9}"
          ],
          [
            1,
            "2026-01-31 {'degrees': 15, 'minutes': 16, 'seconds': 48.7}"
          ],
          [
            0,
            "2026-02-02 {'degrees': 23, 'minutes': 51, 'seconds': 26.35}"
          ],
          [
            3,
            "2026-02-12 {'degrees': 4, 'minutes': 14, 'seconds': 38.88}"
          ],
          [
            6,
            "2026-02-12 {'degrees': 7, 'minutes': 57, 'seconds': 3.94}"
          ]
        ],
        18.167922541293144
      ]
    ]
  },
  "status": 200,
  "is_error": false,
  "message": "successful"
}

Captured from a real call using the exact request above. Results sit under data, keyed by what you requested.

Errors

Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.