桃

桃小测 · 开放排盘 API

v1 · 免登录

九大命理体系无状态排盘接口 · 共 28 个端点 · 零鉴权直连

POST/api/v1/bazi

八字本命盘与大运流年

计算四柱八字、藏干、十神、纳音、十二长生、神煞、起运岁数、大运与流年(支持真太阳时与农历)。

免登录 · 零鉴权支持浏览器跨域(CORS: *)频率限制:60 次/分钟/IP

请求参数(JSON Body)

字段名类型必填默认值说明
yearinteger必填—出生年份(1900-2100)
monthinteger必填—月份(1-12)
dayinteger必填—日期(公历 1-31,农历 1-30)
hourinteger必填—小时(0-23)
minuteinteger可选0分钟(0-59)
secondinteger可选0秒(0-59)
calendarTypesolar | lunar可选"solar"历法:solar(公历)或 lunar(农历)
isLeapMonthboolean可选false是否闰月(仅 calendarType=lunar 时生效)
gendermale | female可选"male"性别:male(男)/ female(女)
sect1 | 2可选2晚子时流派:1 算明日,2 算当日(默认)
daYunLimitinteger可选—返回大运步数上限
liuNianLimitinteger可选—每步大运返回的流年数上限
includeLiuYueboolean可选false是否附带流月数据
longitudenumber可选—出生地经度(东经为正),传入即启用真太阳时修正
timezonenumber | string可选8时区,支持 UTC 偏移小时数(如 8)或 IANA 时区名(如 Asia/Shanghai),默认 8

在线调试

curl -sS -X POST "https://mingli.yujianhd.com/api/v1/bazi" \
  -H "Content-Type: application/json" \
  -d '{
  "year": 1995,
  "month": 8,
  "day": 15,
  "hour": 10,
  "minute": 30,
  "gender": "female",
  "calendarType": "solar",
  "longitude": 116.4074,
  "timezone": 8
}'