GET
实用工具
星座运势
星座运势 接口,点击查看请求参数与调用示例。
累计调用 13
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/xingzuo
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| msg | string | 必填 | 需要查询的星座 | 处女 |
响应示例
200 OK
抱歉,输入为空。
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/xingzuo?msg=%E5%A4%84%E5%A5%B3"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/xingzuo?msg=%E5%A4%84%E5%A5%B3");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/xingzuo?msg=%E5%A4%84%E5%A5%B3");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/xingzuo?msg=%E5%A4%84%E5%A5%B3", timeout=10)
print(r.json())