Skip to content
POST/api/astro/fixed-star/conjunctions/1 credit

Stars on your chart

Which fixed stars sit on this chart's planets. The question that actually gets asked, and the one a per-star lookup cannot answer — you would have to fetch every star yourself and compare them all. Give a birth moment and an orb and get back the contacts, closest first, each with the star's magnitude so you can weigh it. Conjunction is by ecliptic LONGITUDE within the orb, which is how fixed star contacts are read. Ecliptic latitude is reported but deliberately not filtered on: many of the brightest stars lie far off the ecliptic — Algol is 22 degrees north, Sirius 39 degrees south — and excluding them would throw away most of the tradition. A degree of orb is already generous; the classical texts use much less.

https://yogataraapi.prahlad.app/api/astro/fixed-star/conjunctions/
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.

bodiesarrayoptional
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.

latitudenumber (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.

longitudenumber (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.

max_magnitudenumber (double)optional

Keep stars at least this bright. Lower numbers are brighter.

orb_degreesnumber (double)optional

How close counts as conjunct. A degree is already generous.

min 0.05 · max 5

presetstringoptional

major (default), behenian, brightest, or all.

majorbehenianbrightestall
starsarrayoptional

Star names. Overrides `preset` when given.

timezone_as_floatnumber (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/fixed-star/conjunctions/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_time":"1990-05-10T19:55:00+05:30","timezone_as_float":5.5,"preset":"major","orb_degrees":1.5}'

Response

{
  "data": {
    "julian_day_ut": 2448022.10069444,
    "orb_degrees": 1.5,
    "stars_considered": 41,
    "count": 6,
    "conjunctions": [
      {
        "body": "mars",
        "body_longitude": 344.690843,
        "star": "Achernar",
        "designation": "alEri",
        "magnitude": 0.46,
        "star_longitude": 345.172536,
        "star_latitude": -59.373354,
        "orb": 0.481693,
        "sign": "Pisces",
        "sign_index": 12,
        "degree_in_sign": 15.1725
      },
      {
        "body": "mercury",
        "body_longitude": 39.452338,
        "star": "Achird",
        "designation": "etCas",
        "magnitude": 3.44,
        "star_longitude": 40.1057,
        "star_latitude": 47.009121,
        "orb": 0.653362,
        "sign": "Taurus",
        "sign_index": 2,
        "degree_in_sign": 10.1057
      },
      {
        "body": "neptune",
        "body_longitude": 284.419553,
        "star": "Vega",
        "designation": "alLyr",
        "magnitude": 0.03,
        "star_longitude": 285.190944,
        "star_latitude": 61.729236,
        "orb": 0.771391,
        "sign": "Capricorn",
        "sign_index": 10,
        "degree_in_sign": 15.1909
      },
      {
        "body": "moon",
        "body_longitude": 238.259725,
        "star": "Rigil Kentaurus",
        "designation": "alCen",
        "magnitude": -0.1,
        "star_longitude": 239.368967,
        "star_latitude": -42.592043,
        "orb": 1.109242,
        "sign": "Scorpio",
        "sign_index": 8,
        "degree_in_sign": 29.369
      },
      {
        "body": "uranus",
        "body_longitude": 279.296197,
        "star": "Facies",
        "designation": "M22",
        "magnitude": 6.17,
        "star_longitude": 278.186132,
        "star_latitude": -0.726425,
        "orb": 1.110065,
        "sign": "Capricorn",
        "sign_index": 10,
        "degree_in_sign": 8.1861
      },
      {
        "body": "pluto",
        "body_longitude": 226.304012,
        "star": "Zubenelgenubi",
        "designation": "al-2Lib",
        "magnitude": 2.75,
        "star_longitude": 224.956907,
        "star_latitude": 0.334298,
        "orb": 1.347105,
        "sign": "Scorpio",
        "sign_index": 8,
        "degree_in_sign": 14.9569
      }
    ]
  },
  "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.