シナストリー & 相性 API
人の相性分析に特化したエンドポイントを完全網羅 — クラシックなシナストリーから10人までのグループ行列まで。
計算される内容
Section titled “計算される内容”- クロスアスペクト — 2人のホロスコープ間の惑星同士のアスペクト(例:Sun-Venus trine、Moon-Mars square など)
- 相性スコア — 0~100の数値スコアとラベル(harmonious、balanced、mixed、challenging)
- Harmony/Tension — 調和的なアスペクトと緊張的なアスペクトの加重合計
- コンポジットチャート — 2人の惑星の中点
- ダビソンチャート — 中間の日時と座標によるチャート
- グループ行列 — 2~10人の全ペアの相性行列
エンドポイント
Section titled “エンドポイント”| エンドポイント | クレジット | 戻り値 |
|---|---|---|
/v1/synastry | 50 | クロスアスペクト + 相性スコア |
/v1/composite | 50 | コンポジットチャート(ミッドポイント) |
/v1/davison | 50 | ダビソンチャート(中間日時) |
/v1/coalescent | 50 | コアレセントチャート |
/v1/group-synastry | 100 | 2~10人の相性行列 |
/v1/human-design/compatibility | 100 | HD相性 |
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(`スコア: ${result.compatibility.score}/100`);console.log(`ラベル: ${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"スコア: {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 "スコア: {$result['compatibility']['score']}/100 ({$result['compatibility']['label']})\n";応答例(compatibility)
Section titled “応答例(compatibility)”{ "compatibility": { "score": 72, "label": "harmonious", "harmony": 18.5, "tension": 7.2 }}使用シナリオ
Section titled “使用シナリオ”デーティングアプリ
Section titled “デーティングアプリ”マッチング時に /v1/synastry を呼び出し、相性スコアをランキングの追加要素に。結果はキャッシュ可能(同じ入力 = 同じ出力)。
アストロロジーアプリ
Section titled “アストロロジーアプリ”完全分析:シナストリー + コンポジット + ダビソン。3回のリクエストで150クレジット、関係性の全体像を把握。
チームツール
Section titled “チームツール”5人で /v1/group-synastry を使うと、1回のリクエストで10ペアの行列を取得(500クレジットが100クレジットで済む)。
シナストリー — 50クレジット。Freeプランでは月200回まで無料。
参考になりましたか?
フィードバックありがとうございます。