Skip to content

トランジット

指定した期間にわたって、ネイタルチャートに対する惑星のトランジットとそのアスペクトを計算します。

トランジットの計算

日付範囲のトランジットを計算する:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-01T00:00",
    "transitDateEnd": "2024-01-31T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    }
  }'

パラメータ

パラメータ必須説明
birthDatestringはいYYYY-MM-DDTHH:mm形式の出生日時
birthLocationobjectはい緯度、経度、タイムゾーンを含む出生地
transitDateStartstringはいYYYY-MM-DDTHH:mm形式のトランジット期間開始
transitDateEndstringはいYYYY-MM-DDTHH:mm形式のトランジット期間終了
transitLocationobjectはい緯度、経度、タイムゾーンを含むトランジット地
houseSystemstringいいえハウスシステム(デフォルト:"placidus")
pointsarrayいいえ計算する天体ポイント
orbsobjectいいえアスペクトタイプ別のカスタムオーブ値
languagestringいいえテキストコンテンツの言語コード(デフォルト:"en")
includeTextbooleanいいえ解釈テキストを含める(デフォルト:false)
includeReadableEntitiesbooleanいいえ人間が読めるエンティティタイトルを含める(デフォルト:false)

位置オブジェクト

json
{
  "latitude": 51.5074,
  "longitude": -0.1278,
  "timezone": "Europe/London"
}

レスポンス

レスポンスには、トランジットクロッシング(惑星がサインやハウスに入退場する時)、トランジットハウス位置、トランジット惑星とネイタル惑星のアスペクト、チャートURLが含まれます。

json
{
  "data": {
    "crossings": [...],
    "transitHouses": [...],
    "aspects": [
      {
        "point1": "saturn",
        "point2": "sun",
        "aspect": "conjunction",
        "orb": 1.2,
        "applying": true
      }
    ],
    "charts": {
      "transit": {
        "title": "Transit Chart (Bi-wheel)",
        "url": "..."
      },
      "natal": {
        "title": "Natal Chart",
        "url": "..."
      }
    },
    "natalPoints": [...],
    "natalHouses": [...],
    "transitPoints": [...]
  }
}

カスタムオーブ

異なるアスペクトタイプにカスタムオーブ値を指定する:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-01T00:00",
    "transitDateEnd": "2024-01-31T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "orbs": {
      "conjunction": 3,
      "opposition": 3,
      "trine": 2,
      "square": 2
    }
  }'

解釈テキスト付き

トランジット計算に解釈テキストを含める:

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-15T00:00",
    "transitDateEnd": "2024-01-15T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "includeText": true,
    "language": "en"
  }'

iCalエクスポート

トランジットイベントをiCal(.ics)ファイルとしてエクスポートし、Googleカレンダー、Appleカレンダー、Outlookなどのカレンダーアプリにインポートできます。

POST /api/calc/transit/ical

bash
curl -X POST "https://api.astroapi.cloud/api/calc/transit/ical" \
  -H "X-Api-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "birthDate": "1990-06-15T14:30",
    "birthLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    },
    "transitDateStart": "2024-01-01T00:00",
    "transitDateEnd": "2024-03-31T23:59",
    "transitLocation": {
      "latitude": 51.5074,
      "longitude": -0.1278,
      "timezone": "Europe/London"
    }
  }' --output transits.ics

レスポンスは Content-Disposition: attachment; filename="transits.ics" を持つ text/calendar ファイルです。

パラメータ

iCalエクスポートは標準のトランジットエンドポイントと同じパラメータを受け入れ、さらに以下が追加されます:

パラメータ必須説明
aspectsarrayいいえアスペクトタイプでフィルタリング(例:["conjunction", "trine"]

TIP

ダウンロードした .ics ファイルをカレンダーアプリにインポートすると、各アスペクトの説明付きでトランジットイベントをカレンダーエントリとして確認できます。

AstroAPI Documentation