稳定、快速、免费的 API 接口服务
查询小红薯用户作品列表,不能翻页,测试中
接口地址: https://api.itfaba.com/xhs/userVideo
返回格式: JSON
请求方式: POST
请求示例: https://api.itfaba.com/xhs/userVideo?apiKey=testkey
直连路由服务地址1: https://api-1.itfaba.com/xhs/userVideo?apiKey=xxx
直连路由服务地址2: https://api-2.itfaba.com/xhs/userVideo?apiKey=xxx
注意:{apiKey}参数接口密钥登陆用户平台获取
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
user_id | 是 | string | 用户ID.例如:5c066a02000000000600cbe7 |
num | 否 | int | 每页显示数,默认10 |
cursor | 否 | string | 翻页游标 |
cookie | 是 | string | 登录COOKIE |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{ "result": 1, "info": "成功", "data": { "cursor": "64942dce0000000013009431", "notes": [ { "cover": { "trace_id": "1000g0082mhjanl4jq0004buqojl05iv7j6e8qo8", "file_id": "2fb25b2c-2e98-5dd5-94b0-cfa7f8c6f3ab", "width": 1080, "url": "https://sns-img-hw.xhscdn.com/2fb25b2c-2e98-5dd5-94b0-cfa7f8c6f3ab", "height": 1440 }, "note_id": "64942dce0000000013009431", "display_title": "南法生活|我们小破村里的可爱免费书角", "interact_info": { "liked_count": "10+", "sticky": false, "liked": false }, "type": "video", "user": { "user_id": "5c066a02000000000600cbe7", "nick_name": "petite_xiaoxiao", "nickname": "petite_xiaoxiao", "avatar": "https://sns-avatar-qc.xhscdn.com/avatar/622aef63595a7e91eadfd58e.jpg" } } ], "has_more": false } }
请求参数设置:
参数名称 | 参数值 |
---|---|
{ "result": 1, "info": "成功", "data": { "cursor": "64942dce0000000013009431", "notes": [ { "cover": { "trace_id": "1000g0082mhjanl4jq0004buqojl05iv7j6e8qo8", "file_id": "2fb25b2c-2e98-5dd5-94b0-cfa7f8c6f3ab", "width": 1080, "url": "https://sns-img-hw.xhscdn.com/2fb25b2c-2e98-5dd5-94b0-cfa7f8c6f3ab", "height": 1440 }, "note_id": "64942dce0000000013009431", "display_title": "南法生活|我们小破村里的可爱免费书角", "interact_info": { "liked_count": "10+", "sticky": false, "liked": false }, "type": "video", "user": { "user_id": "5c066a02000000000600cbe7", "nick_name": "petite_xiaoxiao", "nickname": "petite_xiaoxiao", "avatar": "https://sns-avatar-qc.xhscdn.com/avatar/622aef63595a7e91eadfd58e.jpg" } } ], "has_more": false } }
错误码格式说明:
名称 | 类型 | 说明 |
---|---|---|
code | int | 0:异常消息,1:正常,2:警告 |
result | int | 0:异常消息,1:正常 |
代码示例:
apiKey登录用户平台获取