OpenAPI云端数据接口
MoreTV OpenApi V2 基本说明
访问所有云端数据接口都需要access_token(业务授权访问串)参数,各接口描述中不再重复说明。如何获取access_token请见《OpenApi 认证鉴权》。
接口统一以json数据格式返回,统一使用UTF-8编码集。
接口可以接受callback参数,以字母开头,只能包含数字、字母、下划线,长度不大于50
部分接口区分普通权限和VIP权限两个基本。具体各个业务接口有说明。
调用接口限制:单个appID 普通权限接口调用次数限额:5000次/每日,VIP权限不做限制。access_token有效期 2小时失效,vip 24小时失效。
普通权限注册即可获得。如果要获得VIP权限可以通过联系MoreTV获取,联系人:dev@moretv.com.cn
OpenApi认证鉴权
业务说明
第一步
调用authorize接口获取到一个鉴权请求事务串,传入的参数:为申请到的获取到的appid。如何获取appid请见《应用接入申请》
第二步:
调用get_access_token接口获取到一个业务授权访问串,通过算法 md5(appid+”_”+ secret +”_”+ code)得到一个key作为密钥参数传递,将得到一个access_token
authorize接口
承载协议:HTTP(GET)
接口方向:第三方→ MoreTV OpenApi服务平台
-
接口功能:通过appid获取一个authorize_code
业务说明:该接口生成的authorize_code会在一分钟内失效。需要第三方在一分钟内使用authorize_code去请求get_access_token接口:
备注说明:如果还没有appid,请见《应用接入申请》
请求参数:
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
appid | 第三方从开发平台分配到的appid | String | 32 | Y | 如果不存在则无法获取到authorize_code |
{
"status": "200",
"authorize_code": "5e7ddc3031afb7a84ff6aba1e0d467fd"
}
get_access_token接口
承载协议:HTTP(GET)
接口方向:第三方→ MoreTV OpenApi服务平台
-
接口功能:获取业务授权访问串
业务说明:authorize_code发起一次请求以后就失效掉了。如果需要重新获取authorize_code,需要再次发起去authorize接口获取authorize_code的流程
备注说明:如果还没有appid,secret 请见《应用接入申请》
请求参数:
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
authorize_code | 从authorize接口获取到的authorize_code | String | 32 | Y | 每个authorize_code只能请求一次,请求后立即失效 |
key | md5(appid+“_”+ secret +“_”+ authorize_code) | String | 32 | Y | appid,secret在云端数据接入时就已经分配,不同的参数通过 “_”(英文下划线) 进行分割,并且做一次md5(32位小写) |
{
"status": 200,
"access_token": "2808b5d1180a4cd3bce9fb49be20e775e9e90f4f2a06d7a8038c4fcf025c661a"
}
业务接口获取举例
curl http://open.moretv.com.cn/moviesite?access_token=a7838fc9d83536dfa09395e68e3a041c68f3de95a820fd6230756a7feba5a75f
OpenApi业务接口
内容分类列表接口
{
"status": "200",
"message": "success",
"types": [
{
"icon": "http://www.moretv.com.cn/img/icon/movie.jpg",
"code": "movie",
"link_data": "page=list&contentType=movie&type=0",
"title": "电影"
},
{
"icon": "http://www.moretv.com.cn/img/icon/tv.jpg",
"code": "tv",
"link_data": "page=list&contentType=tv&type=0",
"title": "电视剧"
},
{
"icon": "http://www.moretv.com.cn/img/icon/zongyi.jpg",
"code": "zongyi",
"link_data": "page=list&contentType=zongyi&type=0",
"title": "综艺"
},
{
"icon": "http://www.moretv.com.cn/img/icon/kids.jpg",
"code": "kids",
"link_data": "page=list&contentType=kids&type=0",
"title": "少儿"
},
{
"icon": "http://www.moretv.com.cn/img/icon/hot.jpg",
"code": "hot",
"link_data": "page=list&contentType=hot&type=0",
"title": "热门视频"
},
{
"icon": "http://www.moretv.com.cn/img/icon/comic.jpg",
"code": "comic",
"link_data": "page=list&contentType=comic&type=0",
"title": "动漫"
},
{
"icon": "http://www.moretv.com.cn/img/icon/jilu.jpg",
"code": "jilu",
"link_data": "page=list&contentType=jilu&type=0",
"title": "纪实"
},
{
"icon": "http://www.moretv.com.cn/img/icon/mv.jpg",
"code": "mv",
"link_data": "page=list&contentType=mv&type=0",
"title": "音乐"
},
{
"icon": "http://www.moretv.com.cn/img/icon/xiqu.jpg",
"code": "xiqu",
"link_data": "page=list&contentType=xiqu&type=0",
"title": "戏曲"
}
]
}
不同类型的内容推荐
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
code | 不同内容类型的code | String | 32 | Y | 不同类型的code定义请见《内容分类列表接口》目前只开放了:movie/tv/zongyi/comic/jilu 长视频 |
返回字段说明
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
status | 状态 | int | 10 | Y | 200:正常返回 >0:异常返回 |
position | 推荐对象 | int | 10 | Y | |
———title | 推荐名称 | int | 10 | Y | |
———count | 推荐总数 | int | 10 | Y | |
———positionItems | 推荐节目集合 | String | 32 | Y | 参见《Item Properties 展示编排对象》定义 |
{
"status": "200",
"position": {
"title": "院线大片",
"count": "30",
"positionItems": [
{
"link_data": "page=detail&sid=vx9wwy4gsul7",
"item_contentType": "movie",
"item_title": "汽车旅馆疯劫案",
"item_sid": "vx9wwy4gsul7",
"item_icon1": "http://pic.moretv.com.cn//20140405/20140405092322191.jpg",
"item_tag": ["动作"],
"item_year": "2013",
"item_area": "美国",
"item_cast": ["布莱恩·科兰斯顿","罗根·马歇尔"],
"item_director": ["Tze Chun"],
"item_host": [],
"item_guest": [],
"item_isHd": "0",
"item_episodeCount": "99999999",
"item_episode": "0",
"item_score": "5.7"
},
{
"link_data": "page=detail&sid=xyp8c3ce4ghj",
"item_contentType": "movie",
"item_title": "恶战",
"item_sid": "xyp8c3ce4ghj",
"item_icon1": "http://pic.moretv.com.cn//20140408/20140408111326272.jpg",
"item_tag": ["剧情","动作"],
"item_year": "2014",
"item_area": "香港",
"item_cast": ["伍允龙","安志杰","洪金宝","胡然"],
"item_director": ["黄精甫"],
"item_host": [],
"item_guest": [],
"item_isHd": "0",
"item_episodeCount": "99999999",
"item_episode": "0",
"item_score": "6.3"
}
]
}
}
不同类型的最近更新列表
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
code | 不同内容类型的code | String | 32 | Y | 不同类型的code定义请见《内容分类列表接口》目前只开放了:movie/tv长视频 |
返回字段说明
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
status | 状态 | int | 10 | Y | 200:正常返回 >0:异常返回 |
position | 最近更新列表对象 | int | 10 | Y | |
———title | 最近更新列表名称 | int | 10 | Y | |
———count | 最近更新列表总数 | int | 10 | Y | |
———positionItems | 最近更新节目集合 | String | 32 | Y | 参见《Item Properties 展示编排对象》定义 |
* 应答范例:
{
"status": "200",
"position": {
"title": "院线大片",
"count": "30",
"positionItems": [
{
"link_data": "page=detail&sid=vx9wwy4gsul7",
"item_contentType": "movie",
"item_title": "汽车旅馆疯劫案",
"item_sid": "vx9wwy4gsul7",
"item_icon1": "http://pic.moretv.com.cn//20140405/20140405092322191.jpg",
"item_tag": ["动作"],
"item_year": "2013",
"item_area": "美国",
"item_cast": ["布莱恩·科兰斯顿","罗根·马歇尔"],
"item_director": ["Tze Chun"],
"item_host": [],
"item_guest": [],
"item_isHd": "0",
"item_episodeCount": "99999999",
"item_episode": "0",
"item_score": "5.7"
},
{
"link_data": "page=detail&sid=xyp8c3ce4ghj",
"item_contentType": "movie",
"item_title": "恶战",
"item_sid": "xyp8c3ce4ghj",
"item_icon1": "http://pic.moretv.com.cn//20140408/20140408111326272.jpg",
"item_tag": ["剧情","动作"],
"item_year": "2014",
"item_area": "香港",
"item_cast": ["伍允龙","安志杰","洪金宝","胡然"],
"item_director": ["黄精甫"],
"item_host": [],
"item_guest": [],
"item_isHd": "0",
"item_episodeCount": "99999999",
"item_episode": "0",
"item_score": "6.3"
}
]
}
}
获取专辑列表
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
code | 不同内容类型的code | String | 32 | Y | 目前开放了 movie/tv/zongyi/comic,表示不同类型的专题。 |
返回字段说明
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
status | 状态 | int | 10 | Y | 200:正常返回 >0:异常返回 |
position | 推荐对象 | int | 10 | Y | |
———title | 专辑列表名称 | int | 10 | Y | |
———count | 列表总数 | int | 10 | Y | |
———positionItems | 专辑编排集合 | String | 32 | Y | 参见《Item Properties 展示编排对象》定义 |
{
"status": "200",
"position": {
"title": "电影专区",
"count": "30",
"positionItems": [
{
"link_data": "page=subject&keyword=movie110",
"item_contentType": "subject",
"item_title": "台湾新本土电影",
"item_sid": "vx9wwy4gsul7",
"item_icon1": "http://pic.moretv.com.cn//20140327/20140327185617724.jpg",
"item_icon3": "http://mimg.moretv.com.cn/mimg/x335x200/pic.moretv.com.cn//20140327/20140327185617724.jpg",
},
{
"link_data": "page=subject&keyword=movie120",
"item_contentType": "subject",
"item_title": "电影里的最强大脑",
"item_sid": "xyp8c3ce4ghj",
"item_icon1": "http://pic.moretv.com.cn//20140401/20140401182101212.jpg",
"item_icon3": "http://mimg.moretv.com.cn/mimg/x335x200/pic.moretv.com.cn//20140401/20140401182101212.jpg",
}
]
}
}
混搭推荐列表
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
code | 不同内容类型的code | String | 32 | Y | |
返回字段说明
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
status | 状态 | int | 10 | Y | 200:正常返回 >0:异常返回 |
position | 推荐对象 | int | 10 | Y | |
——title | 推荐名称 | int | 10 | Y | |
——count | 推荐总数 | int | 10 | Y | |
——positionItems | 推荐节目集合 | String | 32 | Y | 参见《Item Properties 展示编排对象》定义 |
{
"status": "200",
"position": {
"title": "电影专区",
"count": "30",
"positionItems": [
{
"link_data": "page=detail&sid=vx9wwy4gsul7",
"item_contentType": "movie",
"item_title": "汽车旅馆疯劫案",
"item_icon1": "http://pic.moretv.com.cn//20140405/20140405092322191.jpg",
"item_tag": ["动作"],
"item_year": "2013",
"item_area": "美国",
"item_cast": ["布莱恩·科兰斯顿","罗根·马歇尔"],
"item_director": ["Tze Chun"],
"item_host": [],
"item_guest": [],
"item_isHd": "0",
"item_episodeCount": "99999999",
"item_episode": "0",
"item_score": "5.7"
},
{
"link_data": "page=detail&sid=xyp8c3ce4ghj",
"item_contentType": "movie",
"item_title": "恶战",
"item_icon1": "http://pic.moretv.com.cn//20140408/20140408111326272.jpg",
"item_tag": ["剧情","动作"],
"item_year": "2014",
"item_area": "香港",
"item_cast": ["伍允龙","安志杰","洪金宝","胡然"],
"item_director": ["黄精甫"],
"item_host": [],
"item_guest": [],
"item_isHd": "0",
"item_episodeCount": "99999999",
"item_episode": "0",
"item_score": "6.3"
},
{
"link_data": "page=subject&keyword=movie110",
"item_contentType": "subject",
"item_title": "台湾新本土电影",
"item_icon1": "http://pic.moretv.com.cn//20140327/20140327185617724.jpg",
"item_icon3": "http://mimg.moretv.com.cn/mimg/x335x200/pic.moretv.com.cn//20140327/20140327185617724.jpg",
},
{
"link_data": "page=subject&keyword=movie120",
"item_contentType": "subject",
"item_title": "电影里的最强大脑",
"item_icon1": "http://pic.moretv.com.cn//20140401/20140401182101212.jpg",
"item_icon3": "http://mimg.moretv.com.cn/mimg/x335x200/pic.moretv.com.cn//20140401/20140401182101212.jpg",
}
]
}
}
智能推荐接口
智能推荐
Item Properties 展示编排对象
* 内容列表接口可能会将节目,专辑,演职员等信息混排。抽象一个统一的数据编排展示对象。
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 是否需要VIP权限 | 备注 |
link_data | App调用字串 | String | 128 | N | Y | 调用MoreTV App时将该参数透传给App,App可以根据该参数跳转到对应的页面 |
item_contentType | 内容类型 movie/tv/jilu/zongyi/comic/kids, subject | String | 32 | Y | Y | 内容类型枚举值,目前内容类型只提供movie/tv/jilu/zongyi/comic/kids 其他暂未开放 |
item_title | 编排内容的title | String | 128 | Y | Y | |
item_sid | 内容的唯一标示 | String | 256 | N | N |
item_icon1 | 编排内容的海报图 竖图 小 | String | 256 | N | N | 长视频内容(movie/tv/jilu/zongyi/comic/kids, subject),以及专辑内容存在都存在该图片 |
item_icon3 | 编排内容的海报图 横图 小 | String | 256 | N | N | 短视频内容(hot/mv/xiqu,subject),以及专辑内容存在都存在该图片 |
item_tag | 内容的类型(内容类型),con | String[] | 128 | N | N | |
item_year | 内容的所属年代 | String | 8 | N | N | |
item_area | 内容所属的地区 | String | 128 | N | N | |
item_cast | 演员 | String[] | 128 | N | N | |
item_director | 导演 | String[] | 128 | N | N | N |
item_isHd | 内容是否高清 | Int | 4 | N | N | 0:标清 1:高清 |
item_episodeCount | 内容的总集数 | Int | 10 | N | N | item_contentType为tv,jilu时有效 |
item_episode | 内容当前更新到的集/期 数 | Int | 10 | N | N | item_contentType为tv/jilu/zongyi/comic/kids时有效,可能会存在两个格式:数字型和日期型。</br> Eg:tv/jilu/comic/kis:3 代表现在更新到第3集 zongyi:20130403 代表更新到2013年4月03期 |
item_score | 内容的评分 | Float | | N | | |
内容搜索
拼音搜索
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
key | 用户输入的搜索词 | String | 32 | Y | 支持全拼及首字母:举例: ydzs |
返回字段说明
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
searchkey | 搜索关键字 | int | 10 | Y | |
movietv | 电影,电视剧查询节目列表 | item[] | 10 | N | 参见《Item Properties 展示编排对象》定义 |
zongyi | 综艺查询结果 | item[] | 10 | N | 参见《Item Properties 展示编排对象》定义 |
comickids | 电影,电视剧查询结果 | item[] | 10 | N | 参见《Item Properties 展示编排对象》定义 |
mv | mv,记录片查询结果 | item[] | 10 | N | 参见《Item Properties 展示编排对象》定义 |
hot | 短视频新闻热点节目查询结果 | item[] | 10 | N | 参见《Item Properties 展示编排对象》定义 |
sports | 体育节目查询结果 | item[] | 10 | N | 参见《Item Properties 展示编排对象》定义 |
item | 所有节目查询结果 | item[] | 10 | Y | 参见《Item Properties 展示编排对象》定义 |
{
"status": "200",
"searchkey": "bcd",
"hot": [
{
"link_data": "page=syncPlay&sid=vxceqrhjg6rs&contentType=hot",
"item_episodeCount": "0",
"item_title": "假如世界不插电",
"item_cast": [],
"item_area": "",
"item_director": [],
"item_sid": "vxceqrhjg6rs",
"item_episode": "0",
"high": "不插电",
"item_icon3": "http://img7.moretv.com.cn/d.ifengimg.com/w200_h150/y0.ifengimg.com/image/2013/10/31/7eeb80c2-0d43-412c-88ce-ba130ca2980b.jpg",
"item_image3": "http://img7.moretv.com.cn/d.ifengimg.com/w200_h150/y0.ifengimg.com/image/2013/10/31/7eeb80c2-0d43-412c-88ce-ba130ca2980b.jpg",
"item_tag": [
"新闻",
"社会"
],
"item_year": "0",
"item_score": "6.0",
"item_ishd": "0",
"item_contentType": "hot"
},
{
"link_data": "page=syncPlay&sid=w0ab45u92clm&contentType=hot",
"item_episodeCount": "0",
"item_title": "感冒千万别吃多种药",
"item_cast": [],
"item_area": "",
"item_director": [],
"item_sid": "w0ab45u92clm",
"item_episode": "0",
"high": "别吃多",
"item_icon3": "http://img7.moretv.com.cn/d.ifengimg.com/w200_h150/y0.ifengimg.com/pmop/2013/12/09/cbd74fd0-3e89-44f6-aa87-e14d80ab48cc.jpg",
"item_image3": "http://img7.moretv.com.cn/d.ifengimg.com/w200_h150/y0.ifengimg.com/pmop/2013/12/09/cbd74fd0-3e89-44f6-aa87-e14d80ab48cc.jpg",
"item_tag": [
"新闻",
"社会"
],
"item_year": "0",
"item_score": "6.0",
"item_ishd": "0",
"item_contentType": "hot"
}
],
"mv": [
{
"link_data": "page=syncPlay&sid=vxhjjla1e4gh&contentType=mv",
"item_episodeCount": "0",
"item_title": "不插电",
"item_cast": [],
"item_area": "华语",
"item_director": [],
"item_sid": "vxhjjla1e4gh",
"item_episode": "0",
"high": "不插电",
"item_icon3": "http://img9.moretv.com.cn/vpic.video.qq.com/55862933/e00133voxqk_160_90_3.jpg",
"item_image3": "http://img9.moretv.com.cn/vpic.video.qq.com/55862933/e00133voxqk_160_90_3.jpg",
"item_tag": [
"其他"
],
"item_year": "2013",
"item_score": "6.0",
"item_ishd": "0",
"item_contentType": "mv"
},
{
"link_data": "page=syncPlay&sid=9wpqt9lmmne4&contentType=mv",
"item_episodeCount": "0",
"item_title": "不插电",
"item_cast": [],
"item_area": "欧美",
"item_director": [],
"item_sid": "9wpqt9lmmne4",
"item_episode": "0",
"high": "不插电",
"item_icon3": "http://img6.moretv.com.cn/vpic.video.qq.com/77413663/9q0vNBQjDvj_160_90_3.jpg",
"item_image3": "http://img6.moretv.com.cn/vpic.video.qq.com/77413663/9q0vNBQjDvj_160_90_3.jpg",
"item_tag": [
"其他"
],
"item_year": "2012",
"item_score": "6.0",
"item_ishd": "0",
"item_contentType": "mv"
}
],
"zongyi": [
{
"item_ishd": "0",
"link_data": "page=detail&sid=9w6lv06l6k6l&contentType=zongyi",
"item_title": "跳跃吧菜鸟",
"item_cast": [],
"item_area": "大陆",
"item_sid": "9w6lv06l6k6l",
"item_episode": "20120624",
"high": "吧菜鸟",
"item_episodeCount": "12",
"item_director": [],
"item_image1": "http://img9.moretv.com.cn/image1.webscache.com/baike/haibao/small/2012-05/202986594-321-2012-05-21-16-31-35.jpg",
"item_tag": [
"其他"
],
"item_year": "0",
"item_score": "6.0",
"item_icon1": "http://img9.moretv.com.cn/image1.webscache.com/baike/haibao/small/2012-05/202986594-321-2012-05-21-16-31-35.jpg",
"item_contentType": "zongyi"
},
{
"item_ishd": "0",
"link_data": "page=detail&sid=w034cejkmnqr&contentType=zongyi",
"item_title": "跳跃吧!菜鸟",
"item_cast": [],
"item_area": "大陆",
"item_sid": "w034cejkmnqr",
"item_episode": "20120727",
"high": "吧!菜鸟",
"item_episodeCount": "19",
"item_director": [],
"item_image1": "http://img4.moretv.com.cn/img6.pplive.cn/2012/03/12/14443732036_230X306.jpg",
"item_tag": [
"访谈"
],
"item_year": "0",
"item_score": "6.0",
"item_icon1": "http://img4.moretv.com.cn/img6.pplive.cn/2012/03/12/14443732036_230X306.jpg",
"item_contentType": "zongyi"
}
],
"comickids": [
{
"item_ishd": "0",
"link_data": "page=detail&sid=vxdek7i6rtpq&contentType=comic",
"item_title": "白菜动画",
"item_cast": [],
"item_area": "日本",
"item_sid": "vxdek7i6rtpq",
"item_episode": "1",
"high": "白菜动",
"item_episodeCount": "0",
"item_director": [
"amaze"
],
"item_image1": "http://img2.moretv.com.cn/images.movie.xunlei.com/140x198/993/ce75684daae4f8fcf41ce28e1b981d94.jpg",
"item_tag": [
"笑",
"美少女",
"新番动画",
"校"
],
"item_year": "2013",
"item_score": "6.0",
"item_icon1": "http://img2.moretv.com.cn/images.movie.xunlei.com/140x198/993/ce75684daae4f8fcf41ce28e1b981d94.jpg",
"item_contentType": "comic"
},
{
"item_ishd": "0",
"link_data": "page=detail&sid=8rmo5hhjqs8s&contentType=comic",
"item_title": "恋研~我们变成动画啦!~",
"item_cast": [],
"item_area": "日本",
"item_sid": "8rmo5hhjqs8s",
"item_episode": "1",
"high": "变成动",
"item_episodeCount": "1",
"item_director": [],
"item_image1": "http://img2.moretv.com.cn/i2.letvimg.com/vrs/201203/11/87869227f76641ac8e87298c3b83dfb9.jpg",
"item_tag": [
"恋爱",
"校园"
],
"item_year": "2012",
"item_score": "6.0",
"item_icon1": "http://img2.moretv.com.cn/i2.letvimg.com/vrs/201203/11/87869227f76641ac8e87298c3b83dfb9.jpg",
"item_contentType": "comic"
}
],
"movietv": [
{
"item_ishd": "1",
"link_data": "page=detail&sid=8r8swxvx45e5&contentType=movie",
"item_title": "泊车殿下",
"item_cast": [
"李沛霖",
"张家慧",
"嘉文",
"黄心娣"
],
"item_area": "台湾",
"item_sid": "8r8swxvx45e5",
"item_episode": "0",
"high": "泊车殿",
"item_episodeCount": "0",
"item_director": [
"吴凯蕙"
],
"item_image1": "http://img1.moretv.com.cn/img1.douban.com/lpic/s7661693.jpg",
"item_tag": [
"爱情",
"犯罪"
],
"item_year": "2012",
"item_score": "5.7",
"item_icon1": "http://img1.moretv.com.cn/img1.douban.com/lpic/s7661693.jpg",
"item_contentType": "movie"
},
{
"item_ishd": "0",
"link_data": "page=detail&sid=vx9wv0c37nab&contentType=movie",
"item_title": "泊车殿下",
"item_cast": [
"李沛霖",
"张家慧",
"嘉 文",
"黄心娣"
],
"item_area": "中国大陆",
"item_sid": "vx9wv0c37nab",
"item_episode": "0",
"high": "泊车殿",
"item_episodeCount": "0",
"item_director": [
"吴凯蕙"
],
"item_image1": "http://img6.moretv.com.cn/img3.douban.com/lpic/s7661693.jpg",
"item_tag": [
"剧情",
"爱情"
],
"item_year": "2011",
"item_score": "5.7",
"item_icon1": "http://img6.moretv.com.cn/img3.douban.com/lpic/s7661693.jpg",
"item_contentType": "movie"
}
],
"time": 2.7895941734313965,
"sports": [
{
"link_data": "page=syncPlay&sid=w0m78qk76k4g&contentType=sports",
"item_episodeCount": "0",
"item_title": "中甲副班长点球淘汰申鑫",
"item_cast": [],
"item_area": "",
"item_director": [],
"item_sid": "w0m78qk76k4g",
"item_episode": "0",
"high": "班长点",
"item_icon3": "http://img1.moretv.com.cn/s2.pplive.cn/v/cap/15533324/h120.jpg",
"item_image3": "http://img1.moretv.com.cn/s2.pplive.cn/v/cap/15533324/h120.jpg",
"item_tag": [
"足协杯"
],
"item_year": "0",
"item_score": "6.0",
"item_ishd": "0",
"item_contentType": "sports"
},
{
"link_data": "page=syncPlay&sid=w0m78qikjm4g&contentType=sports",
"item_episodeCount": "0",
"item_title": "中甲副班长点球淘汰申鑫",
"item_cast": [],
"item_area": "",
"item_director": [],
"item_sid": "w0m78qikjm4g",
"item_episode": "0",
"high": "班长点",
"item_icon3": "http://img8.moretv.com.cn/s4.pplive.cn/v/cap/15534106/h120.jpg",
"item_image3": "http://img8.moretv.com.cn/s4.pplive.cn/v/cap/15534106/h120.jpg",
"item_tag": [
"足协杯"
],
"item_year": "0",
"item_score": "6.0",
"item_ishd": "0",
"item_contentType": "sports"
}
]
}
中文搜索
名称 | 说明 | 数据类型 | 长度(字节) | 是否必填 | 备注 |
keyword | 搜索关键词 | String | 32 | Y | 对中文做两次urlencode 加密后传给后台 |
pageIndex | 当前页 | String | 32 | N | 默认第一页 |
pageSize | 每页结果数量 | String | 32 | N | 默认20 |
contentType | 节目类型 | varchar | 128 | N | 不同类型的code定义请见《内容分类列表接口》目前只开放了,movie/tv/zongyi/comic/kids/jilu 长视频 |
返回字段说明
名称 | 说明 | 数据类型 | 长度(字节) | 是否必选 | 备注 |
keyword | 搜索关键字 | int | 10 | Y | |
number_Total | 所有节目总数 | int | 10 | Y | |
number_Movie | 电影总数 | int | 10 | Y | |
number_TV | 电视剧总数 | int | 10 | Y | |
number_Zongyi | 综艺总数 | int | 10 | Y | |
number_Comic | 动漫总数 | int | 10 | Y | |
number_Kids | 少儿总数 | int | 10 | Y | |
number_JILU | 记录总数 | int | 10 | Y | |
———items | 查询到的节目列表 | String | 32 | Y | 参见《Item Properties 展示编排对象》定义 ,当长视频和专辑混排时,长视频提供竖图,专辑竖图和横图都会存在 |
———page.count | 当前查询的分类总数 | String | 32 | Y | |
———page.currentPage | 当前查询的页码 | String | 32 | Y | |
———page.currentPageSize | 当前页的总数 | String | 32 | Y | |
———page.pageCount | 总页数 | String | 32 | Y | |
{
"status": "0",
"message": "Success",
"keyword": "湖南",
"page": {
"count": 82,
"currentPage": 1,
"currentPageSize": 20,
"pageCount": 5,
},
"number_Movie": 0,
"number_ZongYi": 80,
"number_Kids": 0,
"number_Comic": 0,
"number_Total": 82,
"number_JILU": 1,
"number_Cast": 0,
"number_TV": 1,
"castItems": [],
"items": [
{
"item_icon1": "http://img.moretv.com.cn/photocdn.sohu.com/20111131/hor_vrsab1000252.jpg",
"item_sid": "9w4g34ghopl7",
"item_director": [
""
],
"item_episodeCount": "2",
"item_episode": "2",
"item_isHd": 0,
"item_year": 2010,
"item_tag": [
"人物",
"历史",
"社会"
],
"item_area": "",
"link_data": "page=detail&sid=9w4g34ghopl7&contentType=jilu",
"item_cast": [
""
],
"item_score": "0.0",
"item_title": "故事湖南",
"item_contentType": "jilu"
},
{"................"},
{
"item_icon1": "http://img.moretv.com.cn/photocdn.sohu.com/20130621/vrsab_ver5465508.jpg",
"item_sid": "vxno6lhi3fcd",
"item_director": [
""
],
"item_episodeCount": "6",
"item_episode": "20130628",
"item_isHd": 0,
"item_year": 0,
"item_tag": [
"八卦"
],
"item_area": "大陆",
"link_data": "page=detail&sid=vxno6lhi3fcd&contentType=zongyi",
"item_cast": [
""
],
"item_score": "0.0",
"item_title": "湖南卫视娱乐无极限",
"item_contentType": "zongyi"
}
]
}