首页 教育亲子 元曲三百首数据接口
元曲三百首

元曲三百首

5.00/10000次
申请就送1000次
收集了元曲四大家300多首,包含标题、分类、内容、解释、赏析等信息。可通过作者、标题、某一句等关键词进行模糊检索。
  • 收藏数:853
  • 使用数:1529
http://api.jisuapi.com/yuanqu/chapter
JSON,JSONP
GET POST
http://api.jisuapi.com/yuanqu/chapter?appkey=yourappkey

请求参数:

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

返回参数:

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

请求代码:

查看代码
<?php

require_once 'curl.func.php';

$appkey = 'your_appkey_here';//你的appkey
$url = "http://api.jisuapi.com/yuanqu/chapter?appkey=$appkey";
$result = curlOpen($url);
$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": "关汉卿"
        }
    ]
}
                    

API错误码:

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

系统错误码:

代号说明
101 APPKEY为空或不存在
102 APPKEY已过期
103 APPKEY无请求此数据权限
104 请求超过次数限制
105 IP被禁止
106 IP请求超过限制
107 接口维护中
108 接口已停用
名称权限价格
免费套餐 1000次 免费
Level1 10000次 5.00元
Level2 20000次 9.00元
Level3 50000次 21.00元
Level4 100000次 40.00元

活动推荐ACTIVITY 更多

  • 短信

其它推荐RECOMMENDED DATA 更多