# Human Design

AstroWay APIには**12個のHuman Designエンドポイント**があります。これは商用APIの中で最も包括的なHDカバレッジです。主要なエンドポイント`POST /v1/human-design`では完全なマップを取得できます。料金： **50クレジット**（Tier 3）。

## 12個のHDエンドポイント

| エンドポイント | クレジット | 戻り値 |
|---|---|---|
| `/v1/human-design` | 50 | 完全なHDマップ：タイプ、戦略、オーソリティ、チャンネル、センター、プロファイル |
| `/v1/human-design/transits` | 50 | 指定日のHDトランジット |
| `/v1/human-design/compatibility` | 100 | 2つのHDマップの互換性 |
| `/v1/hd/incarnation-cross` | 50 | インカーショナルクロス |
| `/v1/hd/dream-rave` | 50 | Dream Raveマップ |
| `/v1/hd/hologenetic` | 50 | Hologenetic Profile |
| `/v1/hd/sensitivity` | 50 | 時間感度（生年時刻の変化がマップに与える影響） |
| `/v1/hd/circuitry` | 20 | サーキットリー解析 |
| `/v1/hd/penta` | 100 | Penta（3〜5人のグループダイナミクス） |
| `/v1/hd/group-overlay` | 100 | グループオーバーレイ |
| `/v1/hd/design-date` | 10 | Design日（出生前の太陽88°） |
| `/v1/hd/rave-new-years` | 10 | Rave New Yearの日付 |

## リクエスト例

パラメータは`/v1/chart`と同じです：

<Tabs syncKey="lang">
  <TabItem label="cURL">
    ```bash frame="terminal"
    curl -X POST https://api.astroway.info/v1/human-design \
      -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
      }'
    ```
  </TabItem>
  <TabItem label="Node.js">
    ```ts
    const res = await fetch('https://api.astroway.info/v1/human-design', {
      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,
      }),
    });
    const hd = await res.json();
    console.log(hd.type);       // e.g. "Generator"
    console.log(hd.strategy);   // e.g. "To Respond"
    console.log(hd.authority);  // e.g. "Sacral"
    console.log(hd.profile);    // e.g. "1/3"
    ```
  </TabItem>
  <TabItem label="Python">
    ```python

    r = requests.post(
        'https://api.astroway.info/v1/human-design',
        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,
        },
    )
    hd = r.json()
    print(hd['type'])       # e.g. "Generator"
    print(hd['strategy'])   # e.g. "To Respond"
    print(hd['authority'])  # e.g. "Sacral"
    print(hd['channels'])   # List of defined channels
    ```
  </TabItem>
  <TabItem label="PHP">
    ```php
    <?php
    use GuzzleHttp\Client;

    $client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);
    $r = $client->post('human-design', [
        '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,
        ],
    ]);

    $hd = json_decode($r->getBody(), true);
    echo $hd['type'];       // e.g. "Generator"
    echo $hd['strategy'];   // e.g. "To Respond"
    echo $hd['authority'];  // e.g. "Sacral"
    echo $hd['profile'];    // e.g. "1/3"
    ```
  </TabItem>
</Tabs>

## レスポンス例

```json
{
  "input": {
    "date": "1990-07-14",
    "time": "14:30:00",
    "timezoneOffset": 3,
    "latitude": 50.4501,
    "longitude": 30.5234
  },
  "type": "Generator",
  "strategy": "To Respond",
  "notSelfTheme": "Frustration",
  "authority": "Sacral",
  "profile": "1/3",
  "definition": "single",
  "cross": {
    "name": "Right Angle Cross of the Sphinx",
    "quarter": "Civilization",
    "gates": [1, 2, 7, 13]
  },
  "centers": [
    { "name": "Sacral", "defined": true },
    { "name": "Root", "defined": true },
    { "name": "SolarPlexus", "defined": false },
    { "name": "Heart", "defined": false },
    { "name": "Throat", "defined": true },
    { "name": "Ajna", "defined": false },
    { "name": "Head", "defined": false },
    { "name": "Spleen", "defined": true },
    { "name": "G", "defined": true }
  ],
  "channels": [
    { "gate1": 34, "gate2": 20, "name": "Channel of Charisma", "type": "Generated" }
  ],
  "personalityActivations": [
    { "gate": 1, "line": 3, "planet": "Sun", "side": "personality" }
  ],
  "designActivations": [
    { "gate": 2, "line": 5, "planet": "Sun", "side": "design" }
  ],
  "designJd": 2448000.123,
  "personalityJd": 2448087.979
}
```

<Aside type="note">
レスポンスには、すべての26アクティベーション（13 Personality + 13 Design）、すべての9センター、および定義済みチャンネルが含まれます。わかりやすくするために省略しています。
</Aside>

## 主要なレスポンスフィールド

| フィールド | タイプ | 説明 |
|---|---|---|
| `type` | string | Manifestor、Generator、Generator Xing (MG)、Projector、Reflector |
| `strategy` | string | 決断の戦略 |
| `authority` | string | 内的オーソリティ |
| `profile` | string | プロファイル（例：`"1/3"`、`"4/6"`） |
| `definition` | string | single、split、triple-split、quadruple-split |
| `cross` | object | インカーショナルクロス（名前、クォーター、4ゲート） |
| `centers` | array | 9センター（定義済み/オープンのフラグ付き） |
| `channels` | array | 定義済みチャンネル |
| `personalityActivations` | array | 13のPersonalityアクティベーション（意識的） |
| `designActivations` | array | 13のDesignアクティベーション（無意識的） |

## 次へ

- [ Natalチャート ](/examples/natal/) — 基本的なリクエスト
- [シナストリー](/examples/synastry/) — 2つのチャートの互換性
- [トランジット](/examples/transits/) — トランジットオーバーレイ
- [APIリファレンス](/docs/api/) — すべての{siteMeta.endpoints}エンドポイント
