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

Fixed star positions

Where named fixed stars sit at a given moment: tropical longitude with sign and degree, ecliptic latitude, and equatorial coordinates. Fixed stars are not fixed. They precess about a degree every 72 years, so a position quoted without a date is meaningless — Regulus left Leo for Virgo in 2012 and now sits at 0 Virgo. Choose stars by name, or use a preset: `behenian` for the fifteen stars of medieval magic, `major` for the set astrologers actually work with, `brightest` for everything above magnitude 1.5, or `all`.

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

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.

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/positions/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_time":"2026-01-01T00:00:00+00:00","timezone_as_float":0,"preset":"behenian"}'

Response

{
  "_truncated": true,
  "_note": "Response shortened for the catalogue.",
  "preview": "{\"data\": {\"julian_day_ut\": 2461041.5, \"count\": 15, \"stars\": [{\"star\": \"Algol\", \"designation\": \"bePer\", \"aliases\": [], \"magnitude\": 2.12, \"longitude\": 56.536133, \"latitude\": 22.433032, \"right_ascension_deg\": 47.472908, \"declination_deg\": 41.058602, \"sign\": \"Taurus\", \"sign_index\": 2, \"degree_in_sign\": 26.5361}, {\"star\": \"Alcyone\", \"designation\": \"etTau\", \"aliases\": [\"Krttika\"], \"magnitude\": 2.87, \"longitude\": 60.361502, \"latitude\": 4.053961, \"right_ascension_deg\": 57.264611, \"declination_deg\": 24.186925, \"sign\": \"Gemini\", \"sign_index\": 3, \"degree_in_sign\": 0.3615}, {\"star\": \"Aldebaran\", \"designation\": \"alTau\", \"aliases\": [\"Rohini\"], \"magnitude\": 0.86, \"longitude\": 70.159252, \"latitude\": -5.465739, \"right_ascension_deg\": 69.360424, \"declination_deg\": 16.562139, \"sign\": \"Gemini\", \"sign_index\": 3, \"degree_in_sign\": 10.1593}, {\"star\": \"Capella\", \"designation\": \"alAur\", \"aliases\": [\"Brahmahridaya\"], \"magnitude\": 0.08, \"longitude\": 82.228827, \"latitude\": 22.865264, \"right_ascension_deg\": 79.662975, \"declination_deg\": 46.024947, \"sign\": \"Gemini\", \"sign_index\": 3, \"degree_in_sign\": 22.2288}, {\"star\": \"Sirius\", \"designation\": \"alCMa\", \"aliases\": [\"Lubdhaka\"], \"magnitude\": -1.46, \"longitude\": 104.449025, \"latitude\": -39.611041, \"right_ascension_deg\": 101.580591, \"declination_deg\": -16.751976, \"sign\": \"Cancer\", \"sign_index\": 4, \"degree_in_sign\": 14.449}, {\"star\": \"Procyon\", \"designation\": \"alCMi\", \"aliases\": [], \"magnitude\": 0.37, \"longitude\": 116.15164, \"latitude\": -16.024563, \"right_ascension_deg\": 115.172471, \"declination_deg\": 5.157534, \"sign\": \"Cancer\", \"sign_index\": 4, \"degree_in_sign\": 26.1516}, {\"star\": \"Regulus\", \"designation\": \"alLeo\", \"aliases\": [\"Magha\"], \"magnitude\": 1.4, \"longitude\": 150.195942, \"latitude\": 0.465653, \"right_ascension_deg\": 152.443892, \"declination_deg\": 11.838288, \"sign\": \"Virgo\", \"sign_index\": 6, \"degree_in_sign\": 0.1959}, {\"star\": \"Alkaid\", \"designation\": \"etUMa\", \"aliases\": [\"Benetnash\", \"Marichi\"], \"magnitude\": 1.86, \"longitude\": 177.303862, \"latitude\": 54.382669, \"right_ascension_deg\": 207.141406, \"declination_deg\": 49.178214, \"sign\": \"Virgo\", \"sign_index\": 6, \"degree_in_sign\": 27.3039}, {\"star\": \"Algorab\", \"designation\": \"deCrv\", \"aliases\": [\"Hasta\"], \"magnitude\": 2.94, \"longitude\": 193.814427, \"latitude\": -12.197686, \"right_ascension_deg\": 187.804295, \"declination_deg\": -16.65954, \"sign\": \"Libra\", \"sign_index\": 7, \"degree_in_sign\": 13.8144}, {\"star\": \"Spica\", \"designation\": \"alVir\", \"aliases\": [\"Citra\"], \"magnitude\": 0.97, \"longitude\": 204.204413, \"latitude\": -2.056252, \"right_ascension_deg\": 201.641386, \"declination_deg\": -11.296925, \"sign\": \"Libra\", \"sign_index\": 7, \"degree_in_sign\": 24.2044}, {\"star\": \"Arcturus\", \"designation\": \"alBoo\", \"aliases\": [\"Svati\"], \"magnitude\": -0.05, \"longitude\": 204.596472, \"latitude\": 30.715328, \"right_ascension_deg\": 214.211389, \"declination_deg\": 19.044179, \"sign\": \"Libra\", \"sign_index\": 7, \"degree_in_sign\": 24.5965}, {\"star\": \"Alphecca\", \"designation\": \"alCrB\", \"aliases\": [\"Alphekka\", \"Gemma\"], \"magnitude\": 2.24, \"longitude\": 222.659925, \"latitude\": 44.317277, \"right_ascension_deg\": 233.944688, \"declination_deg\": 26.624185, \"sign\": \"Scorpio\", \"sign_index\": 8, \"degree_in_sign\": 12.6599}, {\"star\": \"Antares\", \"designation\": \"alSco\", \"aliases\": [\"Jyeshtha\"], \"magnitude\": 0.91, \"longitude\": 250.121879, \"latitude\": -4.573175, \"right_ascension_deg\": 247.747294, \"declination_deg\": -26.48875, \"sign\": \"Sagittarius\", \"sign_index\": 9, \"degree_in_sign\": 10.1219}, {\"star\": \"Vega\", \"designation\": \"alLyr\", \"aliases\": [\"Abhijit\"], \"magnitude\": 0.03, \"longitude\": 285.670356, \"latitude\": 61.731946, \"right_ascension_deg\": 279.448124, \"declination_deg\": 38.806772, \"sign\": \"Capricorn\", \"sign_index\": 10, \"degree_in_sign\": 15.6704}, {\"star\": \"Deneb Algedi\", \"designation\": \"deCap\", \"aliases\": [], \"magnitude\": 2.83, \"longitude\": 323.904246, \"latitude\": -2.606273, \"right_ascension_deg\": 327.11596, \"declination_deg\": -16.010421, \"sign\": \"Aquarius\", \"sign_index\": 11, \"degree_in_sign\": 23.9042}]}"
}

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.