星座运势查询,数据来自 星座屋,如有侵权请联系删除
equalizer 累计使用:1322
请求地址 https://free.wqwlkj.cn/wqwlapi/xingzuo.php
请求示例 https://free.wqwlkj.cn/wqwlapi/xingzuo.php?name=狮子座&time=today&date=
请求方式 GET
返回格式 JSON
{
"name": "狮子座",
"time": "2025-07-13",
"type": "今日运势",
"interval": "07-23至08-22",
"characteristic": "大大小小的幸运",
"luckyColor": "玫红",
"luckNumber": 2,
"yi": "穿新鞋出门",
"ji": "吃饭看剧集",
"luckyIndex": {
"all": "92%",
"love": "90%",
"work": "95%",
"money": "93%",
"health": "95%",
"discuss": "91%"
},
"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 |
---|