/api/astro/part-of-fortune/1 creditPart of Fortune
The Part of Fortune, computed with the correct formula for the chart's sect. The most requested lot in astrology, and the one where sect matters most: day birth Ascendant + Moon - Sun night birth Ascendant + Sun - Moon Those two differ by twice the Sun-Moon distance — usually tens of degrees, often a different sign entirely. Sect is decided from the Sun's actual altitude at the birth moment (above the horizon is a day chart) rather than from a flag you have to work out, though you can override it with `sect`. Both values are always returned alongside the chosen one, with the ascendant, Sun and Moon that produced them, so the decision is auditable. Note that this will disagree with the `punya_saham` key on /api/astro/saham/ for a night birth. That endpoint applies the day formula to every chart; this one is the classical answer.
https://yogataraapi.prahlad.app/api/astro/part-of-fortune/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. |
| latitude | number (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 |
| longitude | number (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_float | number (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 |
| 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. |
| sect | string | optional | Which formula to use. `auto` decides from the Sun's actual altitude at the birth moment, which is what sect means. autodaynight |
Example request
curl -X POST https://yogataraapi.prahlad.app/api/astro/part-of-fortune/ \
-H "X-API-Key: $OCCULT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"date_time":"1990-05-10T19:55:00+05:30","latitude":26.9124,"longitude":75.7873,"timezone_as_float":5.5,"sect":"auto"}'Response
{
"data": {
"point": "part_of_fortune",
"also_known_as": "punya_saham",
"zodiac": "sidereal",
"ayanamsa": "lahiri",
"sect": "night",
"sect_detected": "night",
"sect_source": "auto",
"sun_altitude_deg": -11.186639,
"longitude": 29.064531,
"sign": "Aries",
"sign_index": 1,
"degree_in_sign": 29.0645,
"formula": "ascendant + sun - moon",
"day_formula_longitude": 46.248663,
"night_formula_longitude": 29.064531,
"components": {
"ascendant": 217.656597,
"sun": 25.94216,
"moon": 214.534226
}
},
"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.