六派数据-二十四节气
  • ID

    59

  • 收藏

    2

  • 使用

    2

二十四节气

二十四节气的时间、由来、习俗、养生
免费会员100次/天 白银会员600次/天 钻石会员15万次/日
免费 (根据会员等级不同,每日可调用次数不同,了解各会员权益>>
  • 获取二十四节气
  • 节气详情

基本信息

  • 接口地址: http://open.liupai.net/jieqi/query
  • 支持格式: JSON,JSONP
  • 请求方法: GET POST
  • 请求示例: http://open.liupai.net/jieqi/query?appkey=yourappsecret

请求参数 API在线测试

参数名称 类型 必填 说明
year string 年份 默认今年

返回参数

参数名称 类型   说明
now string   当前的节气
name string   节气名称
time string   时间
lunar string   农历
jieqiid string   节气ID
pic string   图片
song string   节气歌

请求代码 查看代码

  • PHP
  • JAVA
  • Python
require_once("curl.func.php");

$method = "POST";
$url = "http://open.liupai.net/jieqi/query";
$headers = NULL;
$params = array(  
    "appkey" => "yourappsecret",
    "year" => "2021"
);
$result = api_curl($method, $url, $headers, $params);
if ($result) {
    $body = json_decode($result["body"], TRUE);
    $status_code = $body["status"];
    if ($status_code == "200") { 
        var_dump($body["result"]);
    }else
        var_dump($body); 
}else  
    echo "发送请求失败";

JSON返回示例

{
    "status": 200,
    "msg": "OK",
    "result": {
        "now": {
            "name": "小满",
            "time": "2021-05-21 03:36:58",
            "lunar": [
                "2021",
                "四月",
                "初十 ",
                "辛丑",
                4,
                10,
                "牛",
                0
            ]
        },
        "list": [
            {
                "jieqiid": 23,
                "name": "小寒",
                "pic": "https://open.liupai.net/data/jieqi/xh.png",
                "time": "2021-01-05 11:23:17"
            },
            {
                "jieqiid": 24,
                "name": "大寒",
                "pic": "https://open.liupai.net/data/jieqi/dh.png",
                "time": "2021-01-20 04:39:42"
            },
            {
                "jieqiid": 1,
                "name": "立春",
                "pic": "https://open.liupai.net/data/jieqi/lc.png",
                "time": "2021-02-03 22:58:39"
            },
            {
                "jieqiid": 2,
                "name": "雨水",
                "pic": "https://open.liupai.net/data/jieqi/ys.png",
                "time": "2021-02-18 18:43:49"
            },
            {
                "jieqiid": 3,
                "name": "惊蛰",
                "pic": "https://open.liupai.net/data/jieqi/jz.png",
                "time": "2021-03-05 16:53:32"
            },
            {
                "jieqiid": 4,
                "name": "春分",
                "pic": "https://open.liupai.net/data/jieqi/cf.png",
                "time": "2021-03-20 17:37:19"
            },
            {
                "jieqiid": 5,
                "name": "清明",
                "pic": "https://open.liupai.net/data/jieqi/qm.png",
                "time": "2021-04-04 21:34:58"
            },
            {
                "jieqiid": 6,
                "name": "谷雨",
                "pic": "https://open.liupai.net/data/jieqi/gy.png",
                "time": "2021-04-20 04:33:14"
            },
            {
                "jieqiid": 7,
                "name": "立夏",
                "pic": "https://open.liupai.net/data/jieqi/lx.png",
                "time": "2021-05-05 14:47:01"
            },
            {
                "jieqiid": 8,
                "name": "小满",
                "pic": "https://open.liupai.net/data/jieqi/xm.png",
                "time": "2021-05-21 03:36:58"
            },
            {
                "jieqiid": 9,
                "name": "芒种",
                "pic": "https://open.liupai.net/data/jieqi/mz.png",
                "time": "2021-06-05 18:51:57"
            },
            {
                "jieqiid": 10,
                "name": "夏至",
                "pic": "https://open.liupai.net/data/jieqi/xz.png",
                "time": "2021-06-21 11:32:00"
            },
            {
                "jieqiid": 11,
                "name": "小暑",
                "pic": "https://open.liupai.net/data/jieqi/xs.png",
                "time": "2021-07-07 05:05:19"
            },
            {
                "jieqiid": 12,
                "name": "大暑",
                "pic": "https://open.liupai.net/data/jieqi/ds.png",
                "time": "2021-07-22 22:26:16"
            },
            {
                "jieqiid": 13,
                "name": "立秋",
                "pic": "https://open.liupai.net/data/jieqi/lq.png",
                "time": "2021-08-07 14:53:48"
            },
            {
                "jieqiid": 14,
                "name": "处暑",
                "pic": "https://open.liupai.net/data/jieqi/cs.png",
                "time": "2021-08-23 05:34:48"
            },
            {
                "jieqiid": 15,
                "name": "白露",
                "pic": "https://open.liupai.net/data/jieqi/bl.png",
                "time": "2021-09-07 17:52:46"
            },
            {
                "jieqiid": 16,
                "name": "秋分",
                "pic": "https://open.liupai.net/data/jieqi/qf.png",
                "time": "2021-09-23 03:20:55"
            },
            {
                "jieqiid": 17,
                "name": "寒露",
                "pic": "https://open.liupai.net/data/jieqi/hl.png",
                "time": "2021-10-08 09:38:53"
            },
            {
                "jieqiid": 18,
                "name": "霜降",
                "pic": "https://open.liupai.net/data/jieqi/sj.png",
                "time": "2021-10-23 12:51:00"
            },
            {
                "jieqiid": 19,
                "name": "立冬",
                "pic": "https://open.liupai.net/data/jieqi/ld.png",
                "time": "2021-11-07 12:58:37"
            },
            {
                "jieqiid": 20,
                "name": "小雪",
                "pic": "https://open.liupai.net/data/jieqi/xx.png",
                "time": "2021-11-22 10:33:34"
            },
            {
                "jieqiid": 21,
                "name": "大雪",
                "pic": "https://open.liupai.net/data/jieqi/dx.png",
                "time": "2021-12-07 05:56:55"
            },
            {
                "jieqiid": 22,
                "name": "冬至",
                "pic": "https://open.liupai.net/data/jieqi/dz.png",
                "time": "2021-12-21 23:59:09"
            }
        ],
        "song": "春雨惊春清谷天,夏满芒夏暑相连。秋处露秋寒霜降,冬雪雪冬小大寒。"
    }
}

    数据信息

  • 今日调用: 85,104  次
  • 客服电话: 010-8639-9970
  • 客服邮箱: kf@ksmsoft.net
  • 售前客服:
  • 售后技术:

二十四节气问答专区

问答专区

相关资讯

其他推荐