智能小程序OPENCARD
开放类目

影视排行榜

补充资源站点如人人视频对美剧、日剧、韩剧、泰剧等资源有现成的榜单排行,为了充分利用这些优质的视频资源,增加其内容曝光,站点通过 opencard 提供榜单内容等信息并能跳转到资源播放页。

示意图

intent 上传接口

当前资源 intent 意图参数

key 类型 含义 示例/说明
series_type string 影视剧类型 必选,如”美剧”

通过平台上传 txt 文件

资源方需要将自己落地页数据能够覆盖的所有 intent 参数组合通过 txt 文件上传到平台上,txt 文件的具体要求参见接入流程-上传 Intent 数据

当前资源分类 txt 上传文件内容示例如下:

1
2
{"series_type":"美剧"}
{"series_type":"日剧"}

通过开放 API 上传

详细接入方式参见 API 上传方式

Webhook API

发送给 webhook 的请求

公共字段

key 类型 含义 示例/说明
type string 请求类型 在小程序阿拉丁下永远为 “sp_ala”
surface string 搜索场景 mobile: 支持小程序的移动搜索,web_h5: 支持 H5 的移动搜索
srcid string 资源编号 每个资源分类不同
intent object 搜索意图参数 JSON 对象,每个资源分类不同

当前资源 srcid 资源编号

key 类型 含义 设定
srcid string 资源编号 48123

当前资源的 intent 参数参考上节 “intent 上传接口“。

举例:发送给 webhook 的 JSON (解密后)

1
2
3
4
5
6
7
8
{
"type": "sp_ala",
"srcid": "48123",
"surface": "mobile",
"intent": {
"series_type": "美剧"
}
}

从 webhook 返回的结果

外层通用数据字段

key 类型 含义 示例/说明
status integer 结果状态码,0 代表正确,1 代表无结果,
2 代表请求参数错误,3 代表内部服务错误
0
msg string 出错消息,当非 0 时提供 “”
data object 要返回的资源数据内容 JSON 对象,每个资源分类不同

当前资源分类的data object 字段内容

key 类型 要求 说明
jump_url string 必选 标题跳转链接地址,H5 的跳转链接要去掉域名,例如:/games/hzwwqfb/
tab_list array 必选 Tab 列表,最少 3 个,最多 5 个,例如:最热、最新、最受好评
tab_list.tab_name string 必选 tab 栏文案,最短 1 个字符,最长 8 个字符,例如:最热
tab_list.item_list array 必选 左图右文列表数据,最少 3 个,最多 9 个
tab_list.item_list.title string 必选 剧名,最短 1 个字符,最长 15 个字符,例如:致命女人
tab_list.item_list.rank number 必选 剧的排行,例如:1
tab_list.item_list.poster string 必选 剧的海报,例如:https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2379086268,2130850456&fm=58
tab_list.item_list.director string 必选 导演名,最短 1 个字符,最长 100 字符,多人用/分隔,例如:布莱恩·科兰斯顿 / 亚当·伯恩斯坦 / 米歇尔·麦克拉伦 / 斯科特·怀南特 / 约翰·伦克 / 约翰·施班 / 科林·巴克西 / 迈克尔·斯洛维斯 / 莱恩·约翰逊 / 文斯·吉里根)
tab_list.item_list.actor string 必选 演员名,最短 1 个字符,最长 100 个字符,多人用/分隔,例如:布莱恩·科兰斯顿 / 亚当·伯恩斯坦 / 米歇尔·麦克拉伦 / 斯科特·怀南特 / 约翰·伦克 / 约翰·施班 / 科林·巴克西 / 迈克尔·斯洛维斯 / 莱恩·约翰逊 / 文斯·吉里根
tab_list.item_list.time string 必选 首播时间,最短 1 个字符,最长 100 个字符,例如:2019-10-17
tab_list.item_list.update string 必选 资源更新情况,最短 1 个字符,最长 100 个字符。若完更,例如:全 8 集;若正在更新,例如:更新至第 6 集
tab_list.item_list.type_label array 必选 剧集类型标签,字符串数组,最少 1 个,最多 3 个。例如:悬疑
tab_list.item_list.url string 必选 剧集跳转链接,到播放页,H5 的跳转链接要去掉域名,例如:/games/hzwwqfb/
tab_list.tab_url string 必选 tab 下整体卡片跳转链接,跳到对应的榜单页,如美剧-最热 tab 跳转到站内最热美剧的榜单页,H5 的跳转链接要去掉域名,例如:/games/hzwwqfb/

举例:从 webhook 返回的 JSON (加密前)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"status": 0,
"msg": "",
"data": {
"jump_url": "/page/of/target?id=1",
"tab_list": [
{
"tab_name": "最热",
"item_list": [
{
"title": "神圣游戏 第二季",
"rank": 1,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
},
{
"title": "神圣游戏 第二季",
"rank": 2,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
},
{
"title": "神圣游戏 第二季",
"rank": 3,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
}
],
"tab_url": "/page/of/target?id=1"
},
{
"tab_name": "最新",
"item_list": [
{
"title": "神圣游戏 第二季",
"rank": 1,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
},
{
"title": "神圣游戏 第二季",
"rank": 2,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
},
{
"title": "神圣游戏 第二季",
"rank": 3,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
}
],
"tab_url": "/page/of/target?id=1"
},
{
"tab_name": "最受好评",
"item_list": [
{
"title": "神圣游戏 第二季",
"rank": 1,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
},
{
"title": "神圣游戏 第二季",
"rank": 2,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
},
{
"title": "神圣游戏 第二季",
"rank": 3,
"poster": "http://img0.imgtn.bdimg.com/it/u=3721013116,804039294&fm=26&gp=0.jpg",
"director": "尼拉杰·加万",
"actor": "赛义夫·阿里·汗/纳瓦祖丁·大大发发大d",
"time": "2019-10-11",
"update": "全20集",
"type_label": ["悬疑", "悬疑", "悬疑"],
"url": "/page/of/target?id=1"
}
],
"tab_url": "/page/of/target?id=1"
}
]
}
}
反 馈帮 助 回 到顶 部