menu 星座运势查询

新首页

brightness_4 more_vert

星座运势查询,数据来自 星座屋,如有侵权请联系删除

equalizer 累计使用:2650

short_text 接口文档 http 状态码 code 示例代码
编辑接口
接口信息
名称不能为空
请填写接口名称
介绍不能为空
请填写接口介绍
地址不能为空
请填写完整路径,包含http协议头
参数不能为空
格式:参数名=参数值&参数名=参数值(用于在接口文档展示)
请求方式

请求参数
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍


返回参数
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍
不能为空
请填写参数的介绍


状态代码




short_text 请求说明

请求地址  https://free.wqwlkj.cn/wqwlapi/xingzuo.php

请求示例  https://free.wqwlkj.cn/wqwlapi/xingzuo.php?name=狮子座&time=today&date=

请求方式   GET

返回格式  JSON

short_text 返回示例
{
    "name": "狮子座",
    "time": "2026-01-07",
    "type": "今日运势",
    "interval": "07-23至08-22",
    "characteristic": "强烈的行动力",
    "luckyColor": "姜黄",
    "luckNumber": 9,
    "yi": "出门游玩",
    "ji": "唉声叹气",
    "luckyIndex": {
        "all": "93%",
        "love": "94%",
        "work": "92%",
        "money": "96%",
        "health": "91%",
        "discuss": "94%"
    },
    "info": {
        "all": "整体运势相当不错,内心涌动着强烈的行动力与决断力。这种状态并非源于外界的推动,而是来自内心的自信与对目标的清晰认知。敢于采取行动成为主要特征,无论是面对挑战还是追求目标,都能展现出果断的一面。这种行动力并非盲目冲动,而是基于对局势的准确判断与对自身能力的充分信任。此时适合将想法转化为实际行动,不必犹豫或拖延。运势的助力体现在行动的顺畅上,每一步都能感受到前进的动力。保持这种积极的状态,运势将持续为行动提供支持。",
        "love": "单身的你,魅力四射,很容易吸引他人的目光。在社交场合中,你就是焦点,会有不少人主动和你搭话,其中不乏对你有好感的人,抓住这个机会,展现自己自信的一面,说不定就能收获一段美好的爱情。已有伴者的你,会被甜蜜的氛围环绕。和伴侣之间的互动充满了爱意,彼此的关心和照顾无微不至,一起做一些浪漫的事情,比如一起看日出日落,让感情在甜蜜中不断升华。",
        "work": "对你来说是一个顺风顺水的日子,仿佛有一股好运相伴。在各个方面都能展现出强大的能力和自信,无论是面对复杂的工作挑战,还是高难度的学习任务,都能轻松应对。你的思维敏捷,创造力十足,能够提出新颖的想法和解决方案,为事业学业的发展带来新的机遇和突破。",
        "money": "财运超棒,会有贵人出现在你的财务领域,给你带来赚钱的好机会。可能是介绍新的合作项目,或者提供有价值的投资建议。一定要抓住这个好时机,积极和贵人互动,凭借他们的助力,开启新的财源,让自己的钱包鼓起来。",
        "health": "运动起来畅快淋漓,身体状态很不错,很适合进行一些自己喜欢的运动项目,像打球、健身等。在运动前要做好热身活动,运动过程中注意补充水分,避免拉伤和脱水。运动结束后也别忘了拉伸放松,这样能让身体更好地恢复,享受运动带来的快乐。"
    },
    "getLuck": null
}

short_text 请求参数
参数名称 是否必需 参数说明
name 星座名字(包含座,如:狮子座)name和date二选一,如都传入name优先
time 查询的时段 今日 today,明日 nextday,一周 week,本月 month,今年 year ,爱情 love 运势
date 查询的月-日(如1-1),name和date二选一,如都传入name优先
short_text 返回参数
参数名称 参数类型 参数说明
name string 星座名
time string 查询的时段
type string 查询的类型
characteristic string 今日特征
luckyColor string 幸运颜色
luckNumber string 幸运数字
yi string 宜事
ji string 忌事
luckyIndex string 幸运占比
info string 幸运描述信息
getLuck string 转运方法(查本年运势才有)
interval string 星座的时段

short_text 更新时间

更新时间  2024-07-20 12:34:34

系统状态

状态码 状态说明
400 请求错误
403 请求被服务器拒绝
404 请求服务器失败
500 服务器错误
503 服务器维护






PHP


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 { //失败 }

JavaScript


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 {
        //失败
    }
};

JAVA


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();

Lua


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操作:发送数据失败(响应码 为 文本型)
      //失败
   结束 事件

iAPP


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

网站通知

通知3:近期不少人说免费api速度挺慢的,因为寻找免费api是使用别人的主机很正常,凑合用吧。 打个小广告,如果实在是不满,可以让我移至付费接口,一个月几块钱吧,但是速度还行咯。服务器一直空闲着。 付费地址:点击进入使用

通知2:由于各种原因,原域名已经更换为free.wqwlkj.cn,请各位站长注意更换。(接口不变,只是域名换了)

通知1:疯狂星期四文案由于被恶意请求,已经取消使用,需要接口源码点击进入如果实在想使用,只能付费,地址:点击付费使用
我知道了