トランジット
トランジットを扱うエンドポイントは2つです:
| エンドポイント | クレジット | 機能 |
|---|---|---|
POST /v1/transits | 50 | 特定の日付のトランジットチャート、出生時のロケーションに重ね合わせたもの |
POST /v1/transit-calendar | 100 | 日付範囲のトランジットイベントカレンダー |
まず完成した結果を確認したい場合は、AstroWay アプリのトランジット を参照してください。 同じ計算を行い、ホイールにオーバーレイを描画します。
POST /v1/transits: オーバーレイ
Section titled “POST /v1/transits: オーバーレイ”出生時ロケーションの座標で、指定されたトランジット日付の惑星位置を計算します。
出生図のすべてのパラメータ(date, time, timezoneOffset, latitude, longitude, houseSystem)に加えて:
| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
transitDate | string | はい | トランジット日付 YYYY-MM-DD |
transitTime | string | いいえ(12:00:00) | トランジット時間 HH:mm:ss |
transitTzOffset | number | いいえ (0) | トランジットのタイムゾーンオフセット |
curl -X POST https://api.astroway.info/v1/transits \ -H "X-Api-Key: aw_live_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "date": "1990-07-14", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.4501, "longitude": 30.5234, "transitDate": "2026-04-14", "transitTime": "12:00:00", "transitTzOffset": 3 }'const res = await fetch('https://api.astroway.info/v1/transits', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Api-Key': process.env.ASTROWAY_API_KEY!, }, body: JSON.stringify({ date: '1990-07-14', time: '14:30:00', timezoneOffset: 3, latitude: 50.4501, longitude: 30.5234, transitDate: '2026-04-14', transitTime: '12:00:00', transitTzOffset: 3, }),});const { data: transits } = await res.json();console.log(transits.planets); // Transit planet positionsimport os, requests
r = requests.post( 'https://api.astroway.info/v1/transits', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'date': '1990-07-14', 'time': '14:30:00', 'timezoneOffset': 3, 'latitude': 50.4501, 'longitude': 30.5234, 'transitDate': '2026-04-14', 'transitTime': '12:00:00', 'transitTzOffset': 3, },)transits = r.json()['data']print(transits['planets'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->post('transits', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'date' => '1990-07-14', 'time' => '14:30:00', 'timezoneOffset' => 3, 'latitude' => 50.4501, 'longitude' => 30.5234, 'transitDate' => '2026-04-14', 'transitTime' => '12:00:00', 'transitTzOffset' => 3, ],]);
$transits = json_decode($r->getBody(), true)['data'];print_r($transits['planets']);/v1/chart と同じ構造です - 惑星、ハウス、アスペクトを含む完全なチャートですが、トランジット日付に基づいて計算されます。
POST /v1/transit-calendar: イベントカレンダー
Section titled “POST /v1/transit-calendar: イベントカレンダー”日付範囲をスキャンし、トランジットイベントのリストを返します:トランジット惑星と出生惑星の正確なアスペクト、入星、逆行など。
追加パラメータ
Section titled “追加パラメータ”| パラメータ | 型 | 必須 | 説明 |
|---|---|---|---|
startDate | string | はい | 範囲開始日 YYYY-MM-DD |
endDate | string | はい | 範囲終了日 YYYY-MM-DD |
curl -X POST https://api.astroway.info/v1/transit-calendar \ -H "X-Api-Key: aw_live_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "natal": { "date": "1990-07-14", "time": "14:30:00", "timezoneOffset": 3, "latitude": 50.4501, "longitude": 30.5234 }, "startDate": "2026-04-01", "endDate": "2026-04-30" }'const r = await fetch('https://api.astroway.info/v1/transit-calendar', { method: 'POST', headers: { 'X-Api-Key': apiKey, 'Content-Type': 'application/json' }, body: JSON.stringify({ natal: { date: '1990-07-14', time: '14:30:00', timezoneOffset: 3, latitude: 50.4501, longitude: 30.5234, }, startDate: '2026-04-01', endDate: '2026-04-30', }),});const { data: calendar } = await r.json();
for (const event of calendar.events) { console.log(`${event.date}: #${event.transitPlanetId} ${event.aspect.name} #${event.natalPlanetId}`);}r = requests.post( 'https://api.astroway.info/v1/transit-calendar', headers={'X-Api-Key': apiKey}, json={ 'natal': { 'date': "1990-07-14", 'time': "14:30:00", 'timezoneOffset': 3, 'latitude': 50.4501, 'longitude': 30.5234, }, 'startDate': "2026-04-01", 'endDate': "2026-04-30" },)calendar = r.json()['data']
for event in calendar["events"]: print(f"{event['date']}: #{event['transitPlanetId']} {event['aspect']['name']} #{event['natalPlanetId']}")<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->post('transit-calendar', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'natal' => [ 'date' => '1990-07-14', 'time' => '14:30:00', 'timezoneOffset' => 3, 'latitude' => 50.4501, 'longitude' => 30.5234, ], 'startDate' => '2026-04-01', 'endDate' => '2026-04-30', ],]);
$calendar = json_decode($r->getBody(), true)['data'];foreach ($calendar['events'] as $e) { echo "{$e['date']}: #{$e['transitPlanetId']} {$e['aspect']['name']} #{$e['natalPlanetId']}\n";}レスポンス例
Section titled “レスポンス例”{ "startDate": "2026-04-01", "endDate": "2026-04-30", "maxOrb": 1, "count": 42, "events": [ { "jd": 2461132.97998, "date": "2026-04-02T11:31:10.000Z", "transitPlanetId": 2, "natalPlanetId": 9, "aspect": { "name": "Trine", "i18nKey": "aspect_trine", "angle": 120, "orb": 12, "symbol": "△", "isMajor": true, "color": "#3366cc" }, "transitLongitude": 345.005969, "natalLongitude": 225.005747, "isRetrograde": false } ]}関連エンドポイント
Section titled “関連エンドポイント”| エンドポイント | クレジット | 追加機能 |
|---|---|---|
/v1/forecast-calendar | 100 | 年間予測 - 365日分のヒートマップ |
/v1/progressions | 50 | 二次プログレッション |
/v1/solar-return | 50 | ソーラーリターン(年間チャート) |
/v1/aspect-timeline | 100 | 範囲内のアスペクトタイムライン |
- 出生図: 基本リクエスト
- シナストリー: 2枚のチャートの相性
- Human Design: 完全なHDチャート
- API リファレンス: すべての 758 エンドポイント
参考になりましたか?
フィードバックありがとうございます。