日本語

Oracle

SBTI 성격 유형 27종과 동물형 매핑(30개 언어 = 810개 동물명), OSS 만세력 기반 사주 데이터를 제공합니다. 외부 유료 API에 의존하지 않습니다.

개요

Oracle 모듈은 정적 데이터 중심으로 설계되어 호출당 비용이 거의 발생하지 않습니다. 성격 진단 앱, 데이팅 앱, 사주 콘텐츠 등에 즉시 통합할 수 있습니다.

SBTI 27 × 30언어

typescript
// 27개 유형 메타 조회
const types = await client.oracle.sbti.listTypes({ locale: 'ko' });

// 단일 유형 + 동물형
const result = await client.oracle.sbti.getType('LFEC', { locale: 'ko' });
// {
//   code: 'LFEC',
//   name: '신중한 거북이',     // 30개 언어별 동물명
//   description: '...',
//   compatibility: ['HVRO', 'LFEO']
// }

// 진단 결과 저장
await client.oracle.sbti.recordResult({
  userId: 'u_12345',
  answers: [3, 1, 4, 2, ...],   // 30문항
});

만세력

OSS 만세력 데이터 기반으로 양력 → 음력, 사주 사주(年月日時), 일주, 오행 분포를 제공합니다. 해석 텍스트는 포함하지 않으며, 데이터만 반환하므로 자체 콘텐츠로 가공할 수 있습니다.

bash
curl -H "X-API-Key: $KEY" \
  "https://api.moai.page/v1/oracle/saju?birth=1990-05-15T08:30:00&tz=Asia/Seoul"
json
{
  "lunar": { "year": 1990, "month": 4, "day": 21, "isLeap": false },
  "pillars": {
    "year":  { "stem": "庚", "branch": "午" },
    "month": { "stem": "辛", "branch": "巳" },
    "day":   { "stem": "丙", "branch": "戌" },
    "hour":  { "stem": "壬", "branch": "辰" }
  },
  "elements": { "wood": 0, "fire": 3, "earth": 2, "metal": 2, "water": 1 }
}

호환성 분석

typescript
const compat = await client.oracle.sbti.compatibility('LFEC', 'HVRO');
// { score: 82, reasons: ['...', '...'] }