Skip to content
POST/api/astro/astrocartography/local-space/1 credit

Local space lines

The compass bearing from the birthplace to each planet, extended across the map. A different relocation technique from the ACG lines. Instead of asking where on Earth a planet was on an angle, local space asks which way that planet lay in the sky as seen FROM the birthplace, and draws that bearing outward as a great circle. Travelling along a planet's line is held to carry that planet's themes. Azimuth is measured from true north, increasing eastward, so it reads directly as a compass bearing; a sixteen-point compass name is included for display. Each body also comes with a list of points along its great circle at fixed arc distances, ready to draw. Altitude is returned rather than used to filter. A planet below the horizon still has a bearing, and whether to draw its line is a judgement some practitioners make differently, so the number and an above_horizon flag are given and the choice is left to you. Unlike the other three endpoints here, this one genuinely depends on the birthplace, so latitude and longitude are required.

https://yogataraapi.prahlad.app/api/astro/astrocartography/local-space/
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 -89.9 · max 89.9

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

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.

Example request

curl -X POST https://yogataraapi.prahlad.app/api/astro/astrocartography/local-space/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date_time":"2026-09-01 06:00:00","latitude":26.9124,"longitude":75.7873,"timezone_as_float":5.5}'

Response

{
  "_truncated": true,
  "_note": "Response shortened for the catalogue.",
  "preview": "{\"data\": {\"julian_day_ut\": 2461284.52083333, \"origin\": {\"latitude_deg\": 26.9124, \"longitude_deg\": 75.7873}, \"azimuth_note\": \"Measured from true north, increasing eastward.\", \"lines\": [{\"object\": \"sun\", \"azimuth_deg\": 79.506047, \"altitude_deg\": -2.182842, \"above_horizon\": false, \"compass\": \"E\", \"line\": [{\"arc_deg\": 15, \"latitude_deg\": 28.635696, \"longitude_deg\": 92.642633}, {\"arc_deg\": 30, \"latitude_deg\": 28.241598, \"longitude_deg\": 109.709702}, {\"arc_deg\": 45, \"latitude_deg\": 25.778617, \"longitude_deg\": 126.331978}, {\"arc_deg\": 60, \"latitude_deg\": 21.528394, \"longitude_deg\": 142.05028}, {\"arc_deg\": 90, \"latitude_deg\": 9.346623, \"longitude_deg\": 170.57978}, {\"arc_deg\": 120, \"latitude_deg\": -4.914291, \"longitude_deg\": -162.937346}, {\"arc_deg\": 150, \"latitude_deg\": -18.106465, \"longitude_deg\": -135.360733}]}, {\"object\": \"moon\", \"azimuth_deg\": 259.881794, \"altitude_deg\": 49.433108, \"above_horizon\": true, \"compass\": \"W\", \"line\": [{\"arc_deg\": 15, \"latitude_deg\": 23.369538, \"longitude_deg\": 59.672461}, {\"arc_deg\": 30, \"latitude_deg\": 18.279962, \"longitude_deg\": 44.563396}, {\"arc_deg\": 45, \"latitude_deg\": 12.080481, \"longitude_deg\": 30.399691}, {\"arc_deg\": 60, \"latitude_deg\": 5.200889, \"longitude_deg\": 16.90794}, {\"arc_deg\": 90, \"latitude_deg\": -9.0127, \"longitude_deg\": -9.594735}, {\"arc_deg\": 120, \"latitude_deg\": -21.221824, \"longitude_deg\": -38.066883}, {\"arc_deg\": 150, \"latitude_deg\": -28.054667, \"longitude_deg\": -70.311601}]}, {\"object\": \"mercury\", \"azimuth_deg\": 77.524293, \"altitude_deg\": -6.132684, \"above_horizon\": false, \"compass\": \"ENE\", \"line\": [{\"arc_deg\": 15, \"latitude_deg\": 29.147598, \"longitude_deg\": 92.606258}, {\"arc_deg\": 30, \"latitude_deg\": 29.229043, \"longitude_deg\": 109.803169}, {\"arc_deg\": 45, \"latitude_deg\": 27.146426, \"longitude_deg\": 126.672049}, {\"arc_deg\": 60, \"latitude_deg\": 23.149791, \"longitude_deg\": 142.658552}, {\"arc_deg\": 90, \"latitude_deg\": 11.106307, \"longitude_deg\": 171.506052}, {\"arc_deg\": 120, \"latitude_deg\": -3.410619, \"longitude_deg\": -162.107843}, {\"arc_deg\": 150, \"latitude_deg\": -17.197843, \"longitude_deg\": -134.946017}]}, {\"object\": \"venus\", \"azimuth_deg\": 78.686729, \"altitude_deg\": -46.853905, \"above_horizon\": false, \"compass\": \"ENE\", \"line\": [{\"arc_deg\": 15, \"latitude_deg\": 28.84746, \"longitude_deg\": 92.630006}, {\"arc_deg\": 30, \"latitude_deg\": 28.649546, \"longitude_deg\": 109.752217}, {\"arc_deg\": 45, \"latitude_deg\": 26.343304, \"longitude_deg\": 126.476122}, {\"arc_deg\": 60, \"latitude_deg\": 22.197824, \"longitude_deg\": 142.30372}, {\"arc_deg\": 90, \"latitude_deg\": 10.074447, \"longitude_deg\": 170.961491}, {\"arc_deg\": 120, \"latitude_deg\": -4.290999, \"longitude_deg\": -162.597179}, {\"arc_deg\": 150, \"latitude_deg\": -17.729485, \"longitude_deg\": -135.192234}]}, {\"object\": \"mars\", \"azimuth_deg\": 86.256253, \"altitude_deg\": 52.732313, \"above_horizon\": true, \"compass\": \"E\", \"line\": [{\"arc_deg\": 15, \"latitude_deg\": 26.889673, \"longitude_deg\": 92.619871}, {\"arc_deg\": 30, \"latitude_deg\": 24.90396, \"longitude_deg\": 109.159973}, {\"arc_deg\": 45, \"latitude_deg\": 21.175501, \"longitude_deg\": 124.960635}, {\"arc_deg\": 60, \"latitude_deg\": 16.065514, \"longitude_deg\": 139.853331}, {\"arc_deg\": 90, \"latitude_deg\": 3.337811, \"longitude_deg\": 167.483743}, {\"arc_deg\": 120, \"latitude_deg\": -10.130536, \"longitude_deg\": -165.598417}, {\"arc_deg\": 150, \"latitude_deg\": -21.276906, \"longitude_deg\": -136.585722}]}, {\"object\": \"jupiter\", \"azimuth_deg\": 81.498124, \"altitude_deg\": 22.655866, \"above_horizon\": true, \"compass\": \"E\", \"line\": [{\"arc_deg\": 15, \"latitude_deg\": 28.120341, \"longitude_deg\": 92.659281}, {\"arc_deg\": 30, \"latitude_deg\": 27.251831, \"longitude_deg\": 109.583989}, {\"arc_deg\": 45, \"latitude_deg\": 24.41069, \"longitude_deg\": 125.961001}, {\"arc_deg\": 60, \"latitude_deg\": 19.906266, \"longitude_deg\": 141.422364}, {\"arc_deg\": 90, \"latitude_deg\": 7.575381, \"longitude_deg\": 169.65808}, {\"arc_deg\": 120, \"latitude_deg\": -6.438999, \"longitude_deg\": -163.748485}, {\"arc_deg\": 150, \"latitude_deg\": -19.030526, \"longitude_deg\": -135.752807}]"
}

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.