# 나탈 차트

`POST /v1/chart` 엔드포인트는 대부분의 요청의 기반입니다. 완전한 natal 차트를 반환합니다: 행성의 위치, 하우스 쿠스프, 행성 간의 aspects, 차트의 sect. 비용: **20 크레딧** (Tier 2).

## 요청 매개변수

| 매개변수 | 타입 | 필수 | 설명 |
|---|---|---|---|
| `date` | string | 예 | 생년월일 `YYYY-MM-DD` |
| `time` | string | 예 | 출생 시간 `HH:mm:ss` |
| `timezoneOffset` | number | 예 | UTC 기준 시차(예: 여름 Киев은 `2`) |
| `latitude` | number | 아니오 (0) | 소수점 단위의 위도 |
| `longitude` | number | 아니오 (0) | 소수점 단위의 경도 |
| `houseSystem` | string | 아니오 (`P`) | 하우스 시스템: `P` Placidus, `K` Koch, `W` Whole Sign, `E` Equal 및 [기타](/docs/api/) |
| `name` | string | 아니오 | 이름(응답에 포함됨) |
| `city` | string | 아니오 | 도시(응답에 포함됨) |
| `zodiacType` | string | 아니오 | `tropical`(기본값) 또는 `sidereal` |
| `cosmogram` | boolean | 아니오 | `true` — 하우스 없이(장소를 모를 때) |

## 요청 예시

키예프, 1990년 7월 14일, 14:30 natal 차트:

<Tabs syncKey="lang">
  <TabItem label="cURL">
    ```bash frame="terminal"
    curl -X POST https://api.astroway.info/v1/chart \
      -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,
        "houseSystem": "P"
      }'
    ```
  </TabItem>
  <TabItem label="Node.js">
    ```ts
    const res = await fetch('https://api.astroway.info/v1/chart', {
      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,
        houseSystem: 'P',
      }),
    });
    const chart = await res.json();
    console.log(chart.planets[0]); // Sun position
    ```
  </TabItem>
  <TabItem label="Python">
    ```python

    r = requests.post(
        'https://api.astroway.info/v1/chart',
        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,
            'houseSystem': 'P',
        },
    )
    chart = r.json()
    print(chart['planets'][0])  # Sun position
    ```
  </TabItem>
  <TabItem label="PHP">
    ```php
    <?php
    use GuzzleHttp\Client;

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

    $chart = json_decode($r->getBody(), true);
    print_r($chart['planets'][0]); // Sun position
    ```
  </TabItem>
</Tabs>

## 응답 예시

```json
{
  "input": {
    "date": "1990-07-14",
    "time": "14:30:00",
    "timezoneOffset": 3,
    "latitude": 50.4501,
    "longitude": 30.5234,
    "houseSystem": "P"
  },
  "julianDay": 2448087.979166,
  "siderealTime": 8.234,
  "planets": [
    {
      "name": "Sun",
      "longitude": 111.87,
      "latitude": 0.0,
      "speed": 0.955,
      "sign": "cancer",
      "signIndex": 3,
      "house": 10,
      "retrograde": false
    },
    {
      "name": "Moon",
      "longitude": 87.23,
      "latitude": -4.2,
      "speed": 13.3,
      "sign": "gemini",
      "signIndex": 2,
      "house": 8,
      "retrograde": false
    }
  ],
  "houses": {
    "system": "P",
    "cusps": [12.34, 43.21, 72.56, 100.12, 130.45, 162.78, 192.34, 223.21, 252.56, 280.12, 310.45, 342.78],
    "ascendant": 12.34,
    "mc": 280.12
  },
  "aspects": [
    {
      "planet1": "Sun",
      "planet2": "Moon",
      "type": "sextile",
      "orb": 1.36,
      "applying": true
    }
  ],
  "chartSect": "diurnal"
}
```

<Aside type="note">
응답이 간결하게 표시됩니다. 전체 응답에는 모든 12개 행성(Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto + North Node, Chiron), 12개의 하우스 쿠스프 및 그들 간의 모든 aspects가 포함됩니다.
</Aside>

## 하우스 시스템

| 코드 | 시스템 | 비고 |
|---|---|---|
| `P` | Placidus | 기본값, 가장 인기 많음 |
| `K` | Koch | 독일에서 인기 |
| `W` | Whole Sign | 고전 헬레니즘 |
| `E` | Equal | ASC로부터의 등분 |
| `R` | Regiomontanus | 호라르 점성술 |
| `C` | Campanus | 공간적 시스템 |
| `T` | Topocentric | 폴리치-페이지 |
| `B` | Alcabitius | 중세 전통 |

15개 시스템의 전체 목록은 [API reference](/docs/api/)에서 확인하세요.

## 코스모그램(출생 장소 없음)

장소를 모를 때 출생 시간이Known 경우 `"cosmogram": true`를 전달하세요. 하우스와 ASC/MC는 계산되지 않으며 크레딧도 동일(20)입니다.

## 응답 헤더

```
X-Credits-Used: 20
X-Credits-Remaining: 4980
X-Credits-Reset: 2026-05-01T00:00:00Z
X-Request-Id: 01HXY2A7ZM...
```

## 다음 단계

- [시나스트리](/examples/synastry/) — 두 차트의 호환성
- [트랜짓](/examples/transits/) — 트랜짓 오버레이 및 이벤트 캘린더
- [휴먼 디자인](/examples/human-design/) — 완전한 HD 차트
- [전체 API reference](/docs/api/) — 모든 {siteMeta.endpoints} 엔드포인트
