You need to enable JavaScript to run this app.
导航

GetActionFeed - 获取互动Feed流

最近更新时间2024.03.12 15:04:16

首次发布时间2023.12.12 10:42:10

该接口用于获取互动频道的发文列表。
对于关注作者场景,返回用户关注作者近半年的发文列表(按照发布时间倒序)。

请求说明

  • 请求方式:POST
  • 请求地址:https://cms.volcengineapi.com/?Action=GetActionFeed&Version=2021-01-01
  • 请求头:ServiceName: volc_content_api

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数
类型
是否必填
示例值
描述
Action
String

GetActionFeed

要执行的操作,取值:GetActionFeed

Version
String

2021-01-01

API的版本,取值:2021-01-01

Body

参数
类型
是否必填
示例值
描述
ActionType
Integer

1

互动类型:关注作者场景传递1。

Category
String

9d8b7589

场景ID。

UniqueUserId
String

用户唯一标识,由客户根据设备标识或用户账号脱敏得到。

Context
ActionContext

上下文信息。

Limit
Integer

10

分页参数-每次返回数量。

Offset
String

123:1697016854

分页参数-偏移量,取值于响应数据的NextOffset字段。
获取最新的发文列表请传递空字符串或者不传。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
Data
FeedData

响应数据。

请求示例

{
    "ActionType": 1, 
    "Category": "0ca301f4",
    "UniqueUserId": "user001", 
    "Context": { 
        "WithVideo": "0"        
    },
    "Limit": 10, 
    "Offset": "123:1697016854" 
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2023112916271519216800000559***",
        "Action": "GetActionFeed",
        "Version": "2021-01-01",
        "Service": "volc_content_api",
        "Region": "cn-north-1"
    },
    "Data": {
        "NextOffset": "7306730250560488038:1701229378",
        "ArticleList": [
            {
                "GroupId": 7306730250560488038,
                "Title": "***",
                "Author": {
                    "AuthorName": "***",
                    "AuthorAvatarUrl": "https://p6-open-sign.onewsimg.com/user-avatar/1ef1e2a2055b8fddcc1c169d4a59751d~tplv-obj.jpeg?scene=core&x-expires=1763276700&x-signature=uxbNZK28tXvBhA5nie%2FEf4AgpN4%3D",
                    "AuthorId": "7302323583022334044",
                    "Description": "***",
                    "HomePage": "https://open.toutiao.com/u4689532457/?utm_source=***",
                    "FollowerCount": 0,
                    "AuthorBizId": "4689532457"
                },
                "GroupType": "article",
                "GenerateType": "toutiao_api",
                "PublishTime": 1701229378,
                "Abstract": "***",
                "OpenId": "7306724506821886500",
                "Tags": [
                    "火山标签",
                    "通用行业分类",...
                ],
                "Extra": "",
                "Link": "https://open.toutiao.com/a7306724506821886500/?utm_source=***",
                "DiggCount": 1,
                "CommentCount": 0,
                "CommentUrl": "https://open.toutiao.com/a7306724506821886500/comment/?utm_source=***",
                "GoodsIds": [
                    "guizhou"
                ],
                "GoodsList": [
                    {
                        "GoodsId": "guizhou",
                        "GoodsName": "贵州",
                        "Keywords": " 贵州-keyword1; 贵州-keyword2",
                        "Description": " 贵州-description",
                        "GoodsSourceId": "1",                      
                    }
                ],
                "Content": ""
            }
        ]
    },
    "BaseResp": {
        "StatusMessage": "success",
        "StatusCode": 1000
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
200
1001
参数错误

返回具体的参数错误描述

200
1002
服务未知错误

请联系火山引擎技术人员