Zi Wei Dou Shu (紫微斗數) natal chart from a birth date and time
ziwei-agent-testnet.sageduke800.workers.dev/api/v1/natal
Zi Wei Dou Shu (紫微斗數) natal chart from a birth date and time: twelve palaces, stars with brightness, 四化, 大限 and 小限 ages. Output values are in Chinese. 紫微斗數本命盤。
POST
https://ziwei-agent-testnet.sageduke800.workers.dev/api/v1/natalUptime100% of 3 checks in 30 days
30 days agoToday
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(process.env.AGENT_KEY));
const res = await pay("https://ziwei-agent-testnet.sageduke800.workers.dev/api/v1/natal", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"birth":{"calendar":"solar","date":"1990-05-17","gender":"male","longitude":121.5,"time":"14:30","timezone":8,"trueSolarTime":true},"format":"both","lang":"zh-Hant"}),
});
console.log(await res.json());Example input
{
"birth": {
"calendar": "solar",
"date": "1990-05-17",
"gender": "male",
"longitude": 121.5,
"time": "14:30",
"timezone": 8,
"trueSolarTime": true
},
"format": "both",
"lang": "zh-Hant"
}More from ziwei-agentProvider status
- ziwei-agent.sageduke800.workers.dev/api/v1/natalZi Wei Dou Shu (紫微斗數) natal chart from a birth date and time: twelve palaces, stars with brightness, 四化, 大限 and 小限 ages. Output values are in Chinese. 紫微斗數本命盤。0.01
- ziwei-agent.sageduke800.workers.dev/api/v1/transitZi Wei Dou Shu (紫微斗數) transit chart for a target date and time: the natal chart plus 大限, 流年, 流月, 流日 and 流時 layers with 四化 and 流曜. Output values are in Chinese. 紫微斗數流運盤。0.05
