Star-planet parans (Brady)
curl -X POST https://api.astroway.info/v1/parans/star \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json" \ -d '{ "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "stars": [ "Regulus", "Sirius" ], "planets": [ 0, 4 ], "latitudeLimit": 60, "horizon": "geometric" }'const res = await fetch('https://api.astroway.info/v1/parans/star', { 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, "stars": [ "Regulus", "Sirius" ], "planets": [ 0, 4 ], "latitudeLimit": 60, "horizon": "geometric" }),});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/parans/star', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'date': "1990-05-15", 'time': "14:30:00", 'timezoneOffset': 3, 'stars': [ "Regulus", "Sirius" ], 'planets': [ 0, 4 ], 'latitudeLimit': 60, 'horizon': "geometric" },)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('parans/star', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'date' => '1990-05-15', 'time' => '14:30:00', 'timezoneOffset' => 3, 'stars' => ['Regulus', 'Sirius'], 'planets' => [0, 4], 'latitudeLimit' => 60, 'horizon' => 'geometric', ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Latitudes where a fixed star and a planet are angular at the same moment, which is how Brady tabulates a paran: not a place, a latitude. Twelve event pairs per star and planet (rise, set, culminate, anticulminate, minus meridian against meridian, which is a shared right ascension rather than a paran). Each row carries the houses of the technique in plain form: which body does what, the latitude, and the meridian where it happens at this chart moment. Solved on hour angles rather than by intersecting map polylines, so the latitude is exact rather than quantised to the polyline step. horizon selects the geometric horizon (default) or the apparent one at -34 arcmin, measured at about two degrees of paran latitude at mid-latitudes.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Birth data for star-planet parans. Coordinates are not used: a paran is a latitude, and which latitudes exist depends on the moment, not on where the native was born.
object
Star names from the Swiss Ephemeris catalogue. Default: the 36-star astrological set.
Swiss Ephemeris planet ids. Default: 0-9, Sun through Pluto.
Search range either side of the equator, degrees. Default 60, which is the range Brady tabulates.
Which horizon counts as rising. geometric (default) is altitude 0, the semi-diurnal arc as written in Meeus. apparent puts it at -34 arcmin, where refraction lifts a body into view first. Worth about two degrees of paran latitude at mid-latitudes, and refraction also breaks the equator mirror that the geometric horizon has, so it is a choice rather than a detail.
Example
{ "date": "1990-05-15", "time": "14:30:00", "timezoneOffset": 3, "stars": [ "Regulus", "Sirius" ], "planets": [ 0, 4 ], "latitudeLimit": 60, "horizon": "geometric"}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
Example
{ "ok": true}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" }}