首页

API 文档

探索完整的占星 API,支持西方占星、吠陀占星和中文命理系统。每个 endpoint 都包含 Python、PHP 和 Node.js 示例代码。

更喜欢引导式 Postman 流程?Fork 公开的 Start Here collection,并从可用于生产的请求集开始。

快速开始

30 秒内构建第一个请求

Base URL: https://api.freeastroapi.com

获取 API Key
curl
curl -X POST 'https://api.freeastroapi.com/api/v1/natal/calculate' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_KEY' \
  -d '{"year":1990,"month":5,"day":15,"hour":14,"minute":30,"city":"New York"}'
请求头: x-api-key 必需通过 HTTPS 安全访问状态

Base URL

https://api.freeastroapi.com

全部接口

快速开始