快手视频详情接口API代码对接如下:
1.公共参数
名称 |
类型 |
必须 |
描述 |
key |
String |
√ |
get请求方式拼接在url中,点击获取 |
api_name |
String |
√ |
api接口名称 |
cache |
String |
默认否 |
|
result_type |
String |
否 |
json |
lang |
String |
默认cn 简体中文 |
|
version |
String |
否 |
api版本 |
2.请求参数
请求参数:video_id=内裤
3.响应参数
4.请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…)
# coding:utf-8 """ Compatible for python2.x and python3.x requirement: pip install requests """ from __future__ import print_function import requests # 请求示例 url 默认请求参数已经做URL编码 url = "https://qq2671517833/smallredbook/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>¬e_id=5eb1097ba091410953951d17" headers = { "Accept-Encoding": "gzip", "Connection": "close" } if __name__ == "__main__": r = requests.get(url, headers=headers) json_obj = r.json() print(json_obj)
5.响应示例
{
defaultClient: {
ROOT_QUERY: {
kconf({"key":"frontendExplore.vision.uiConfig"}): {
type: "json",
json: {
topBar: {
logoImgUrl: "",
background: "#222",
backgroundTop: "rgba(34,34,34,0.5)",
leftItemConfig: {
defaultState: {
fontColor: "rgba(255,255,255,0.8)",
fontWeight: 700
},
hoverState: {
fontColor: "rgba(254,54,102)",
fontWeight: 700
}
},
searchItemConfig: {
searchTextColor: "rgba(255,255,255,0.8)",
inputBackground: "rgba(255,255,255,0.1)",
searchButtonBackground: "rgb(254,54,102)",
searchButtonTextColor: "rgb(224,255,255)",
searchButtonFontWeight: 400,
searchButtonIconUrl: "https://s1-11673.kwimgs.com/kos/nlav11673/ui-config/search_default.svg"
},
rightItemConfig: {
defaultState: {
fontColor: "rgb(255,255,255)",
fontWeight: 500
},
hoverState: {
fontColor: "rgb(254,54,102)",
fontWeight: 500
}
},
login: {
loginButtonBackground: "rgb(235,54,97)",
loginButtonTextColor: "rgb(255,255,255)"
},
subList: {
background: "rgb(53,53,53)",
arrowIcon: "",
textState: {
defaultState: {
fontColor: "rgb(255,255,255)",
fontWeight: 500
},
hoverState: {
fontColor: "rgb(254,54,102)",
fontWeight: 500
}
}
}
},
navigationBar: {
background: "rgb(34,34,34)",
textState: {
defaultState: {
fontColor: "rgb(255,255,255)",
fontWeight: 600
},
hoverState: {
fontColor: "rgb(254,54,102)",
fontWeight: 600
}
},
activedLineColor: "rgb(254,54,102)"
},
footer: {
logoImgUrl: "https://s1-11673.kwimgs.com/kos/nlav11673/ui-config/footer_logo_normal.svg",
background: "rgb(29,29,29)",
titleColor: "rgb(102,102,102)",
titleFontWeight: 500,
linkColor: "rgb(102,102,102)",
linkFontWeight: 400,
textState: {
defaultState: {
fontColor: "rgb(255, 255, 255)",
fontWeight: 500
},
hoverState: {
fontColor: "rgb(254,54,102)",
fontWeight: 500
}
}
},
openGrayPage: false
}
},
visionVideoDetail({"page":"detail",&#