デーティングアプリ
占星術の相性は、Bumble、Hinge、Tinder、Tantan のようなデーティングアプリや、NUiT、Struck のような占星術ファーストのアプリで retention を高める要素です。AstroWay API は 1 回の呼び出しで 0〜100 のシナストリースコアをすぐに返します。独自の天体暦エンジンも Solar Fire のライセンス ($495) も必要ありません。
- ユーザーは登録時に出生日、出生時刻、出生地を入力します
- マッチ時: バックエンドが 2 人のデータで
/v1/synastryを呼び出します - API は
compatibility.score(0〜100) とlabel(harmonious/balanced/mixed/challenging) を返します - スコアはランキングの要素の 1 つとして使われます
Match algorithm ├── Location proximity (40%) ├── Interests overlap (30%) ├── Astrology compatibility (20%) ← AstroWay API └── Other signals (10%)主なエンドポイント
Section titled “主なエンドポイント”| エンドポイント | クレジット | 返す内容 |
|---|---|---|
/v1/synastry | 50 | クロスアスペクト + 0〜100 のスコア |
/v1/human-design/compatibility | 100 | HD の相性 (タイプ + ストラテジー) |
/v1/horoscope/compatibility | 50 | テキストによる相性の分析 |
インテグレーションのパターン
Section titled “インテグレーションのパターン”// Call synastry on matchasync function getCompatibility(userA: UserProfile, userB: UserProfile) { const result = await astrowayClient.synastry({ chart1: { date: userA.birthDate, time: userA.birthTime || '12:00:00', // noon default if unknown timezoneOffset: userA.tzOffset, latitude: userA.birthLat, longitude: userA.birthLng, }, chart2: { date: userB.birthDate, time: userB.birthTime || '12:00:00', timezoneOffset: userB.tzOffset, latitude: userB.birthLat, longitude: userB.birthLng, }, });
return { score: result.compatibility.score, // 0-100 label: result.compatibility.label, // "harmonious" harmony: result.compatibility.harmony, // weighted sum tension: result.compatibility.tension, };}予算の見積もり
Section titled “予算の見積もり”シナリオ: 1 日 1 000 件の新しいマッチ
Section titled “シナリオ: 1 日 1 000 件の新しいマッチ”| 指標 | 値 |
|---|---|
| マッチ/日 | 1 000 |
| クレジット/マッチ | 50 (synastry) |
| クレジット/日 | 50 000 |
| クレジット/月 | 約 1 500 000 |
| プラン | Business ($199/月、3 500 000 クレジット) |
シナリオ: 1 日 50 件のマッチ (スタートアップ)
Section titled “シナリオ: 1 日 50 件のマッチ (スタートアップ)”| 指標 | 値 |
|---|---|
| マッチ/日 | 50 |
| クレジット/日 | 2 500 |
| クレジット/月 | 約 75 000 |
| プラン | Starter ($19/月、200 000 クレジット) |
- キャッシュ: スコアを DB に保存し、再計算しない
- 遅延処理: 候補となるすべてのペアではなく、ユーザーがマッチを開いたときだけシナストリーを計算する
- 登録時のバッチ計算: 上位 20 件の候補との相性をまとめて計算する
出生時刻がない場合
Section titled “出生時刻がない場合”ユーザーが出生時刻を知らない場合は "time": "12:00:00" (正午) を渡してください。ハウスの精度は落ちますが、惑星の位置とクロスアスペクトは正確です。相性スコアは引き続き参考になります。
HD の相性では時刻がより重要です。不正確な時刻の影響を見積もるには hd/sensitivity を検討してください。
参考になりましたか?
フィードバックありがとうございます。