# cn402.com - 中华玄学 API (Chinese Metaphysics APIs for AI agents) 八字、易经、中医、风水、黄历、占卜等中华传统玄学数据 API。 Chinese metaphysics data APIs: BaZi astrology, I-Ching, TCM, Feng Shui, almanac, divination. 按次付费 via x402 protocol (USDC on Base). 无需 API key、无需注册。 姊妹站 x402node.dev 提供工具/数据类 API (forex, crypto, on-chain, 538 endpoints)。 ## 支付方式 How to pay (x402, 3 steps) 1. 调用端点 - 返回 HTTP 402 与支付信息 2. 用 x402 支付 USDC (Base) 3. 带支付头重试 - 获得数据 All prices in USDC. Base URL: https://api.cn402.com Machine-readable: https://api.cn402.com/.well-known/x402 ## 端点 Endpoints (73 total) ### Fortune (15) GET /age/calc - $0.008 - Chinese age calculator, nominal age, xu sui, 虚岁, Chinese traditional age system, Asian age, lunar birthday, Chinese age vs Western age, how Params: birth (Birth (optional)); on (On (optional)) GET /almanac - $0.08 - Chinese almanac (老黄历, Tong Sheng, 黄历) for daily date selection. Params: date (Date YYYY-MM-DD (required)) GET /almanac/hours - $0.08 - Chinese auspicious hour selection, 择时, 时辰吉凶, 黄道吉时, lucky hours, best time of day, 嫁娶吉时. Params: date (Date YYYY-MM-DD (required)); activity (Activity (optional)) GET /almanac/month - $0.16 - Full-month Chinese almanac calendar, 老黄历月历, 黄历月历, monthly almanac, 每月宜忌, lucky days this month. Params: year (Year (required)); month (Month (required)) GET /almanac/select - $0.16 - Chinese auspicious date selection, 择日, 黄道吉日, 选吉日, pick a lucky day, wedding date, 嫁娶吉日, moving date, 开市吉日. Params: activity (Activity (required)); start (Start (optional)); days (Days (optional)) GET /festival/cn - $0.016 - Chinese festivals, lunar festivals, traditional Chinese holidays, Spring Festival Lunar New Year Chinese New Year, 春节, Mid-Autumn Festival, Params: year (Year (required)) GET /festival/today - $0.008 - Today Chinese festival lookup (今日节日). Params: date (Date YYYY-MM-DD (optional)) GET /jieqi - $0.016 - 24 Chinese solar terms, jieqi, 24节气, 节气日期, Chinese seasonal markers, Lichun Lixia Liqiu Lidong, Beginning of Spring, 立春 立夏, Chinese agricult Params: year (Year (required)) GET /lunar - $0.016 - Chinese lunar calendar conversion, solar to lunar date, Gregorian to Chinese lunar, 公历转农历, 农历日期转换, lunar date, Chinese date, sexagenary cycl Params: date (Date YYYY-MM-DD (required)) GET /sanfu/sanjiu - $0.016 - Chinese dog days, sanfu, 三伏, hottest period of year, Chinese coldest period, sanjiu, 三九, Chinese folk seasonal periods, Chinese medicine sea Params: year (Year (required)) GET /solar - $0.016 - Chinese lunar to solar conversion, lunar to Gregorian, 农历转公历, Chinese lunar date to Western calendar, reverse lunar calendar lookup. Params: year (Year (required)); month (Month (optional)); day (Day (optional)); leap (Leap (optional)) GET /timepoint - $0.016 - Chinese hour, shichen, 时辰, 12 traditional Chinese hours, zi chou yin mao chen si wu wei shen you xu hai, 子丑寅卯辰巳午未申酉戌亥, Chinese double hour, Params: target (Target lang (required)); from (Source format (optional)) GET /today - $0.08 - Chinese daily insight, today in Chinese calendar, 今日宜忌, today auspicious activities, today gan-zhi, today festival, today solar term. GET /today/full - $0.08 - Complete daily Chinese almanac in ONE call, 今日黄历, 老黄历, 黄历今日, tongsheng today, Chinese lunar calendar today. Params: date (Date YYYY-MM-DD (required)) GET /zodiac - $0.016 - Chinese zodiac, 12 zodiac animals, shengxiao, 生肖, Chinese zodiac year, Year of the Rat Ox Tiger Rabbit Dragon Snake Horse Goat Monkey Rooste Params: year (Year (required)) ### 八字 BaZi (10) GET /bazi/dayun - $0.16 - Major Luck Cycles, 大运, Da Yun, BaZi 10-year fortune periods, Chinese astrology life cycles, major luck pillars. Params: birth (Birth (required)); gender (Gender (optional)) GET /bazi/full - $0.32 - Complete BaZi reading, full Chinese astrology birth chart, 八字全分析, comprehensive Four Pillars analysis, sizhu wuxing shishen dayun nayin shen Params: birth (Birth (required)); gender (Gender (optional)) GET /bazi/nayin - $0.016 - Na Yin, 纳音, Sound of stems and branches, 60 jia-zi musical names, Chinese sexagenary cycle nayin, 海中金 沙中土, metal in sea sand earth etc. Params: birth (Birth (required)) GET /bazi/qiwang - $0.08 - Day Master strength evaluation (起旺, 旺衰) for BaZi Chinese astrology. Params: birth (Birth (required)) GET /bazi/shensha - $0.08 - Shen Sha, 神煞, BaZi auspicious and inauspicious stars, Chinese astrology spirit influences, Tian Yi Gui Ren 天乙贵人, Tao Hua 桃花, Yi Ma 驿马, noble Params: birth (Birth (required)) GET /bazi/shishen - $0.08 - Ten Gods, 十神, Shi Shen, BaZi ten relationship gods, 比劫食伤财官印, Friend Sibling Wealth Officer Resource Output. Params: birth (Birth (required)); gender (Gender (optional)) GET /bazi/sizhu - $0.16 - BaZi Four Pillars, 八字四柱, Chinese astrology birth chart, 生辰八字, heavenly stems earthly branches, 天干地支, year-month-day-hour pillars, Chinese na Params: birth (Birth (required)); gender (Gender (optional)) GET /bazi/wuxing - $0.032 - Five Elements analysis (五行, Wu Xing) for Chinese astrology. Params: birth (Birth (required)) GET /bazi/xiaoyun - $0.08 - Minor Luck, 小运, Xiao Yun, Chinese astrology annual fortune before Da Yun starts, child fortune periods. Params: birth (Birth (required)); gender (Gender (optional)); from (Source format (optional)); to (Target format (optional)) GET /bazi/yongshen - $0.16 - Useful God, 用神, Yong Shen, BaZi favorable element, what element to enhance for life balance, Chinese astrology core remedy, lucky element fo Params: birth (Birth (required)) ### 易经 I-Ching (10) GET /iching/bagua - $0.016 - Eight Trigrams, Ba Gua, 八卦, Pre-Heaven Post-Heaven, 先天八卦 后天八卦, Qian Kun Zhen Xun Kan Li Gen Dui, Heaven Earth Thunder Wind Water Fire Mounta Params: name (ENS name e.g. vitalik.eth (required)) GET /iching/coin - $0.08 - I Ching three-coin method, 摇卦, coin oracle, Three Coin Yi Jing, 铜钱占卜, traditional I Ching divination, changing lines coin toss, 本卦变卦 origina Params: seed (Seed (required)) GET /iching/divine - $0.16 - I Ching divination by question, 易经占卜问事, Yi Jing reading for specific question, contextual hexagram interpretation, structured oracle reading Params: question (Question (required)) GET /iching/full - $0.32 - Complete I Ching analysis, full hexagram reading, 易经全卦分析, hexagram with all relations changing lines yao text bagua trigrams complete in one GET /iching/hexagram - $0.016 - I Ching hexagram lookup, 卦象查询, 64 hexagrams reference, Yijing gua by number, King Wen sequence, Qian Kun Zhun Meng, 乾坤屯蒙, hexagram meaning, Params: num (Num (required)) GET /iching/list - $0.016 - I Ching 64 hexagrams full list, all Yijing gua, hexagram catalog, King Wen sequence, 易经六十四卦目录, 64 trigrams pairs. GET /iching/meihua - $0.08 - Plum Blossom Yi Numerology, 梅花易数, Mei Hua Yi Shu, Shao Yong divination method, number-based I Ching, 邵雍, Plum Blossom oracle, numerology hex Params: n1 (N1 (required)); n2 (N2 (optional)); n3 (N3 (optional)) GET /iching/random - $0.08 - I Ching random hexagram, Book of Changes random draw, random divination cast, 周易, 易经, 卦象随机, Yijing oracle, random 64 hexagrams, Chinese divi GET /iching/relations - $0.08 - Hexagram relations, 互卦 综卦 错卦, nuclear hexagram, inverse hexagram, opposite hexagram, I Ching transformation analysis, hexagram derived gua. Params: num (Num (required)) GET /iching/yao - $0.016 - I Ching line meaning, 爻辞, individual line text, yao ci, hexagram line by line, 初九 九二 九三, I Ching line interpretation. Params: gua (Gua (required)); yao (Yao (required)) ### 风水 Feng Shui (8) GET /fengshui/24shan - $0.08 - 24 Mountains compass, 二十四山, 24 Shan, Chinese geomancy compass divisions, luopan 24 directions, detailed compass reading, 15-degree compass s Params: degree (Degree (optional)); shan (Shan (required)) GET /fengshui/bagua-direction - $0.016 - Bagua direction mapping, 八卦方位, Eight Trigrams compass, Pre-Heaven Post-Heaven Bagua direction, 先天后天八卦方位, Qian Kun Zhen Xun Kan Li Gen Dui, H Params: direction (Direction (optional)) GET /fengshui/bed-direction - $0.08 - Lucky bed direction, 床位方向, Feng Shui bed placement, bedroom direction, sleeping direction, where to place bed, lucky head direction, 卧床方向, C Params: birth (Birth (optional)); gender (Gender (optional)) GET /fengshui/biorhythm - $0.016 - Biorhythm, personal biorhythm, 生物节律, physical emotional intellectual cycles, 23 28 33 day cycles, circadian fluctuation, personal energy cha Params: birth (Birth (optional)); on (On (optional)) GET /fengshui/business-direction - $0.08 - Business direction, shop entrance Feng Shui, 商铺方向, store door direction, business luck direction, 财位, wealth direction, 旺财方位, commercial Fen Params: birth (Birth (optional)); gender (Gender (optional)) GET /fengshui/direction - $0.016 - Feng Shui direction analysis, 风水方位, 8 cardinal directions, Chinese compass, luopan, 罗盘, lucky direction by birth, personal kua number direct Params: date (Date YYYY-MM-DD (optional)) GET /fengshui/feixing - $0.08 - Flying Stars, 玄空飞星, Xuan Kong Fei Xing, period 9 flying stars, 三元九运, Feng Shui period 1-9, 9-grid star chart, annual monthly flying stars, C Params: year (Year (required)); month (Month (optional)) GET /fengshui/move-day - $0.16 - Lucky moving day, Feng Shui moving date selection, 搬家择日, 入宅择吉, Chinese moving day calculator, auspicious move-in dates, housewarming date, y Params: birth (Birth (optional)); year (Year (required)); month (Month (optional)) ### 占卜 Divination (8) GET /zhanbu/digit-method - $0.032 - Number divination, 数字占卜, numerology oracle, digit-based fortune telling, lucky number derivation, Chinese number prediction. Params: number (Number (optional)) GET /zhanbu/liuren - $0.32 - Liu Ren divination, 六壬, Da Liu Ren, 大六壬, Heaven Earth oracle, 12 heavenly generals, 4 lessons 3 transmissions, 四课三传, Chinese astrological di Params: datetime (Datetime (optional)) GET /zhanbu/liuyao - $0.16 - Six Lines divination, 六爻占卜, Liu Yao, King Wen six-line method, 文王六爻, coin oracle, Yi Jing six-line reading, changing lines analysis, 六爻断卦, C Params: seed (Seed (optional)); question (Question (optional)) GET /zhanbu/measure-word - $0.08 - Chinese character divination, 测字, Ce Zi, Chinese hanzi divination, character oracle, decompose Chinese character for fortune, 字象, Chinese fo Params: char (Char (required)) GET /zhanbu/qianzi - $0.016 - Chinese temple fortune slip divination (求签, 签文, 抽签). Params: num (Num (required)) GET /zhanbu/qimen - $0.32 - Qi Men Dun Jia, 奇门遁甲, military divination, 9-palace 3-pan oracle, Chinese strategy divination, heaven door earth door human door, 八门九星八神, 8 Params: datetime (Datetime (optional)) GET /zhanbu/taiyi - $0.32 - Tai Yi Shen Shu, 太乙神数, Tai Yi divination, heavenly divination, national fate, Chinese cosmic numerology, 太乙九宫, nine-palace cosmic oracle. Params: datetime (Datetime (optional)) GET /zhanbu/zhougong - $0.08 - Chinese dream interpretation, 周公解梦, Zhou Gong dream dictionary, Chinese dream meaning, 解梦, dream omen, Chinese folk dream symbolism, what do Params: keyword (Keyword (optional)) ### 汉字 Hanzi (6) GET /hanzi/bihua - $0.008 - Chinese stroke count, hanzi strokes, 笔画, 笔画数, kanji stroke count, Chinese character total strokes, 汉字笔画数, Hanzi stroke counter. GET /hanzi/bushou - $0.008 - Chinese radical, hanzi radical, 部首, 部件, Chinese character component, 214 Kangxi radicals, 康熙字典部首, Hanzi structure analysis, Chinese root com GET /hanzi/pinyin - $0.008 - Chinese pinyin, hanzi to pinyin, Mandarin romanization, 拼音转换, Chinese phonetic, Hanyu Pinyin with tones, 普通话拼音, Chinese to Latin, Mandarin t Params: style (Style (optional)) GET /hanzi/s2t - $0.0022 - Simplified to Traditional Chinese converter, 简体转繁体, 简繁转换, mainland to Taiwan Chinese, Chinese character set conversion, GB to BIG5, OpenCC c GET /hanzi/t2s - $0.0022 - Traditional to Simplified Chinese, 繁体转简体, 繁简转换, Taiwan to mainland Chinese, BIG5 to GB, OpenCC traditional simplified, Chinese variant conve GET /hanzi/wuxing - $0.016 - Chinese character five elements, hanzi wuxing, 汉字五行, 字五行, character element attribute, metal wood water fire earth for hanzi, Chinese naming ### 民俗 Folklore (5) GET /folk/festival-custom - $0.016 - Chinese festival customs, 中国节日习俗, Chinese traditional festival, Spring Festival customs, Mid-Autumn Festival, Dragon Boat Festival, 春节 中秋 端午 Params: name (ENS name e.g. vitalik.eth (optional)); date (Date YYYY-MM-DD (optional)) GET /folk/lucky-color - $0.016 - Personal lucky colors, 个人幸运颜色, Chinese Feng Shui colors, 命理幸运色, BaZi lucky color, Five Elements color matching, 五行颜色, personal color Feng Sh Params: birth (Birth (optional)) GET /folk/lucky-number - $0.016 - Personal lucky numbers, 个人幸运数字, Chinese folk numerology, BaZi-based lucky digits, 命理幸运数字, Chinese numerology personal numbers, lucky digit f Params: birth (Birth (optional)) GET /folk/match-zodiac - $0.016 - Zodiac compatibility, Chinese zodiac matching, 生肖配对, Chinese astrology compatibility, 12 animal signs matching, 属相相配, Chinese horoscope comp Params: z1 (Z1 (required)); z2 (Z2 (optional)) GET /folk/name-meaning - $0.08 - chinese name meaning, what does chinese name mean, Chinese name meaning analysis, 中文名字分析, Chinese name Five Elements, hanzi name interpretat Params: surname (Surname (required)); given (Given (optional)) ### 中医 TCM (5) GET /tcm/bazi-health - $0.16 - TCM health by BaZi, Chinese medicine birth chart health analysis, 八字健康分析, TCM body constitution from BaZi, Five Elements health, 五行养生, perso Params: birth (Birth (required)) GET /tcm/constitution - $0.16 - TCM body constitution analysis (中医体质分析, 九种体质). Params: mode (Operation mode (optional)); answers (Answers (optional)) GET /tcm/herb - $0.016 - TCM herb lookup, Chinese herbal medicine, 中药, Chinese medicinal herbs, herb properties, herb meridian, herb temperature, 寒热温凉, herb taste, 酸 Params: name (ENS name e.g. vitalik.eth (optional)) GET /tcm/meridian - $0.016 - TCM meridian, Chinese medicine acupuncture meridian, 经络, 12 meridians, Lung Heart Pericardium Spleen Liver Kidney, 肺经心经, acupoints, meridian Params: name (ENS name e.g. vitalik.eth (required)) GET /tcm/season - $0.08 - TCM seasonal health, 四季养生, Chinese medicine seasonal therapy, spring liver, summer heart, autumn lung, winter kidney, 春养肝 夏养心 秋养肺 冬养肾, seaso Params: date (Date YYYY-MM-DD (optional)) ### 地理 Geo (4) GET /geo/cn/city - $0.008 - China city lookup, 中国城市查询, Chinese cities database, China city tier, 一线二线三线城市, China prefecture-level city, China city province, China city Params: name (ENS name e.g. vitalik.eth (required)) GET /geo/cn/province - $0.016 - China province lookup, 中国省份查询, Chinese provinces database, mainland China provinces, 34省级行政区, China admin divisions, China province capital, GET /geo/distance - $0.008 - Geographic distance calculation between two coordinates using haversine formula. Params: lat1 (Lat1 (optional)); lng1 (Lng1 (optional)); lat2 (Lat2 (optional)); lng2 (Lng2 (optional)) GET /geo/timezone - $0.008 - Timezone lookup by city, city timezone API, Chinese city timezone, city UTC offset, 时区查询, IANA timezone name, city local time, DST aware tim Params: lat (Lat (optional)); lng (Lng (optional)) ### Telegram (2) GET /tg/channel - $0.005 - 读取公开 Telegram 频道的最新消息。输入频道用户名,返回最近若干条消息的正文、发布时间、浏览量和消息链接。适用于电报频道监控、币圈快讯采集、KOL 动态追踪、舆情与信号分析。Read latest posts from a public Telegram channel: Params: channel (Telegram channel username, e.g. durov or telegram ); limit (Number of recent messages to return, 1-50 (default) GET /tg/scan - $0.02 - 在一批公开 Telegram 频道里按关键词扫描并给出热度信号。传 preset 一键选内置币圈频道库(news 英文快讯/whale 链上鲸鱼/cn 中文媒体/all),或自传频道。返回命中帖子、按频道聚合命中数、signal 热度(high/medium/low/quiet Params: preset (Optional. Pick a curated built-in crypto channel l); channels (Comma-separated list of public Telegram channel us); query (Keyword(s) to match in post text, case-insensitive); windowHours (Optional. Only return posts published within the l); limitPerChannel (Recent messages to scan per channel, 1-50 (default) --- Built for AI agents. https://cn402.com