API für Synastrie und Kompatibilität
Vollständiger Satz von endpoint für die Analyse der Kompatibilität zwischen Menschen – von klassischer Synastrie bis zu Gruppenmatrizen für 10 Personen.
Was wird berechnet
Abschnitt betitelt „Was wird berechnet“- Cross-Aspects: Aspekte zwischen den Planeten zweier Karten (Sun-Venus trine, Moon-Mars square usw.)
- Kompatibilitäts-Score: numerischer Score 0–100 mit Kennzeichnung (harmonious, balanced, mixed, challenging)
- Harmony/Tension: gewichtete Summe harmonischer und spannungsgeladener Aspekte
- Kompositkarte: Mittelpunkte zwischen den Planeten zweier Personen
- Davison-Karte: Karte zum mittleren Datum und den Koordinaten
- Gruppenmatrix: paarweise Kompatibilität jedes mit jedem (2–10 Personen)
Die gleiche Berechnung mit fertiger Oberfläche: Synastrie in der AstroWay-App. Praktisch, wenn das Ergebnis jemandem gezeigt werden soll, der kein JSON liest.
Endpunkte
Abschnitt betitelt „Endpunkte“| Endpunkt | Credits | Was zurückgibt |
|---|---|---|
/v1/synastry | 50 | Cross-Aspects + Kompatibilitäts-Score |
/v1/composite | 50 | Kompositkarte (Mittelpunkte) |
/v1/davison | 50 | Davison-Karte (mittleres Datum) |
/v1/coalescent | 50 | Koaleszent-Karte |
/v1/group-synastry | 100 | Kompatibilitätsmatrix 2–10 Personen |
/v1/human-design/compatibility | 100 | HD-Kompatibilität |
Beispiel
Abschnitt betitelt „Beispiel“curl -X POST https://api.astroway.info/v1/synastry \ -H "X-Api-Key: aw_live_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "chart1": { "date": "1990-07-14", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52 }, "chart2": { "date": "1992-03-22", "time": "09:15:00", "timezoneOffset": 2, "latitude": 48.85, "longitude": 2.35 } }'const r = await fetch('https://api.astroway.info/v1/synastry', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ chart1: { date: '1990-07-14', time: '14:30:00', timezoneOffset: 3, latitude: 50.45, longitude: 30.52 }, chart2: { date: '1992-03-22', time: '09:15:00', timezoneOffset: 2, latitude: 48.85, longitude: 2.35 }, }),});const { data: result } = await r.json();
console.log(`Score: ${result.compatibility.score}/100`);console.log(`Label: ${result.compatibility.label}`);import os, requests
r = requests.post( 'https://api.astroway.info/v1/synastry', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'chart1': {'date': '1990-07-14', 'time': '14:30:00', 'timezoneOffset': 3, 'latitude': 50.45, 'longitude': 30.52}, 'chart2': {'date': '1992-03-22', 'time': '09:15:00', 'timezoneOffset': 2, 'latitude': 48.85, 'longitude': 2.35}, },)result = r.json()['data']print(f"Score: {result['compatibility']['score']}/100 ({result['compatibility']['label']})")<?phpuse GuzzleHttp\Client;
$aw = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $aw->post('synastry', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'chart1' => ['date' => '1990-07-14', 'time' => '14:30:00', 'timezoneOffset' => 3, 'latitude' => 50.45, 'longitude' => 30.52], 'chart2' => ['date' => '1992-03-22', 'time' => '09:15:00', 'timezoneOffset' => 2, 'latitude' => 48.85, 'longitude' => 2.35], ],]);$result = json_decode($r->getBody(), true)['data'];echo "Score: {$result['compatibility']['score']}/100 ({$result['compatibility']['label']})\n";Beispielantwort (Kompatibilität)
Abschnitt betitelt „Beispielantwort (Kompatibilität)“{ "compatibility": { "score": 51, "label": "mixed", "harmony": 15.8, "tension": 16.8, "top": [ { "aspect": { "planet1": "Venus", "planet2": "Moon", "type": { "name": "Square", "angle": 90 } }, "strength": 2.09, "sign": -1 } ] }}Nutzungsszenarien
Abschnitt betitelt „Nutzungsszenarien“Dating-Apps
Abschnitt betitelt „Dating-Apps“Aufruf von /v1/synastry beim Match – der Kompatibilitäts-Score als zusätzlicher Faktor für das Ranking. Caching des Ergebnisses pro Paar (gleiche Eingabe = gleiche Ausgabe).
Astrologische Anwendungen
Abschnitt betitelt „Astrologische Anwendungen“Umfassende Analyse: Synastrie + Kompositkarte + Davison-Karte. Drei Anfragen – 150 Credits, vollständiges Bild der Beziehungen.
Team-Tools
Abschnitt betitelt „Team-Tools“/v1/group-synastry mit 5 Personen – Matrix von 10 Paaren in einer Anfrage (100 Credits statt 500 einzeln).
Synastrie – 50 Credits. Auf dem Free-Tarif – 200 Synastrien pro Monat kostenlos.