星座运势查询,数据来自 星座屋,如有侵权请联系删除
equalizer 累计使用:1811
请求地址 https://free.wqwlkj.cn/wqwlapi/xingzuo.php
请求示例 https://free.wqwlkj.cn/wqwlapi/xingzuo.php?name=狮子座&time=today&date=
请求方式 GET
返回格式 JSON
{
"name": "狮子座",
"time": "2025-09-20",
"type": "今日运势",
"interval": "07-23至08-22",
"characteristic": "聚焦眼前的事上",
"luckyColor": "青",
"luckNumber": 9,
"yi": "立足于当下",
"ji": "放大自己感受",
"luckyIndex": {
"all": "72%",
"love": "74%",
"work": "75%",
"money": "77%",
"health": "73%",
"discuss": "79%"
},
"info": {
"all": "整体运势一般般,你需要把目光聚焦在眼前的事上。生活中可能会有一些小干扰或者小诱惑,试图分散你的注意力,让你无法专注于当下正在做的事情。比如,手机上的各种消息、朋友突然的邀约等。但你要明白,只有专注于眼前的事,才能把事情做好,避免出现不必要的失误和麻烦。不要好高骛远,也不要被一些不切实际的想法所左右,脚踏实地地完成手头的任务才是最重要的。当你全身心地投入到一件事情中时,你会发现时间过得很快,而且还能从中获得一种成就感和满足感。这种专注的态度不仅能提高你的效率,还能让你更加了解自己的能力和潜力。所以,在这一天,学会屏蔽外界的干扰,静下心来,认真做好眼前的事,相信你会有所收获。",
"love": "单身的你,和心动对象的关系需要更多耐心培养,别急着推进到亲密阶段,从分享日常小事开始,慢慢建立信任感。已有伴者的你,和伴侣相处容易陷入平淡,试着一起做件没尝试过的事,比如玩桌游或学做手冲咖啡,新鲜感会重新点燃互动的热情。",
"work": "整体状态像在“平衡木上行走”,既需要展现能力,又要避免过度用力。你可能会遇到需要同时处理多件事的情况(比如工作学习兼顾、家庭事务协调),如果强行“全包全揽”,反而容易因精力分散而出错。试着把任务按优先级排序,先完成最重要的,再处理次要的,效率会更高。",
"money": "要多关注市场动态,这对你的财运很重要。市场变化可能会给你带来新的赚钱机会,也可能让你面临一些风险。所以,你要时刻留意相关信息,及时调整自己的理财策略。在消费上,也要保持理性,避免因为市场波动而做出冲动的投资或消费决策。",
"health": "要做好饮食的把关。避免吃太多油腻、辛辣的食物,这些食物容易加重肠胃负担,导致消化不良。可以选择一些清淡易消化的食物,如粥、面条等。同时,要注意饮食的规律性,定时定量进食,让肠胃能正常工作。"
},
"getLuck": null
}
参数名称 | 是否必需 | 参数说明 |
---|---|---|
name |
否 | 星座名字(包含座,如:狮子座)name和date二选一,如都传入name优先 |
time |
否 | 查询的时段 今日 today,明日 nextday,一周 week,本月 month,今年 year ,爱情 love 运势 |
date |
否 | 查询的月-日(如1-1),name和date二选一,如都传入name优先 |
参数名称 | 参数类型 | 参数说明 |
---|---|---|
name |
string |
星座名 |
time |
string |
查询的时段 |
type |
string |
查询的类型 |
characteristic |
string |
今日特征 |
luckyColor |
string |
幸运颜色 |
luckNumber |
string |
幸运数字 |
yi |
string |
宜事 |
ji |
string |
忌事 |
luckyIndex |
string |
幸运占比 |
info |
string |
幸运描述信息 |
getLuck |
string |
转运方法(查本年运势才有) |
interval |
string |
星座的时段 |
更新时间 2024-07-20 12:34:34
状态码 | 状态说明 |
---|---|
400 | 请求错误 |
403 | 请求被服务器拒绝 |
404 | 请求服务器失败 |
500 | 服务器错误 |
503 | 服务器维护 |
GET方法
$url = 'https://free.wqwlkj.cn/wqwlapi/xingzuo.php';
$data = '?name=狮子座&time=today&date=';
$get = $url.$data;
$result = file_get_contents($get);
if ($result) {
//成功
echo $result;
} else {
//失败
}
POST方法
$url = 'https://free.wqwlkj.cn/wqwlapi/xingzuo.php';
$data = array(
  'name' => '狮子座',
  'time' => 'today',
  'date' => '',
);
$data = http_build_query($data);
$option = array('http'=>array('method'=>'POST','content'=>$data));
$context = stream_context_create($option);
$result = file_get_contents($url,false,$context);
if ($result) {
//成功
echo $result;
} else {
//失败
}
GET方法
var url = "https://free.wqwlkj.cn/wqwlapi/xingzuo.php"
var data = "?name=狮子座&time=today&date="
var xhrGet = new XMLHttpRequest();
xhrGet.open('GET', url + data, true);
xhrGet.send();
xhrGet.onreadystatechange = function() {
if (xhrGet.readyState == 4 && xhrGet.status == 200) {
//成功
var result = xhrGet.responseText;
console.log(result);
} else {
//失败
}
};
POST方法
var url = "https://free.wqwlkj.cn/wqwlapi/xingzuo.php"
var data = "name=狮子座&time=today&date="
var xhrPost = new XMLHttpRequest();
xhrPost.open('POST', url, true);
xhrPost.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhrPost.send(data);
xhrPost.onreadystatechange = function() {
if (xhrPost.readyState == 4 && xhrPost.status == 200) {
//成功
var result = xhrPost.responseText;
console.log(result);
} else {
//失败
}
};
GET方法
new Thread(){
public void run() {
String path = "https://free.wqwlkj.cn/wqwlapi/xingzuo.php";
String data = "?name=狮子座&time=today&date=";
try {
URL url = new URL(path + data);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("GET");
int code = connection.getResponseCode();
if (code == 200) {
//成功
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader bufferedreader = new BufferedReader(isr);
String string;
StringBuilder stringbuilder = new StringBuilder();
while ((string = bufferedreader.readLine()) != null) {
stringbuilder.append(string);
}
final String result = stringbuilder.toString();
System.out.println(result);
} else {
//失败
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}.start();
POST方法
new Thread(){
public void run() {
String path = "https://free.wqwlkj.cn/wqwlapi/xingzuo.php";
String data = "name=狮子座&time=today&date=";
try {
URL url = new URL(path);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setDoOutput(true);
connection.getOutputStream().write(data.getBytes());
int code = connection.getResponseCode();
if (code == 200) {
//成功
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader bufferedreader = new BufferedReader(isr);
String string;
StringBuilder stringbuilder = new StringBuilder();
while ((string = bufferedreader.readLine()) != null) {
stringbuilder.append(string);
}
final String result = stringbuilder.toString();
System.out.println(result);
} else {
//失败
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}.start();
GET方法
url="https://free.wqwlkj.cn/wqwlapi/xingzuo.php"
data=url.."?name=狮子座&time=today&date="
Http.get(data,function(code,content,data)
if code==200 then
--成功
print(content)
else
--失败
end
end)
POST方法
url="https://free.wqwlkj.cn/wqwlapi/xingzuo.php"
data="name=狮子座&time=today&date="
Http.post(url,data,function(code,content,data)
if code==200 then
--成功
print(content)
else
--失败
end
end)
GET方法
变量 网络GET操作 为 网络操作 = 创建 网络操作()
变量 GET数据 为 文本型 = "?name=狮子座&time=today&date="
网络GET操作.取网页源码("https://free.wqwlkj.cn/wqwlapi/xingzuo.php" + GET数据)
事件 网络GET操作:取网页源码结束(结果 为 文本型,cookie 为 文本型)
//成功
调试输出(结果)
结束 事件
事件 网络GET操作:取网页源码失败(响应码 为 文本型)
//失败
结束 事件
POST方法
变量 网络POST操作 为 网络操作 = 创建 网络操作()
变量 POST数据 为 文本型 = "name=狮子座&time=today&date="
网络POST操作.发送数据("https://free.wqwlkj.cn/wqwlapi/xingzuo.php",POST数据)
事件 网络POST操作:发送数据结束(结果 为 文本型,cookie 为 文本型)
//成功
调试输出(结果)
结束 事件
事件 网络POST操作:发送数据失败(响应码 为 文本型)
//失败
结束 事件
GET方法
s url="https://free.wqwlkj.cn/wqwlapi/xingzuo.php"
s data="?name=狮子座&time=today&date="
ss(url+data,get)
t(){
hs(get,result)
f(result!=null){
//成功
syso(result)
}else{
//失败
}
}
POST方法
s url="https://free.wqwlkj.cn/wqwlapi/xingzuo.php"
s data="name=狮子座&time=today&date="
t(){
hs(url,data,"utf-8",result)
f(result!=null){
//成功
syso(result)
}else{
//失败
}
}
反馈时间 | 反馈接口 | 反馈内容 | 反馈者IP |
---|