Skip to content
POST/api/astro/planet-friendships/1 credit

Natural planetary friendships

Natural friends, neutrals and enemies for every planet, by name, plus the planets ranked by strength for this chart. The natural relationships are permanent — they do not depend on the chart — and they decide a large part of whether a planet is read as comfortable where it sits. The strength ranking, unlike them, is specific to the birth given. Friendship is derived as the complement of neutrality and enmity rather than read from the engine's own key, which raises an error. The derivation reproduces the classical table exactly for all seven traditional planets, and the response says so in `friends_source`.

https://yogataraapi.prahlad.app/api/astro/planet-friendships/
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.

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

keysarrayoptional

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.

nodestringoptional
planetstringoptional
raasiintegeroptional

min 1 · max 12

Example request

curl -X POST https://yogataraapi.prahlad.app/api/astro/planet-friendships/ \
  -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,"node":"true"}'

Response

{
  "data": {
    "natural_friends": {
      "Sun": [
        "Moon",
        "Mars",
        "Jupiter"
      ],
      "Moon": [
        "Sun",
        "Mercury"
      ],
      "Mars": [
        "Sun",
        "Moon",
        "Jupiter"
      ],
      "Mercury": [
        "Sun",
        "Venus"
      ],
      "Jupiter": [
        "Sun",
        "Moon",
        "Mars"
      ],
      "Venus": [
        "Mercury",
        "Saturn",
        "Rahu"
      ],
      "Saturn": [
        "Mercury",
        "Venus",
        "Rahu"
      ],
      "Rahu": [
        "Venus",
        "Saturn"
      ],
      "Ketu": [
        "Sun",
        "Mars"
      ]
    },
    "natural_neutrals": {
      "Sun": [
        "Mercury",
        "Ketu"
      ],
      "Moon": [
        "Mars",
        "Jupiter",
        "Venus",
        "Saturn",
        "Rahu",
        "Ketu"
      ],
      "Mars": [
        "Venus",
        "Saturn",
        "Rahu",
        "Ketu"
      ],
      "Mercury": [
        "Mars",
        "Jupiter",
        "Saturn",
        "Rahu"
      ],
      "Jupiter": [
        "Saturn",
        "Ketu"
      ],
      "Venus": [
        "Mars",
        "Jupiter",
        "Ketu"
      ],
      "Saturn": [
        "Jupiter"
      ],
      "Rahu": [
        "Mercury",
        "Jupiter",
        "Ketu"
      ],
      "Ketu": [
        "Moon",
        "Mercury",
        "Jupiter",
        "Rahu"
      ]
    },
    "natural_enemies": {
      "Sun": [
        "Venus",
        "Saturn",
        "Rahu"
      ],
      "Moon": [],
      "Mars": [
        "Mercury"
      ],
      "Mercury": [
        "Moon",
        "Ketu"
      ],
      "Jupiter": [
        "Mercury",
        "Venus",
        "Rahu"
      ],
      "Venus": [
        "Sun",
        "Moon"
      ],
      "Saturn": [
        "Sun",
        "Moon",
        "Mars",
        "Ketu"
      ],
      "Rahu": [
        "Sun",
        "Moon",
        "Mars"
      ],
      "Ketu": [
        "Venus",
        "Saturn"
      ]
    },
    "friends_source": "derived_complement",
    "friends_note": "Friendship is derived as the complement of neutrality and enmity. The engine's own natural_friends_of_planets key raises an error, and the derivation reproduces the classical table for all seven traditional planets.",
    "strength_order": [
      "Sun",
      "Mercury",
      "Moon",
      "Rahu",
      "Saturn",
      "Venus",
      "Jupiter",
      "Mars",
      "Ketu"
    ]
  },
  "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.