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

MGetBaseArticlesByGroupIds - 获取内容信息

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

首次发布时间2022.09.26 17:42:59

本文档提供通过内容ID查询内容管理平台内容信息的功能。

请求说明

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

调试

请求参数

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

Query

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

MGetBaseArticlesByGroupIds

要执行的操作,取值:MGetBaseArticlesByGroupIds

Version
String

2022-01-01

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

Body

参数
类型
是否必填
示例值
描述
GroupIds
Array of Long

内容ID列表,最多为20。

返回参数

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

参数
类型
示例值
描述
Data
Data

查询结果。

请求示例

{
    "GroupIds": [
        -1,
        1735871528197150,
        1700790466503879,
        1700830821753870
    ]
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "",
        "Action": "",
        "Version": "",
        "Service": "",
        "Region": ""
    },
    "Data": {
        "ArticleList": [
            {
                "GroupId": 1735871528197150,
                "Title": ".......",
                "Author": {
                    "AuthorName": ".......",
                    "AuthorAvatarUrl": "",
                    "AuthorId": "1733785503943687",
                    "Description": "",
                    "HomePage": "",
                    "FollowerCount": 0,
                    "AuthorBizId": "......."
                },
                "GroupType": "article",
                "GenerateType": ".......",
                "PublishTime": 1655456053,
                "Abstract": ".......",
                "OpenId": "",
                "Tags": [
                    "鞋",
                    "四川"
                ],
                "CoverImages": [
                    {
                        "Url": ".......",
                        "Height": 875,
                        "Weight": 1121,
                        "Width": 1121
                    },
                    {
                        "Url": ".......",
                        "Height": 842,
                        "Weight": 1081,
                        "Width": 1081
                    }
                ],
                "Extra": "",
                "Link": ".......",
                "DiggCount": 0,
                "CommentCount": 0,
                "CommentUrl": "",
                "Content": ""
            }
        ],
        "MissReasons": [
            {
                "GroupId": -1,
                "reason": "gid_illegal"
            },
            {
                "GroupId": 1700790466503879,
                "reason": "not_exist_or_delete"
            },
            {
                "GroupId": 1700830821753870,
                "reason": "gid_illegal"
            }
        ]
    },
    "BaseResp": {
        "StatusMessage": "success",
        "StatusCode": 1000
    }
}

错误码

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

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

返回具体的参数错误描述

200
1002
服务未知错误

请联系火山引擎技术人员