السيناستري
نقطة النهاية POST /v1/synastry تقارن خريطتين ولادتين: تحسب الجوانب المتقاطعة بين كواكب الشخصين وتعيد درجة التوافق. التكلفة: 50 ائتمان (Tier 3).
معلمات الطلب
Section titled “معلمات الطلب”| المعامل | النوع | إلزامي | الوصف |
|---|---|---|---|
chart1 | object | نعم | بيانات الشخص الأول |
chart2 | object | نعم | بيانات الشخص الثاني |
كل كائن يحتوي على: date, time, timezoneOffset, latitude, longitude, houseSystem, name, city.
مثال على الطلب
Section titled “مثال على الطلب”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 { data: 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()['data']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)['data'];print_r($result['compatibility']);مثال على الاستجابة
Section titled “مثال على الاستجابة”{ "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": 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 } ] }}حقل compatibility
Section titled “حقل compatibility”| الحقل | النوع | الوصف |
|---|---|---|
score | number | الدرجة العامة من 0 إلى 100 |
label | string | harmonious, balanced, mixed, challenging |
harmony | number | مجموع مرجّح للجوانب التي اعتبرتها النموذج متناسقة |
tension | number | مجموع مرجّح للجوانب التي اعتبرتها النموذج مشدودة |
top | array | أهم خمسة جوانب حسب الدرجة، لكل منها strength و sign (1 تناغم، -1 توتر) |
نقاط النهاية المرتبطة
Section titled “نقاط النهاية المرتبطة”| نقطة النهاية | الائتمانات | ما الذي يضيفه |
|---|---|---|
/v1/composite | 50 | خريطة مركبة (نقاط متوسطة) |
/v1/davison | 50 | خريطة دافيسون (تاريخ متوسط) |
/v1/coalescent | 50 | خريطة متماسكة |
/v1/group-synastry | 100 | مصفوفة توافق 2–10 أشخاص |
/v1/human-design/compatibility | 100 | توافق HD |
التالي
Section titled “التالي”- الخريطة الولادية: طلب أساسي
- العبورات: تراكب عبوري
- Human Design: خريطة HD كاملة
- مرجع API: جميع 771 نقاط النهاية
هل كان مفيدًا؟
شكرًا على ملاحظاتك.