Synastry (HTML)
curl -X GET https://api.astroway.info/v1/embed/synastry \ -H "Content-Type: application/json"const res = await fetch('https://api.astroway.info/v1/embed/synastry', { method: 'GET', headers: { 'Content-Type': 'application/json', },});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.get( 'https://api.astroway.info/v1/embed/synastry', headers={'Content-Type': 'application/json'},)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->get('embed/synastry', []);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Two-subject compatibility score + key cross-aspects.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Birth date YYYY-MM-DD of subject A. Required; the widget renders an error without both subjects.
Birth time of subject A. Defaults to 12:00:00.
UTC offset of subject A. Defaults to 0.
Latitude of subject A. Defaults to 0.
Longitude of subject A. Defaults to 0.
Birth date YYYY-MM-DD of subject B. Required; the widget renders an error without both subjects.
Birth time of subject B. Defaults to 12:00:00.
UTC offset of subject B. Defaults to 0.
Latitude of subject B. Defaults to 0.
Longitude of subject B. Defaults to 0.
Widget language. Also accepts the Accept-Language header.
Example
deColour scheme. Unknown values fall back to dark.
Example
lightResponses
Section titled “ Responses ”Rendered widget markup, ready to drop into an iframe.
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" }}