Transits
curl -X POST https://api.astroway.info/v1/transits \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json" \ -d '{ "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "transitDate": "2024-06-15", "transitTime": "12:00:00", "transitTzOffset": 3 }'const res = await fetch('https://api.astroway.info/v1/transits', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "transitDate": "2024-06-15", "transitTime": "12:00:00", "transitTzOffset": 3 }),});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.post( 'https://api.astroway.info/v1/transits', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'date': "1990-05-15", 'time': "14:30:00", 'timezoneOffset': 3, 'latitude': 50.45, 'longitude': 30.52, 'transitDate': "2024-06-15", 'transitTime': "12:00:00", 'transitTzOffset': 3 },)result = r.json()if not result['ok']: raise RuntimeError(result['error']['message'])print(result['data'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->post('transits', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'date' => '1990-05-15', 'time' => '14:30:00', 'timezoneOffset' => 3, 'latitude' => 50.45, 'longitude' => 30.52, 'transitDate' => '2024-06-15', 'transitTime' => '12:00:00', 'transitTzOffset' => 3, ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Calculate transit planet aspects to natal planets for a given date. Returns applying and separating aspects.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Birth data for a single natal chart. Required: date (YYYY-MM-DD), time (HH:mm:ss), latitude and longitude in decimal degrees. The short forms lat, lon, lng and tz are rejected with 400 INVALID_FIELD; pass the full names. timezoneOffset is hours from UTC and defaults to 0, meaning UTC. city is a display label only: nothing here geocodes it, so it never stands in for coordinates.
object
Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC.
Sidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.
Example
{ "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "transitDate": "2024-06-15", "transitTime": "12:00:00", "transitTzOffset": 3}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
object
object
object
Example
{ "ok": true, "data": { "input": { "name": "Transit 2024-06-15", "date": "2024-06-15", "time": "12:00:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "houseSystem": "P", "city": "", "cosmogram": false }, "julianDay": 2460476.875, "siderealTime": 2.6092491286903003, "planets": [ { "id": 0, "name": "Sun", "longitude": 84.75653503121559, "latitude": -0.0000164358265263301, "distance": 1.0157821041670574, "speedLong": 0.9550136432789496, "speedLat": -0.000036549230140863315, "speedDist": 0.00008577562543556365, "isRetrograde": false, "declination": 23.33453040532501, "rightAscension": 84.28796798183103 } ], "houses": { "system": "P", "cusps": [ 165.47753491960438 ], "ascendant": 165.47753491960438, "mc": 71.2147540958855, "armc": 69.65873693035451, "vertex": 326.8292566611795, "equatorialAsc": 157.99779882370274, "coAscWK": 137.44370360743522, "coAscMunkasey": 163.70012789506856, "polarAsc": 317.4437036074352 }, "aspects": [ { "planet1": "Sun", "planet2": "Mercury", "planet1Id": 0, "planet2Id": 2, "type": { "name": "Conjunction", "i18nKey": "aspect_conjunction", "angle": 0, "orb": 12, "symbol": "☌", "isMajor": true, "color": "#660480" }, "exactAngle": 0.8530438136031364, "orb": 0.8530438136031364, "isApplying": false } ], "parallelAspects": [ { "planet1": "Sun", "planet2": "Venus", "planet1Id": 0, "planet2Id": 3, "type": "parallel", "exactDiff": 0.4468409597308387, "orb": 0.4468409597308387 } ], "antiscia": [ { "planetId": 0, "planetName": "Sun", "antiscion": 95.2434649687844, "contraAntiscion": 275.2434649687844 } ], "antisciaAspects": [] }}Validation error
Example
{ "ok": false, "error": { "code": "INVALID_INPUT", "message": "Validation failed: date: Date must be YYYY-MM-DD", "details": [ { "path": "date", "message": "Date must be YYYY-MM-DD" } ] }}Missing or invalid API key
Example
{ "ok": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}