首页 教育亲子 宋词三百首
宋词三百首

宋词三百首

  • 1751
  • 1140
收录宋代词人88家,词300首,包含标题、分类、内容、解释、赏析等信息。可通过作者、标题、某一句等关键词进行模糊检索,特别适用名句检索。
免费
https://api.jisuapi.com/songci/chapter
JSON,JSONP
GET POST
https://api.jisuapi.com/songci/chapter?appkey=yourappkey

请求参数:

API在线测试
参数名称类型必填说明

返回参数:

参数名称类型说明
detailid int 详情ID
name string 名称
author string 作者

请求代码:

查看代码
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$url = "https://api.jisuapi.com/songci/chapter?appkey=$appkey";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));

if($jsonarr['status'] != 0)
{
    echo $jsonarr['msg'];
    exit();
}

$result = $jsonarr['result'];
foreach($result as $val)
{
    echo $val['detailid'].' '.$val['name'].' '.$val['author'].'
'; }

JSON返回示例 :

{
    "status": 0,
    "msg": "ok",
    "result": [
        {
            "detailid": "1",
            "name": "菩萨蛮·平林漠漠烟如织",
            "author": "李白"
        },
        {
            "detailid": "2",
            "name": "忆秦娥·箫声咽",
            "author": "李白"
        },
        {
            "detailid": "3",
            "name": "三五七言",
            "author": "李白"
        },
        {
            "detailid": "4",
            "name": "渔歌子·西塞山前白鹭飞",
            "author": "张志和"
        },
        {
            "detailid": "5",
            "name": "调笑令·边草",
            "author": "戴叔伦"
        },
        {
            "detailid": "6",
            "name": "宫中调笑·团扇",
            "author": "王建"
        },
        {
            "detailid": "7",
            "name": "竹枝词·山桃红花满上头",
            "author": "刘禹锡"
        },
        {
            "detailid": "8",
            "name": "潇湘神·斑竹枝",
            "author": "刘禹锡"
        },
        {
            "detailid": "9",
            "name": "忆江南·江南好",
            "author": "白居易"
        },
        {
            "detailid": "10",
            "name": "忆江南·江南忆",
            "author": "白居易"
        },
        {
            "detailid": "11",
            "name": "长相思·汴水流",
            "author": "白居易"
        },
        {
            "detailid": "12",
            "name": "花非花·花非花",
            "author": "白居易"
        },
        {
            "detailid": "13",
            "name": "浪淘沙·借问江潮与海水",
            "author": "白居易"
        },
        {
            "detailid": "14",
            "name": "采莲子·菡萏香连十顷陂",
            "author": "皇甫松"
        },
        {
            "detailid": "15",
            "name": "梦江南·兰烬落",
            "author": "皇甫松"
        },
        {
            "detailid": "16",
            "name": "望江南·梳洗罢",
            "author": "温庭筠"
        },
        {
            "detailid": "17",
            "name": "菩萨蛮·小山重叠金明灭",
            "author": "温庭筠"
        },
        {
            "detailid": "18",
            "name": "更漏子·柳丝长",
            "author": "温庭筠"
        },
        {
            "detailid": "19",
            "name": "菩萨蛮·红楼别夜堪惆怅",
            "author": "韦庄"
        },
        {
            "detailid": "20",
            "name": "菩萨蛮·人人尽说江南好",
            "author": "韦庄"
        },
        {
            "detailid": "21",
            "name": "菩萨蛮·劝君今夜须沈醉",
            "author": "韦庄"
        },
        {
            "detailid": "22",
            "name": "女冠子·四月十七",
            "author": "韦庄"
        },
        {
            "detailid": "23",
            "name": "女冠子·昨夜夜半",
            "author": "韦庄"
        },
        {
            "detailid": "24",
            "name": "思帝乡·春日游",
            "author": "韦庄"
        },
        {
            "detailid": "25",
            "name": "浣溪沙·红蓼渡头秋正雨",
            "author": "薛昭蕴"
        },
        {
            "detailid": "26",
            "name": "忆江南·衔泥燕",
            "author": "牛峤"
        },
        {
            "detailid": "27",
            "name": "生查子·新月曲如眉",
            "author": "牛希济"
        },
        {
            "detailid": "28",
            "name": "巫山一段云·古庙依青嶂",
            "author": "李珣"
        }
    ]
}
                    

API错误码:

代号说明
201 关键词为空
203 没有信息

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用

活动推荐ACTIVITY 更多

  • orc活动

其它推荐RECOMMENDED DATA 更多