电视频道接口 查询电视频道列表

来源:互联网 发布:55网络电视 编辑:程序博客网 时间:2024/04/30 04:10

电视频道接口根据电视分类ID:pId查询该分类下的电视频道列表。

接口名称:电视频道接口

接口平台:api接口

接口地址:http://japi.juhe.cn/tv/getChannel

支持格式:json

请求方式:get/post

请求示例:http://japi.juhe.cn/tv/getChannel?pId=1&key=您申请的KEY

接口备注:根据电视分类ID:pId查询该分类下的电视频道列表

电视频道接口调用代码JSON返回示例:

{    "error_code": 0,    "reason": "Success!",    "result": [        {            "channelName": "CCTV-1 综合", /*频道名称*/            "pId": 1, /*分类id*/            "rel": "cctv1", /*频道代码*/            "url": "http://tv.cntv.cn/live/cctv1" /*播放链接*/        },        {            "channelName": "CCTV-2 财经",            "pId": 1,            "rel": "cctv2",            "url": "http://tv.cntv.cn/live/cctv2"        },        {            "channelName": "CCTV-3 综艺",            "pId": 1,            "rel": "cctv3",            "url": "http://tv.cntv.cn/live/cctv3"        },        {            "channelName": "CCTV-4 (亚洲)",            "pId": 1,            "rel": "cctv4",            "url": "http://tv.cntv.cn/live/cctv4"        },        {            "channelName": "CCTV-4 (欧洲)",            "pId": 1,            "rel": "cctveurope",            "url": "http://tv.cntv.cn/live/cctveurope"        },        {            "channelName": "CCTV-4 (美洲)",            "pId": 1,            "rel": "cctvamerica",            "url": "http://tv.cntv.cn/live/cctvamerica"        },        {            "channelName": "CCTV-5 体育",            "pId": 1,            "rel": "cctv5",            "url": "http://tv.cntv.cn/live/cctv5"        },     ...     ]}


0 0
原创粉丝点击