Blog Collection Get Article List API 文档

博客专辑-得到文章列表

接口信息

  • 接口地址: {your-site-url}/api/skill/blog-collection/get-collect-article-list
  • 基础 URL: {your-site-url} 需替换为你自己的独立站 URL 地址,如 https://your-domain.com/apimanager666
  • 请求方式: POST
  • Content-Type: application/json
  • 说明: 此接口为查询接口,用于获取指定博客专辑下的文章列表

认证

请求头中需要携带 skill-access-token

Header
skill-access-token {your-skill-access-token} (请替换为你自己的 token)

请求参数 (Query String)

字段 类型 必填 说明
collection_id int ✅ 必填 博客专辑 ID
pageNum int 选填 第几页,不填写则默认第 1 页
pageSize int 选填 每页的数据个数,不填写则使用系统默认值

请求示例

cURL

curl --location --request POST '{your-site-url}/api/skill/blog-collection/get-collect-article-list?collection_id=127&pageNum=1&pageSize=20' \
--header 'skill-access-token: {your-skill-access-token}' \
--data-raw ''

返回结果

code200 表示调用成功;code 不为 200 表示调用失败。

成功响应

{
    "code": 200,
    "data": {
        "list": [
            {
                "id": 815,
                "shop_id": 15,
                "article_id": 473,
                "position": null,
                "article": {
                    "id": 473,
                    "shop_id": 15,
                    "user_id": 0,
                    "author": "yu zhang",
                    "handle": "fecify-article-3-m49fsg6u",
                    "title": "封面在顶部",
                    "summary_html": "",
                    "body_html": "<p>fecify article 3</p>",
                    "meta_title": "封面在顶部",
                    "meta_keywords": "",
                    "meta_description": "fecify article 3",
                    "meta_is_edit": 1,
                    "translate_type": 3,
                    "image": "/blog_article/15/image/2026/02/08/...",
                    "width": 1024,
                    "height": 1024,
                    "ratio": "1.00",
                    "is_published": 1,
                    "published_at": 1770560348,
                    "created_at": 1778492400,
                    "updated_at": 1778493462,
                    "remote_id": "",
                    "product_id": 0,
                    "product_ids": "",
                    "description_json_status": 2,
                    "description_json": "",
                    "image_show_type": 1,
                    "template_type": ""
                }
            }
        ],
        "total": 20,
        "pageSize": 20,
        "totalPage": 1
    },
    "message": "success"
}

返回字段说明

字段 类型 说明
code Number 状态码,200 表示成功
message String 执行结果的文字描述
data Object 返回数据

data 顶层字段

字段 类型 说明
total int 文章总数
pageSize int 每页的数据个数
totalPage int 总页数
list Array[Object] 文章列表

data.list 子项

字段 类型 说明
id int 关联记录 ID
shop_id int 店铺 ID
article_id int 文章 ID
position int/null 文章在专辑中的排序位置。null 表示未设置排序
article Object 文章详情对象

article 对象

字段 类型 说明
id int 文章 ID
title string 文章标题
author string 作者名称
handle string 文章 URL handle
is_published int 发布状态。1 已发布,2 未发布
image string 封面图 URL
image_show_type int 封面图展示方式。1 顶部,2 底部,3 不显示
template_type string 模板布局样式
published_at int 发布时间(时间戳)
created_at int 创建时间(时间戳)
updated_at int 更新时间(时间戳)

注意事项

  1. collection_id 为必填
  2. pageNumpageSize 为选填,用于分页
  3. positionnull 表示该文章在专辑中未设置排序位置
Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2026-05-11 21:45:16

results matching ""

    No results matching ""