版本:202607
查询文章详情
GET/openapi/2026-07/articles/:id
通过文章 ID 获取指定文章的详细信息。
请求
Path参数
id string必填
文章 ID
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
article object
文章
idstring
文章 ID
titlestring
文章标题
excerptstring
文章内容的简短摘要或预览
contentstring
文章完整内容
image object
与文章关联的图片,包含 src、width、height 和 alt 属性
srcstring
图片 URL
widthint32
宽度
heightint32
高度
pathstring
路径
publishedboolean
文章是否已发布
handlestring
文章的 URL 友好标识符
seo_titlestring
自定义 SEO 标题
seo_descriptionstring
SEO meta 描述
seo_keywordsstring[]
SEO 关键词
authorstring
文章作者
published_atstring
文章发布时间,ISO 8601 格式
blog_idsstring[]
该文章所属博客的 ID
created_atstring
文章创建时间,ISO 8601 格式
updated_atstring
文章最后更新时间,ISO 8601 格式
{
"code": "string",
"message": "string",
"data": {
"article": {
"id": "string",
"title": "string",
"excerpt": "string",
"content": "string",
"image": {
"src": "string",
"width": 0,
"height": 0,
"path": "string"
},
"published": true,
"handle": "string",
"seo_title": "string",
"seo_description": "string",
"seo_keywords": [
"string"
],
"author": "string",
"published_at": "string",
"blog_ids": [
"string"
],
"created_at": "string",
"updated_at": "string"
}
}
}