Skip to content
Fourohtwo

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. 紫微斗數本命盤。

Base SepoliaAnsweringTestnet only
POSThttps://ziwei-agent-testnet.sageduke800.workers.dev/api/v1/natal

Uptime100% 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