Open API · v1.0.0

사상의학 API

Sasang Constitutional Medicine

The world's first open REST API for Korean Sasang constitutional medicine. Machine-readable clinical knowledge from a 130-year-old tradition.

Free Static JSON No auth No rate limits CC BY 4.0

The Four Constitutional Types

Sasang constitutional medicine (사상의학) was systematized by Korean physician Lee Je-ma (이제마) in his 1894 text Donguisusebowon (동의수세보원). It classifies all people into four constitutional types — each with distinct physiology, metabolism, personality, and responses to food and herbs.

Tae-Yang
태양인 · 太陽人
Greater Yang · Visionary · Rare
< 1% of population
So-Yang
소양인 · 少陽人
Lesser Yang · Hot · Fast
~30% of population
Tae-Eum
태음인 · 太陰人
Greater Yin · Enduring · Steady
~50% of population
So-Eum
소음인 · 少陰人
Lesser Yin · Cold · Precise
~20% of population

Quick Start

No API key. No registration. Just fetch.

JavaScript
// Get So-Yang constitutional profile
const res = await fetch('https://peaceakame.github.io/sasang-api/api/type/so-yang.json');
const type = await res.json();

console.log(type.tagline);
// → "Runs hot · Moves fast · Feels everything loudly"

console.log(type.diet.ginseng);
// → "avoid"

console.log(type.diet.ginseng_reason);
// → "Ginseng is a warming herb that raises internal heat..."
Python
import requests

r = requests.get('https://peaceakame.github.io/sasang-api/api/herb/ginseng.json')
ginseng = r.json()

for type_id, info in ginseng['constitutional_guidance'].items():
    print(f"{type_id}: {info['recommendation']}")

# tae-yang: strictly_avoid
# so-yang: avoid
# tae-eum: moderate_benefit
# so-eum: highly_beneficial

Endpoints

EndpointDescription
/api/type/index.jsonAll four types — summary with organ balance and thermal nature
/api/type/tae-yang.jsonTae-Yang full profile (diet, herbs, skincare, personality, health)
/api/type/so-yang.jsonSo-Yang full profile
/api/type/tae-eum.jsonTae-Eum full profile
/api/type/so-eum.jsonSo-Eum full profile
/api/foods/index.jsonFood recommendations by constitutional type
/api/skincare/index.jsonSkincare ingredients with constitutional compatibility ratings
/api/herb/index.jsonHerb compatibility guide — quick ratings for key herbs
/api/herb/ginseng.jsonGinseng: detailed safety profile by constitution with alternatives
/api/symptoms/index.jsonSymptom → constitutional type mapping with mechanisms

Why This Exists

Korea built a $754M ginseng export industry while its own medical tradition says approximately 30% of people should actively avoid it and another 50% should use it cautiously. The Sasang framework explains why the same herb, diet, or skincare ingredient works brilliantly for one person and causes adverse reactions in another.

This API makes that clinical knowledge machine-readable for the first time.

Ginseng Constitutional Safety

TypeRecommendationWhy
So-Eum 소음인 ✅ Highly Beneficial Provides the warmth and digestive support this cold type lacks
Tae-Eum 태음인 ⚠️ Moderate Benefit Tolerable, but may promote stagnation without dispersing herbs
So-Yang 소양인 ❌ Avoid Adds heat to an already hot constitution
Tae-Yang 태양인 🚫 Strictly Avoid Maximum Yang + warming tonic = dangerous heat accumulation

Use Cases

Wellness AppsPersonalized supplement and diet recommendations
K-Beauty ToolsIngredient compatibility engines for constitutional skincare
Nutrition TrackersConstitutional food guidance layer
Academic ResearchStructured traditional medicine data for studies
Herb SafetyFlag herb–constitution conflicts before purchase
Cultural HeritageKorean medicine knowledge preservation

Setup (GitHub Pages)

  1. Fork or clone this repository
  2. Go to repo Settings → Pages
  3. Set source to main branch, root directory
  4. Your API is live at https://YOUR-USERNAME.github.io/sasang-api/

All endpoints are static JSON files served directly by GitHub Pages — no server, no database, no build step.

Attribution & License

Data derived from the Sasang constitutional medicine tradition codified by Lee Je-ma (이제마) in Donguisusebowon, 1894.

Compiled and structured by hanbangtype.com — the most user-friendly English-language resource for Sasang constitutional medicine.

License: CC BY 4.0 — Free to use, modify, and distribute with attribution.

"attribution": "Sasang Constitutional Medicine API — hanbangtype.com"
Disclaimer: Educational information only. Not medical advice. For constitutional diagnosis, consult a licensed Korean medicine practitioner (한의사).