시나스트리
POST /v1/synastry 엔드포인트는 두 개의 출생 점성도를 비교합니다: 두 사람의 행성 간 크로스 어스펙트를 계산하고 호환성 점수를 반환합니다. 비용: 50 크레딧 (Tier 3).
요청 매개변수
섹션 제목: “요청 매개변수”두 개의 중첩된 객체 chart1과 chart2, 각각 /v1/chart와 동일한 매개변수를 가집니다:
| 매개변수 | 타입 | 필수 | 설명 |
|---|---|---|---|
chart1 | object | 예 | 첫 번째 사람의 데이터 |
chart2 | object | 예 | 두 번째 사람의 데이터 |
각 객체: date, time, timezoneOffset, latitude, longitude, houseSystem, name, city.
요청 예시
섹션 제목: “요청 예시”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']);응답 예시
섹션 제목: “응답 예시”{ "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 } ] }}호환성 필드
섹션 제목: “호환성 필드”| 필드 | 타입 | 설명 |
|---|---|---|
score | number | 총 점수 0–100 |
label | string | harmonious, balanced, mixed, challenging |
harmony | number | 모델이 조화로운 것으로 판단한 어스펙트의 가중 합 |
tension | number | 모델이 긴장되는 것으로 판단한 어스펙트의 가중 합 |
top | array | 점수별 상위 5개 어스펙트, 각각 strength와 sign 포함 (1 조화, -1 긴장) |
관련 엔드포인트
섹션 제목: “관련 엔드포인트”| 엔드포인트 | 크레딧 | 추가 기능 |
|---|---|---|
/v1/composite | 50 | 합성 점성도 (평균 지점) |
/v1/davison | 50 | 데이비슨 점성도 (평균 날짜) |
/v1/coalescent | 50 | 융합 점성도 |
/v1/group-synastry | 100 | 2–10명의 호환성 매트릭스 |
/v1/human-design/compatibility | 100 | HD 호환성 |
다음 단계
섹션 제목: “다음 단계”- 출생 점성도: 기본 요청
- 트랜짓: 트랜짓 오버레이
- Human Design: 전체 HD 점성도
- API 참조: 모든 771 엔드포인트
도움이 되었나요?
피드백 감사합니다.