Biorhythm (JSON)
curl -X POST https://api.astroway.info/v1/wellness/biorhythm \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json" \ -d '{ "birthDate": "1990-06-15", "rangeStart": "2026-06-15", "rangeEnd": "2026-06-21" }'const res = await fetch('https://api.astroway.info/v1/wellness/biorhythm', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ "birthDate": "1990-06-15", "rangeStart": "2026-06-15", "rangeEnd": "2026-06-21" }),});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/wellness/biorhythm', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'birthDate': "1990-06-15", 'rangeStart': "2026-06-15", 'rangeEnd': "2026-06-21" },)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('wellness/biorhythm', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'birthDate' => '1990-06-15', 'rangeStart' => '2026-06-15', 'rangeEnd' => '2026-06-21', ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Physical (23d), emotional (28d) and intellectual (33d) cycle values per day, plus the critical days where a cycle crosses zero. Data twin of POST /render/biorhythm.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.
Example
planets.name,planets.longitudeRound every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.
Example
4Request Body required
Section titled “Request Body required ”object
Example
{ "birthDate": "1990-06-15", "rangeStart": "2026-06-15", "rangeEnd": "2026-06-21"}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
Example
{ "ok": true, "data": { "birthDate": "1990-06-15", "range": { "start": "2026-06-15", "end": "2026-06-21", "days": 7 }, "cycles": [ { "name": "physical", "periodDays": 23 } ], "days": [ { "date": "2026-06-16", "dayOfLife": 13150, "physical": -0.9977, "emotional": -0.7818, "intellectual": 0.0951, "critical": [ "intellectual" ] } ], "criticalDays": [ { "date": "2026-06-16", "cycles": [ "intellectual" ] } ], "disclaimer": "Biorhythm cycles are a 19th-century numerological construct (Fliess 1897, Swoboda 1904) with no evidential support. Returned for entertainment and for parity with charting tools, not as a prediction." }}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" }}