목차
시작
시작하기
- 아틀리에에서 이용권을 고릅니다.
- 「키」 쪽에서 키를 발급합니다.
- 지원 범위 조회(과금 없음) 호출로 연결을 확인합니다.전체 주소
GET https://apis.lucela.kr/v1/fortune/capabilities경로GET /v1/fortune/capabilities - 사주팔자 계산 API 를 호출합니다(아래 「연동」).전체 주소
POST https://apis.lucela.kr/v1/fortune/chart경로POST /v1/fortune/chart
전체 주소https://apis.lucela.kr/v1경로/v1
연동
전체 주소POST https://apis.lucela.kr/v1/fortune/chart경로POST /v1/fortune/chart
키는 환경 변수 LUCELA_API_KEY
curl -sS -X POST 'https://apis.lucela.kr/v1/fortune/chart' \
-H "X-Lucela-API-Key: $LUCELA_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"birth": {"calendar": "solar", "date": "1990-01-15", "time": "09:30", "birth_place": {"tz": "Asia/Seoul", "longitude": 127.0}}, "options": {"jasi_method": "unified"}}'import os, uuid, requests
r = requests.post(
"https://apis.lucela.kr/v1/fortune/chart",
headers={
"X-Lucela-API-Key": os.environ["LUCELA_API_KEY"],
"Idempotency-Key": str(uuid.uuid4()), # 다시 보낼 때는 같은 값
},
json={
"birth": {
"calendar": "solar",
"date": "1990-01-15",
"time": "09:30",
"birth_place": {
"tz": "Asia/Seoul",
"longitude": 127.0
}
},
"options": {
"jasi_method": "unified"
}
},
timeout=10,
)
body = r.json()
if body["status"] != "ok":
raise RuntimeError(body["error"]["code"])
print(body["data"]["pillars"])const res = await fetch("https://apis.lucela.kr/v1/fortune/chart", {
method: "POST",
headers: {
"X-Lucela-API-Key": process.env.LUCELA_API_KEY,
"Idempotency-Key": crypto.randomUUID(), // 다시 보낼 때는 같은 값
"Content-Type": "application/json",
},
body: JSON.stringify({
"birth": {
"calendar": "solar",
"date": "1990-01-15",
"time": "09:30",
"birth_place": {
"tz": "Asia/Seoul",
"longitude": 127.0
}
},
"options": {
"jasi_method": "unified"
}
}),
});
const body = await res.json();
if (body.status !== "ok") throw new Error(body.error.code);
console.log(body.data.pillars);응답 봉투
성공과 오류가 같은 네 칸입니다 — status · data · error · meta.
요청 전체 주소POST https://apis.lucela.kr/v1/fortune/chart경로POST /v1/fortune/chart
{
"status": "ok",
"data": {
"pillars": {
"year": "己巳",
"month": "丁丑",
"day": "庚辰",
"hour": "庚辰"
},
"meta": {
"engine_id": "lucela-native",
"engine_version": "2026.10.21",
"calc_settings": {
"jasi_method": "unified",
"lunar_basis": "kasi",
"year_boundary": "ipchun_315deg",
"month_boundary": "jeonggi_solar_term",
"yongsin_method": "gyeokguk"
},
"source_code_hash": "999cb7a69ef76857",
"jasi_method": "unified",
"lunar_basis": "kasi",
"lunar_basis_name": "한국천문연구원",
"lunar_basis_is_default": true,
"solar_date": "1990-01-15",
"time_basis": "local_mean_time",
"birth_place": {
"tz": "Asia/Seoul",
"longitude": 127.0,
"city_code": null,
"source": "tz_longitude"
},
"clock": {
"utc_offset_min": 540,
"dst": false,
"standard_name": "동경 135도",
"offset_source": "korea_table"
}
}
},
"error": null,
"meta": {
"request_id": "00000000-0000-4000-8000-000000000000",
"environment": "SANDBOX",
"synthetic": true,
"schema_version": "2026-10-21",
"warnings": [],
"engine_version": "2026.10.21"
}
}계산 코어로 계산한 실제 결과입니다.
시험 입력
시험 키는 아래 입력만 받습니다. 그대로 복사해 birth 에 넣습니다.
{"calendar": "solar", "date": "1990-01-15", "time": "09:30", "birth_place": {"tz": "Asia/Seoul", "longitude": 127.0}}{"calendar": "solar", "date": "2000-02-29", "time": "23:30", "birth_place": {"tz": "Asia/Seoul", "longitude": 126.98}}{"calendar": "lunar", "date": "2020-04-10", "is_leap_month": true, "time": "12:00", "birth_place": {"tz": "Asia/Seoul", "longitude": 127.0}}{"calendar": "solar", "date": "1985-07-07"}{"calendar": "solar", "date": "1990-01-15", "time": "09:30", "sex_basis": "male", "birth_place": {"tz": "Asia/Seoul", "longitude": 127.0}}{"calendar": "solar", "date": "2000-02-29", "time": "23:30", "sex_basis": "female", "birth_place": {"tz": "Asia/Seoul", "longitude": 126.98}}{"calendar": "solar", "date": "1985-07-07", "sex_basis": "male", "birth_place": {"city_code": "서울 종로구"}}{"calendar": "solar", "date": "1990-01-15", "time": "09:30", "sex_basis": "male", "birth_place": {"city_code": "서울 종로구"}}