aov-mingyu-api
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAOV 命理与占卜 API
AOV Fortune-Telling & Divination API
使用 作为基础地址。所有接口返回统一 JSON:
https://aov.cc/api/v1json
{
"ok": true,
"data": {},
"meta": {
"service": "aov.cc",
"version": "v1"
}
}错误响应:
json
{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "错误说明"
},
"meta": {
"service": "aov.cc",
"version": "v1"
}
}Use as the base URL. All interfaces return a unified JSON format:
https://aov.cc/api/v1json
{
"ok": true,
"data": {},
"meta": {
"service": "aov.cc",
"version": "v1"
}
}Error response:
json
{
"ok": false,
"error": {
"code": "BAD_REQUEST",
"message": "Error description"
},
"meta": {
"service": "aov.cc",
"version": "v1"
}
}工作流
Workflow
- 先读取 或
GET /manifest确认接口能力。GET /openapi.json - 只需要结构化数据时,调用 或
/calculate排盘接口。/divination/{method} - 需要 AI 解读提示词时,优先调用对应 一站式接口,直接读取
/prompt和data.result;占卜类接口还会返回data.prompt。data.summary - 向用户展示结果时,说明这是排盘和提示词数据,不替代医疗、法律、投资等专业建议。
- First read or
GET /manifestto confirm interface capabilities.GET /openapi.json - When only structured data is needed, call the calculation interfaces such as or
/calculate./divination/{method} - When AI interpretation prompts are needed, prioritize calling the corresponding one-stop interface, and directly read
/promptanddata.result; divination interfaces will also returndata.prompt.data.summary - When presenting results to users, note that this is calculation and prompt data, and does not replace professional advice such as medical, legal, or investment advice.
常用接口
Common Interfaces
- :健康检查。
GET /health - :API 元数据、OpenAPI 地址和 skill 地址。
GET /manifest - :完整 OpenAPI JSON。
GET /openapi.json - :八字排盘。
POST /bazi/calculate - :八字排盘并生成结构化 AI 解读提示词。
POST /bazi/prompt - :紫微斗数排盘。
POST /ziwei/calculate - :紫微斗数排盘并生成结构化 AI 解读提示词。
POST /ziwei/prompt - :六爻起卦。
POST /divination/liuyao - :六爻起卦并生成结构化 AI 解读提示词。
POST /divination/liuyao/prompt - :梅花易数起卦。
POST /divination/meihua - :梅花易数起卦并生成结构化 AI 解读提示词。
POST /divination/meihua/prompt - :小六壬起课。
POST /divination/xiaoliuren - :小六壬起课并生成结构化 AI 解读提示词。
POST /divination/xiaoliuren/prompt - :奇门遁甲排盘。
POST /divination/qimen - :奇门遁甲排盘并生成结构化 AI 解读提示词。
POST /divination/qimen/prompt - :大六壬排盘。
POST /divination/liuren - :大六壬排盘并生成结构化 AI 解读提示词。
POST /divination/liuren/prompt - :塔罗抽牌。
POST /divination/tarot - :塔罗抽牌并生成结构化 AI 解读提示词。
POST /divination/tarot/prompt - :三山国王灵签求签。
POST /divination/ssgw - :三山国王灵签求签并生成结构化 AI 解读提示词。
POST /divination/ssgw/prompt - :黄历择日。
POST /divination/almanac - :黄历择日并生成结构化 AI 解读提示词。
POST /divination/almanac/prompt - :雷诺曼抽牌。
POST /divination/lenormand - :雷诺曼抽牌并生成结构化 AI 解读提示词。
POST /divination/lenormand/prompt - :星盘生成。
POST /divination/astrolabe - :星盘生成并生成结构化 AI 解读提示词。
POST /divination/astrolabe/prompt
- : Health check.
GET /health - : API metadata, OpenAPI URL and skill URL.
GET /manifest - : Complete OpenAPI JSON.
GET /openapi.json - : Bazi Calculation.
POST /bazi/calculate - : Bazi Calculation and generate structured AI interpretation prompt.
POST /bazi/prompt - : Zi Wei Dou Shu Calculation.
POST /ziwei/calculate - : Zi Wei Dou Shu Calculation and generate structured AI interpretation prompt.
POST /ziwei/prompt - : Liu Yao Divination.
POST /divination/liuyao - : Liu Yao Divination and generate structured AI interpretation prompt.
POST /divination/liuyao/prompt - : Meihua Yishu Divination.
POST /divination/meihua - : Meihua Yishu Divination and generate structured AI interpretation prompt.
POST /divination/meihua/prompt - : Xiao Liuren Divination.
POST /divination/xiaoliuren - : Xiao Liuren Divination and generate structured AI interpretation prompt.
POST /divination/xiaoliuren/prompt - : Qimen Dunjia Calculation.
POST /divination/qimen - : Qimen Dunjia Calculation and generate structured AI interpretation prompt.
POST /divination/qimen/prompt - : Da Liuren Calculation.
POST /divination/liuren - : Da Liuren Calculation and generate structured AI interpretation prompt.
POST /divination/liuren/prompt - : Tarot Card Drawing.
POST /divination/tarot - : Tarot Card Drawing and generate structured AI interpretation prompt.
POST /divination/tarot/prompt - : SSGW Spirit Lot Drawing.
POST /divination/ssgw - : SSGW Spirit Lot Drawing and generate structured AI interpretation prompt.
POST /divination/ssgw/prompt - : Chinese Almanac Date Selection.
POST /divination/almanac - : Chinese Almanac Date Selection and generate structured AI interpretation prompt.
POST /divination/almanac/prompt - : Lenormand Card Drawing.
POST /divination/lenormand - : Lenormand Card Drawing and generate structured AI interpretation prompt.
POST /divination/lenormand/prompt - : Astrolabe Generation.
POST /divination/astrolabe - : Astrolabe Generation and generate structured AI interpretation prompt.
POST /divination/astrolabe/prompt
请求示例
Request Examples
八字排盘:
bash
curl -X POST https://aov.cc/api/v1/bazi/calculate \
-H "Content-Type: application/json" \
-d '{"gender":"male","year":1990,"month":5,"day":15,"timeIndex":1,"dateType":"solar"}'紫微斗数排盘:
bash
curl -X POST https://aov.cc/api/v1/ziwei/calculate \
-H "Content-Type: application/json" \
-d '{"name":"测试","gender":"female","dateType":"solar","year":"1992","month":"8","day":"21","timeIndex":4}'八字排盘并生成提示词:
bash
curl -X POST https://aov.cc/api/v1/bazi/prompt \
-H "Content-Type: application/json" \
-d '{"gender":"male","year":1990,"month":5,"day":15,"timeIndex":1,"dateType":"solar","question":"我适合创业还是上班?","promptTopic":"career"}'紫微斗数排盘并生成提示词:
bash
curl -X POST https://aov.cc/api/v1/ziwei/prompt \
-H "Content-Type: application/json" \
-d '{"name":"测试","gender":"female","dateType":"solar","year":"1992","month":"8","day":"21","timeIndex":4,"question":"我的感情关系要注意什么?","promptTopic":"relationship","promptScope":"origin"}'塔罗抽牌:
bash
curl -X POST https://aov.cc/api/v1/divination/tarot \
-H "Content-Type: application/json" \
-d '{"spreadType":"single"}'塔罗抽牌并生成提示词:
bash
curl -X POST https://aov.cc/api/v1/divination/tarot/prompt \
-H "Content-Type: application/json" \
-d '{"spreadType":"single","question":"我近期事业应该注意什么?"}'黄历择日:
bash
curl -X POST https://aov.cc/api/v1/divination/almanac \
-H "Content-Type: application/json" \
-d '{"topic":"move","startDate":"2026-06-01","endDate":"2026-06-05","participants":[{"id":"self","name":"本人","gender":"男","year":1990,"month":1,"day":1,"timeIndex":12,"dateType":"solar"}]}'星盘生成:
bash
curl -X POST https://aov.cc/api/v1/divination/astrolabe \
-H "Content-Type: application/json" \
-d '{"name":"本人","gender":"女","year":1995,"month":5,"day":20,"hour":12,"minute":30,"latitude":39.9042,"longitude":116.4074,"timezone":8,"locationName":"北京"}'Bazi Calculation:
bash
curl -X POST https://aov.cc/api/v1/bazi/calculate \
-H "Content-Type: application/json" \
-d '{"gender":"male","year":1990,"month":5,"day":15,"timeIndex":1,"dateType":"solar"}'Zi Wei Dou Shu Calculation:
bash
curl -X POST https://aov.cc/api/v1/ziwei/calculate \
-H "Content-Type: application/json" \
-d '{"name":"测试","gender":"female","dateType":"solar","year":"1992","month":"8","day":"21","timeIndex":4}'Bazi Calculation and Generate Prompt:
bash
curl -X POST https://aov.cc/api/v1/bazi/prompt \
-H "Content-Type: application/json" \
-d '{"gender":"male","year":1990,"month":5,"day":15,"timeIndex":1,"dateType":"solar","question":"我适合创业还是上班?","promptTopic":"career"}'Zi Wei Dou Shu Calculation and Generate Prompt:
bash
curl -X POST https://aov.cc/api/v1/ziwei/prompt \
-H "Content-Type: application/json" \
-d '{"name":"测试","gender":"female","dateType":"solar","year":"1992","month":"8","day":"21","timeIndex":4,"question":"我的感情关系要注意什么?","promptTopic":"relationship","promptScope":"origin"}'Tarot Card Drawing:
bash
curl -X POST https://aov.cc/api/v1/divination/tarot \
-H "Content-Type: application/json" \
-d '{"spreadType":"single"}'Tarot Card Drawing and Generate Prompt:
bash
curl -X POST https://aov.cc/api/v1/divination/tarot/prompt \
-H "Content-Type: application/json" \
-d '{"spreadType":"single","question":"我近期事业应该注意什么?"}'Chinese Almanac Date Selection:
bash
curl -X POST https://aov.cc/api/v1/divination/almanac \
-H "Content-Type: application/json" \
-d '{"topic":"move","startDate":"2026-06-01","endDate":"2026-06-05","participants":[{"id":"self","name":"本人","gender":"男","year":1990,"month":1,"day":1,"timeIndex":12,"dateType":"solar"}]}'Astrolabe Generation:
bash
curl -X POST https://aov.cc/api/v1/divination/astrolabe \
-H "Content-Type: application/json" \
-d '{"name":"本人","gender":"女","year":1995,"month":5,"day":20,"hour":12,"minute":30,"latitude":39.9042,"longitude":116.4074,"timezone":8,"locationName":"北京"}'参数约定
Parameter Conventions
通用参数:
- :八字和紫微使用
gender或male;黄历择日和星盘使用female、男或空字符串。女 - :使用
dateType(阳历)或solar(农历)。lunar - :范围为
timeIndex到0,其中12为早子时,0为丑时,...,1为亥时,11为晚子时。12 - :布尔值,仅农历有效。
isLeapMonth - :布尔值,启用真太阳时校正。八字和紫微开启后需提供
useTrueSolarTime、birthHour、birthMinute,此时birthLongitude由程序自动换算;星盘开启后使用timeIndex、hour和minute校正。longitude
八字 支持以下主题:
(综合)、(近期)、(事业)、(跳槽)、(创业合作)、(投资合作)、(财运)、(婚恋)、(感情推进)、(关系去留)、(复合判断)、(子女)、(家庭)、(搬家置业)、(定居换城)、(人际合作)、(情绪心理)、(健康)、(父母)、(学业)、(考证进修)、(考试上岸)、(成长方向)、(天赋特质)。
promptTopicgeneralrecentcareerjob-changestartup-partnershipinvestment-partnershipwealthmarriagerelationship-pushrelationship-decisionreconciliation-decisionchildrenfamilyhome-movesettle-relocatesocialemotionhealthparentsstudystudy-advanceexam-landinggrowthtalent紫微 支持以下主题:
(命局)、(感情)、(感情推进)、(关系去留)、(事业财运)、(工作变动)、(创业合作)、(投资合作)、(近期趋势)、(六亲家庭)、(搬家置业)、(定居换城)、(人际合作)、(情绪心理)、(健康养护)、(学业成长)、(考证进修)、(考试上岸)、(成长方向)、(天赋特质)、(复合判断)、(人生解析)、(自由聊天)。
promptTopicdestinyrelationshiprelationship-pushrelationship-decisioncareer-wealthjob-changestartup-partnershipinvestment-partnershiprecentfamilyhome-movesettle-relocatesocialemotionhealthstudystudy-advanceexam-landinggrowthtalentreconciliation-decisionlifechat紫微 支持:(本命)、(大限)、(流年)、(流月)、(流日)、(流时)、(年龄)。
promptScopeorigindecadalyearlymonthlydailyhourlyagepromptModeframeworkcustom占卜通用参数:
- :带时区的 ISO 8601 时间字符串,例如
customDate;不提供则使用当前时间。2025-01-01T08:00:00+08:00 - :所有
question接口的必填字段,黄历择日/prompt中可不填。/prompt - :对象类型,占卜补充信息。
supplementaryInfo
各占卜方法特有参数:
- 梅花易数 :
method(时间起卦)、time(数字起卦)、number(随机起卦)、random(外应起卦)。external为method时需提供number(正整数);number为method时需提供external,至少两项可映射外应,并提供externalOmens作为动爻数量,例如count。{"direction":"南","object":"火电文书","count":3} - 小六壬 :
xiaoliurenMethod、time、number。random时需提供number(正整数)。xiaoliurenNumber - 塔罗 :
spreadType(单牌指引)、single(时间流)、three(爱情)、love(事业)、career(选择)。decision - 六爻 :
liuyaoTemplate(通用)、general(感情)、ganqing(事业)、shiye(财运)、caifu(鬼神怪异)。guaishen - 大六壬 :
liurenTemplate(通用)、general(感情)、ganqing(事业)、shiye(财富)。caifu - 黄历择日 :
topic(嫁娶)、marriage(搬家)、move(开业)、opening(签约)、contract(出行)、travel(求医)、medical(求学)、study(自定义)。custom - 黄历择日 、
startDate:日期范围字符串。endDate:参与者数组,每人包含participants、id、name、gender、year、month、day、timeIndex、dateType。isLeapMonth - 雷诺曼 :
spreadType、single、three、relationship、decision。nine - 星盘 、
year、month、day、hour:出生时间。minute、latitude:经纬度。longitude:时区偏移。timezone:地点名称。可传locationName启用真太阳时校正;提示词接口可传useTrueSolarTime和astrolabeTopic,用于写入本命、流年、流月或流日分析对象。astrolabeScopeText
General Parameters:
- : Use
genderormalefor Bazi and Zi Wei Dou Shu; usefemale,男or empty string for Chinese Almanac date selection and astrolabe.女 - : Use
dateType(solar calendar) orsolar(lunar calendar).lunar - : Range from
timeIndexto0, where12is early Zi Shi,0is Chou Shi, ...,1is Hai Shi,11is late Zi Shi.12 - : Boolean value, only valid for lunar calendar.
isLeapMonth - : Boolean value, enable true solar time correction. For Bazi and Zi Wei Dou Shu,
useTrueSolarTime,birthHour,birthMinuteare required after enabling, andbirthLongitudewill be automatically converted by the program; for astrolabe, correction is done usingtimeIndex,hourandminuteafter enabling.longitude
Supported for Bazi:
(Comprehensive), (Recent), (Career), (Job Change), (Startup Partnership), (Investment Partnership), (Wealth), (Marriage & Love), (Relationship Promotion), (Relationship Choice), (Reconciliation Judgment), (Children), (Family), (House Moving & Property Purchase), (Settle Down & Relocate), (Interpersonal Cooperation), (Emotion & Psychology), (Health), (Parents), (Study), (Certification & Further Study), (Exam Success), (Growth Direction), (Talent Traits).
promptTopicgeneralrecentcareerjob-changestartup-partnershipinvestment-partnershipwealthmarriagerelationship-pushrelationship-decisionreconciliation-decisionchildrenfamilyhome-movesettle-relocatesocialemotionhealthparentsstudystudy-advanceexam-landinggrowthtalentSupported for Zi Wei Dou Shu:
(Fate Chart), (Relationship), (Relationship Promotion), (Relationship Choice), (Career & Wealth), (Job Change), (Startup Partnership), (Investment Partnership), (Recent Trend), (Relatives & Family), (House Moving & Property Purchase), (Settle Down & Relocate), (Interpersonal Cooperation), (Emotion & Psychology), (Health Care), (Study & Growth), (Certification & Further Study), (Exam Success), (Growth Direction), (Talent Traits), (Reconciliation Judgment), (Life Analysis), (Free Chat).
promptTopicdestinyrelationshiprelationship-pushrelationship-decisioncareer-wealthjob-changestartup-partnershipinvestment-partnershiprecentfamilyhome-movesettle-relocatesocialemotionhealthstudystudy-advanceexam-landinggrowthtalentreconciliation-decisionlifechatSupported for Zi Wei Dou Shu:
(Native Chart), (Decade Luck), (Annual Luck), (Monthly Luck), (Daily Luck), (Hourly Luck), (Age).
promptScopeorigindecadalyearlymonthlydailyhourlyageSupported :
(Built-in complete framework, default), (Answer freely around user's question without framework).
promptModeframeworkcustomGeneral Parameters for Divination:
- : ISO 8601 time string with time zone, e.g.,
customDate; current time will be used if not provided.2025-01-01T08:00:00+08:00 - : Required field for all
questioninterfaces, optional for Chinese Almanac date selection/prompt./prompt - : Object type, supplementary information for divination.
supplementaryInfo
Method-Specific Parameters for Divination:
- Meihua Yishu :
method(Divination by time),time(Divination by number),number(Random divination),random(Divination by external omens). Whenexternalismethod,number(positive integer) is required; whennumberismethod,externalis required with at least two items mapping external omens, andexternalOmensas the number of moving lines, e.g.,count.{"direction":"南","object":"火电文书","count":3} - Xiao Liuren :
xiaoliurenMethod,time,number. Whenrandomis selected,number(positive integer) is required.xiaoliurenNumber - Tarot :
spreadType(Single Card Guidance),single(Timeline),three(Love),love(Career),career(Decision).decision - Liu Yao :
liuyaoTemplate(General),general(Relationship),ganqing(Career),shiye(Wealth),caifu(Supernatural).guaishen - Da Liuren :
liurenTemplate(General),general(Relationship),ganqing(Career),shiye(Wealth).caifu - Chinese Almanac Date Selection :
topic(Wedding),marriage(House Moving),move(Business Opening),opening(Contract Signing),contract(Travel),travel(Medical Treatment),medical(Study),study(Custom).custom - Chinese Almanac Date Selection ,
startDate: Date range strings.endDate: Array of participants, each includingparticipants,id,name,gender,year,month,day,timeIndex,dateType.isLeapMonth - Lenormand :
spreadType,single,three,relationship,decision.nine - Astrolabe ,
year,month,day,hour: Birth time.minute,latitude: Latitude and longitude.longitude: Time zone offset.timezone: Location name.locationNamecan be passed to enable true solar time correction; prompt interfaces can passuseTrueSolarTimeandastrolabeTopicto write analysis objects such as native chart, annual luck, monthly luck or daily luck.astrolabeScopeText