Skip to content

シナストリーとコンポジットチャート

関係分析のために2つのネイタルチャートを比較します。

シナストリー

2つのチャート間のアスペクトを計算する:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/synastry" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "dateTime1": "1990-06-15T14:30",
    "location1": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "dateTime2": "1988-03-22T09:15",
    "location2": {
      "latitude": 48.8566,
      "longitude": 2.3522,
      "timezone": "Europe/Paris"
    }
  }'
javascript
const response = await fetch("https://api.astroapi.cloud/api/calc/synastry", {
    method: "POST",
    headers: {
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    body: JSON.stringify({
        dateTime1: "1990-06-15T14:30",
        location1: {
            latitude: 51.5074,
            longitude: -0.1278,
            timezone: "Europe/London"
        },
        dateTime2: "1988-03-22T09:15",
        location2: {
            latitude: 48.8566,
            longitude: 2.3522,
            timezone: "Europe/Paris"
        }
    })
});

const data = await response.json();
console.log(JSON.stringify(data, null, 2));
python
import requests

response = requests.post(
    "https://api.astroapi.cloud/api/calc/synastry",
    headers={
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "dateTime1": "1990-06-15T14:30",
        "location1": {
            "latitude": 51.5074,
            "longitude": -0.1278,
            "timezone": "Europe/London"
        },
        "dateTime2": "1988-03-22T09:15",
        "location2": {
            "latitude": 48.8566,
            "longitude": 2.3522,
            "timezone": "Europe/Paris"
        }
    }
)

print(response.json())

レスポンス

レスポンスには双方向の相互アスペクトとチャート URL が含まれます:

json
{
  "data": {
    "aspects1to2": [
      {
        "pointA": "sun",
        "pointB": "moon",
        "aspect": "trine",
        "angle": 117.7,
        "orb": 2.3,
        "applying": true
      }
    ],
    "aspects2to1": [
      {
        "pointA": "venus",
        "pointB": "mars",
        "aspect": "conjunction",
        "angle": 1.4,
        "orb": 1.4,
        "applying": false
      }
    ],
    "charts": {
      "synastry": {
        "title": "Synastry Chart (Bi-wheel)",
        "description": "Person 1 (inner) + Person 2 (outer)",
        "url": "https://api.astroapi.cloud/api/chart2/natal.svg?..."
      },
      "person1": { "title": "Person 1 Natal", "description": "1990-06-15T14:30", "url": "..." },
      "person2": { "title": "Person 2 Natal", "description": "1988-03-22T09:15", "url": "..." }
    }
  }
}
  • aspects1to2 — 人物 1 の天体 (pointA) から人物 2 の天体 (pointB) へのアスペクト。
  • aspects2to1 — 逆方向の同じ内容。
  • orb はアスペクトの正確な角度からのずれです。applying はアスペクトが接近中の場合に true になります。

天体位置

シナストリーが返すのは相互アスペクトのみで、元となる 2 つのチャートは含まれません。各人の黄経・ハウス・アングルも必要な場合は、/api/calc/natal を 1 人につき 1 回呼び出してください。

コンポジットチャート

コンポジット(中点)チャートを生成する:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/composite" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "dateTime1": "1990-06-15T14:30",
    "location1": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "dateTime2": "1988-03-22T09:15",
    "location2": {
      "latitude": 48.8566,
      "longitude": 2.3522,
      "timezone": "Europe/Paris"
    },
    "compositeLocation": {
      "latitude": 50.1234,
      "longitude": 1.5678
    }
  }'
javascript
const response = await fetch("https://api.astroapi.cloud/api/calc/composite", {
    method: "POST",
    headers: {
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    body: JSON.stringify({
        dateTime1: "1990-06-15T14:30",
        location1: {
            latitude: 51.5074,
            longitude: -0.1278,
            timezone: "Europe/London"
        },
        dateTime2: "1988-03-22T09:15",
        location2: {
            latitude: 48.8566,
            longitude: 2.3522,
            timezone: "Europe/Paris"
        },
        compositeLocation: {
            latitude: 50.1234,
            longitude: 1.5678
        }
    })
});

const data = await response.json();
console.log(JSON.stringify(data, null, 2));
python
import requests

response = requests.post(
    "https://api.astroapi.cloud/api/calc/composite",
    headers={
        "X-Api-Key": "your-api-key",
        "Content-Type": "application/json"
    },
    json={
        "dateTime1": "1990-06-15T14:30",
        "location1": {
            "latitude": 51.5074,
            "longitude": -0.1278,
            "timezone": "Europe/London"
        },
        "dateTime2": "1988-03-22T09:15",
        "location2": {
            "latitude": 48.8566,
            "longitude": 2.3522,
            "timezone": "Europe/Paris"
        },
        "compositeLocation": {
            "latitude": 50.1234,
            "longitude": 1.5678
        }
    }
)

print(response.json())

デイビソンチャート

デイビソン関係チャート(時空間の中点)を計算する:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/davison" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "chart1": { ... },
    "chart2": { ... }
  }'

アスペクトスコアリング

シナストリーアスペクトに基づいて相性スコアを取得する:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/synastry/score" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "chart1": { ... },
    "chart2": { ... },
    "weights": {
      "sun": 10,
      "moon": 10,
      "venus": 8,
      "mars": 7
    }
  }'

AstroAPI Documentation