/api/astro/astrocartography/relocate/1 creditLines near a place
Which planetary lines run near one particular place, and how close each one is. This is the question a relocation feature actually asks — what is going on for me in Berlin? Answering it from the full line set means re-implementing the circumpolar test and the longitude comparison yourself, so this endpoint does it and returns only the lines within an orb you choose. Each hit carries the line's longitude at your latitude, a signed offset (positive means the place is east of the line), the absolute orb in degrees, and an approximate distance in kilometres. Results are sorted closest first. Distance is measured east-west along the parallel of latitude, which is the astrocartography convention and what makes the figure comparable to the familiar ‘within 700 miles of a line’ orb used by other tools. It is not the perpendicular great-circle distance to the curve; for a steeply slanted rising line at high latitude the two differ, so orb_degrees is the primary figure and the kilometre value is a convenience derived from it.
https://yogataraapi.prahlad.app/api/astro/astrocartography/relocate/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 |
| bodies | array | optional | |
| 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. |
| orb_degrees | number (double) | optional | How far from a line still counts as being on it. min 0.1 · max 30 |
Example request
curl -X POST https://yogataraapi.prahlad.app/api/astro/astrocartography/relocate/ \
-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
{
"data": {
"julian_day_ut": 2461284.52083333,
"place": {
"latitude_deg": 26.9124,
"longitude_deg": 75.7873
},
"orb_degrees": 5,
"distance_note": "Measured east-west along the parallel of latitude, the ACG convention. Not perpendicular distance to the curve.",
"count": 2,
"lines_in_orb": [
{
"object": "uranus",
"line_type": "MC",
"line_longitude_deg": 76.083748,
"longitude_offset_deg": -0.296448,
"orb_deg": 0.296448,
"approx_distance_km": 29.43
},
{
"object": "sun",
"line_type": "AC",
"line_longitude_deg": 78.272501,
"longitude_offset_deg": -2.485201,
"orb_deg": 2.485201,
"approx_distance_km": 246.69
}
]
},
"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.