Synastrie
Еndpoint POST /v1/synastry porovnává dvě nativní mapy: vypočítává zkřížené aspekty mezi planetami obou lidí a vrací skóre kompatibility. Cena: 50 kreditů (Tier 3).
Parametry požadavku
Sekce “Parametry požadavku”Dva vnořené objekty chart1 a chart2, každý se stejnými parametry jako /v1/chart:
| Parametr | Typ | Povinný | Popis |
|---|---|---|---|
chart1 | object | Ano | Data první osoby |
chart2 | object | Ano | Data druhé osoby |
Každý objekt: date, time, timezoneOffset, latitude, longitude, houseSystem, name, city.
Příklad požadavku
Sekce “Příklad požadavku”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.4501, "longitude": 30.5234, "name": "Person A" }, "chart2": { "date": "1992-03-22", "time": "09:15:00", "timezoneOffset": 2, "latitude": 48.8566, "longitude": 2.3522, "name": "Person B" } }'const body = { chart1: { date: '1990-07-14', time: '14:30:00', timezoneOffset: 3, latitude: 50.4501, longitude: 30.5234, name: 'Person A' }, chart2: { date: '1992-03-22', time: '09:15:00', timezoneOffset: 2, latitude: 48.8566, longitude: 2.3522, name: 'Person B' },};const res = await fetch('https://api.astroway.info/v1/synastry', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Api-Key': process.env.ASTROWAY_API_KEY!, }, body: JSON.stringify(body),});const result = await res.json();console.log(result.compatibility);console.log(result.crossAspects.length);import os, requests
body = { 'chart1': {'date': '1990-07-14', 'time': '14:30:00', 'timezoneOffset': 3, 'latitude': 50.4501, 'longitude': 30.5234, 'name': 'Person A'}, 'chart2': {'date': '1992-03-22', 'time': '09:15:00', 'timezoneOffset': 2, 'latitude': 48.8566, 'longitude': 2.3522, 'name': 'Person B'},}r = requests.post( 'https://api.astroway.info/v1/synastry', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json=body,)result = r.json()print(result['compatibility'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->post('synastry', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'chart1' => [ 'date' => '1990-07-14', 'time' => '14:30:00', 'timezoneOffset' => 3, 'latitude' => 50.4501, 'longitude' => 30.5234, 'name' => 'Person A', ], 'chart2' => [ 'date': '1992-03-22', 'time': '09:15:00', 'timezoneOffset': 2, 'latitude': 48.8566, 'longitude': 2.3522, 'name': 'Person B', ], ],]);
$result = json_decode($r->getBody(), true);print_r($result['compatibility']);Příklad odpovědi
Sekce “Příklad odpovědi”{ "chart1": { "input": { "date": "1990-07-14", "name": "Person A" }, "planets": [ ... ], "houses": { ... }, "aspects": [ ... ] }, "chart2": { "input": { "date": "1992-03-22", "name": "Person B" }, "planets": [ ... ], "houses": { ... }, "aspects": [ ... ] }, "crossAspects": [ { "planet1": "Sun", "planet2": "Venus", "chart1Planet": "Sun", "chart2Planet": "Venus", "type": "trine", "orb": 2.14, "applying": false }, { "planet1": "Moon", "planet2": "Mars", "chart1Planet": "Moon", "chart2Planet": "Mars", "type": "square", "orb": 0.87, "applying": true } ], "compatibility": { "score": 72, "label": "harmonious", "harmony": 18.5, "tension": 7.2 }}Pole compatibility
Sekce “Pole compatibility”| Pole | Typ | Popis |
|---|---|---|
score | number | Celkové skóre 0–100 |
label | string | harmonious, balanced, mixed, challenging |
harmony | number | Vážený součet harmonických aspektů (trine, sextile) |
tension | number | Vážený součet napjatých aspektů (square, opposition) |
Související endpointy
Sekce “Související endpointy”| Endpoint | Kredity | Co přidává |
|---|---|---|
/v1/composite | 50 | Kompozitní mapa (střední body) |
/v1/davison | 50 | Davisonova mapa (střední datum) |
/v1/coalescent | 50 | Koalescentní mapa |
/v1/group-synastry | 100 | Maticová kompatibilita 2–10 lidí |
/v1/human-design/compatibility | 100 | HD-kompatibilita |
Další kroky
Sekce “Další kroky”- Nativní mapa — základní požadavek
- Transity — transitní překryv
- Human Design — úplná HD-mapa
- API reference — všechny 723 endpointy
Užitečné?
Děkujeme za zpětnou vazbu.